summaryrefslogtreecommitdiffstats
path: root/misc/env/src/main
diff options
context:
space:
mode:
authorInstrumental <jgonap@stl.gathman.org>2020-05-15 10:24:47 -0500
committerInstrumental <jgonap@stl.gathman.org>2020-05-15 10:24:56 -0500
commitea095eb9cdbb451f2310a262f3877c79f527cc8f (patch)
tree14f2e5d7b026afab4214a6c0b82a166393197586 /misc/env/src/main
parent9f2d11a8c9a8952bfc97e64418b21f26be4e51a6 (diff)
Improve Pool
Move interface Log out, make JUPool test the functionality better, add "tooManyObjects" to help control memory. Minor BasicEnv for standalone usability. included ".checkstyle" files, generated by Eclipse/Maven to .gitignore. They shouldn't be in repo. Issue-ID: AAF-1146 Signed-off-by: Instrumental <jgonap@stl.gathman.org> Change-Id: I72c22fa455029950e3d73d2e9addbccc1a990189
Diffstat (limited to 'misc/env/src/main')
-rw-r--r--misc/env/src/main/java/org/onap/aaf/misc/env/impl/BasicEnv.java45
1 files changed, 35 insertions, 10 deletions
diff --git a/misc/env/src/main/java/org/onap/aaf/misc/env/impl/BasicEnv.java b/misc/env/src/main/java/org/onap/aaf/misc/env/impl/BasicEnv.java
index e65f4e85..8128856c 100644
--- a/misc/env/src/main/java/org/onap/aaf/misc/env/impl/BasicEnv.java
+++ b/misc/env/src/main/java/org/onap/aaf/misc/env/impl/BasicEnv.java
@@ -102,40 +102,61 @@ public class BasicEnv extends StoreImpl implements EnvJAXB, TransCreate<TransJAX
super(tag, props);
}
-
-
- // @Override
+ @Override
public LogTarget fatal() {
return fatal;
}
- // @Override
+ public void fatal(LogTarget lt) {
+ fatal = lt;
+ }
+
+ @Override
public LogTarget error() {
return error;
}
+ public void error(LogTarget lt) {
+ error = lt;
+ }
- // @Override
+ @Override
public LogTarget audit() {
return audit;
}
- // @Override
+ public void audit(LogTarget lt) {
+ audit = lt;
+ }
+
+ @Override
public LogTarget init() {
return init;
}
- // @Override
+ public void init(LogTarget lt) {
+ init = lt;
+ }
+
+ @Override
public LogTarget warn() {
return warn;
}
- // @Override
+ public void warn(LogTarget lt) {
+ warn = lt;
+ }
+
+ @Override
public LogTarget info() {
return info;
}
- // @Override
+ public void info(LogTarget lt) {
+ info = lt;
+ }
+
+ @Override
public LogTarget debug() {
return debug;
}
@@ -144,11 +165,15 @@ public class BasicEnv extends StoreImpl implements EnvJAXB, TransCreate<TransJAX
debug = lt;
}
- // @Override
+ @Override
public LogTarget trace() {
return trace;
}
+ public void trace(LogTarget lt) {
+ trace = lt;
+ }
+
@Override
public TimeTaken start(String name, int flag, Object ... values) {
return new TimeTaken(name, flag, values) {