summaryrefslogtreecommitdiffstats
path: root/misc
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
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')
-rw-r--r--misc/env/.gitignore1
-rw-r--r--misc/env/src/main/java/org/onap/aaf/misc/env/impl/BasicEnv.java45
-rw-r--r--misc/log4j/.gitignore1
-rw-r--r--misc/rosetta/.gitignore1
-rw-r--r--misc/xgen/.gitignore1
5 files changed, 39 insertions, 10 deletions
diff --git a/misc/env/.gitignore b/misc/env/.gitignore
index 6028f0a5..112dedb3 100644
--- a/misc/env/.gitignore
+++ b/misc/env/.gitignore
@@ -2,3 +2,4 @@
/.settings/
/target/
/.project
+/.checkstyle
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) {
diff --git a/misc/log4j/.gitignore b/misc/log4j/.gitignore
index 453974f3..2eb9f899 100644
--- a/misc/log4j/.gitignore
+++ b/misc/log4j/.gitignore
@@ -3,3 +3,4 @@
/.classpath
/logs/
/.project
+/.checkstyle
diff --git a/misc/rosetta/.gitignore b/misc/rosetta/.gitignore
index b373f319..2cb0d891 100644
--- a/misc/rosetta/.gitignore
+++ b/misc/rosetta/.gitignore
@@ -3,3 +3,4 @@
/.settings/
/logs/
/.project
+/.checkstyle
diff --git a/misc/xgen/.gitignore b/misc/xgen/.gitignore
index 75472cfd..f9f0c1b0 100644
--- a/misc/xgen/.gitignore
+++ b/misc/xgen/.gitignore
@@ -2,3 +2,4 @@
/.classpath
/.settings/
/.project
+/.checkstyle