summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/aai/sparky/util/NodeUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/onap/aai/sparky/util/NodeUtils.java')
-rw-r--r--src/main/java/org/onap/aai/sparky/util/NodeUtils.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/org/onap/aai/sparky/util/NodeUtils.java b/src/main/java/org/onap/aai/sparky/util/NodeUtils.java
index d15b7ba..3c2466d 100644
--- a/src/main/java/org/onap/aai/sparky/util/NodeUtils.java
+++ b/src/main/java/org/onap/aai/sparky/util/NodeUtils.java
@@ -68,6 +68,34 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder;
public class NodeUtils {
private static SecureRandom sRandom = new SecureRandom();
+ /**
+ * @return the sRandom
+ */
+ public static SecureRandom getsRandom() {
+ return sRandom;
+ }
+
+ /**
+ * @param sRandom the sRandom to set
+ */
+ public static void setsRandom(SecureRandom sRandom) {
+ NodeUtils.sRandom = sRandom;
+ }
+
+ /**
+ * @return the entityResourceKeyFormat
+ */
+ public static String getEntityResourceKeyFormat() {
+ return ENTITY_RESOURCE_KEY_FORMAT;
+ }
+
+ /**
+ * @return the timeBreakDownFormat
+ */
+ public static String getTimeBreakDownFormat() {
+ return TIME_BREAK_DOWN_FORMAT;
+ }
+
public static synchronized String getRandomTxnId(){
byte bytes[] = new byte[6];
sRandom.nextBytes(bytes);