summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2022-08-16 08:28:01 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2022-08-16 08:28:01 +0800
commit1915e1c1948fd4252ad6caab9468ea88d24b869e (patch)
tree96d8fe661f920053e27e23b0464f781643ee1f4c
parent4627750077003db93420c053faa66310b27af7b1 (diff)
Changed the name of a constant
Issue-ID: HOLMES-564 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn> Change-Id: I086c3b393c356a1e9f9d8f4bcc60fa644caf0a45
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTask.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTask.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTask.java
index ee8d4f9..d24d567 100644
--- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTask.java
+++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTask.java
@@ -42,7 +42,7 @@ public class ConfigFileScanningTask implements Runnable {
final public static long POLLING_PERIOD = 30L;
final private static Logger LOGGER = LoggerFactory.getLogger(ConfigFileScanningTask.class);
final private static long FILE_SIZE_LMT = 1024 * 1024 * 10; // 10MB
- final private static String CREATOR = "__SYSTEM__DEFAULT__";
+ final private static String DEFAULT_CREATOR = "__SYSTEM__DEFAULT__";
private String configFile = "/opt/hrmrules/index.json";
private ConfigFileScanner configFileScanner;
private String url;
@@ -178,7 +178,7 @@ public class ConfigFileScanningTask implements Runnable {
List<RuleResult4API> deployedRules = Collections.EMPTY_LIST;
if (null != ruleQueryListResponse) {
deployedRules = ruleQueryListResponse.getCorrelationRules()
- .stream().filter(r -> CREATOR.equals(r.getCreator())).collect(Collectors.toList());
+ .stream().filter(r -> DEFAULT_CREATOR.equals(r.getCreator())).collect(Collectors.toList());
}
return deployedRules;
}
@@ -200,7 +200,7 @@ public class ConfigFileScanningTask implements Runnable {
ruleCreateRequest.setContent(contents);
ruleCreateRequest.setDescription("");
ruleCreateRequest.setEnabled(1);
- ruleCreateRequest.setCreator(CREATOR);
+ ruleCreateRequest.setCreator(DEFAULT_CREATOR);
return ruleCreateRequest;
}