use of org.smartdata.server.engine.rule.RuleInfoRepo in project SSM by Intel-bigdata.
the class RuleManager method activateRule.
public void activateRule(long ruleID) throws IOException {
RuleInfoRepo infoRepo = checkIfExists(ruleID);
submitRuleToScheduler(infoRepo.activate(this));
}
use of org.smartdata.server.engine.rule.RuleInfoRepo in project SSM by Intel-bigdata.
the class RuleManager method listRulesInfo.
public List<RuleInfo> listRulesInfo() throws IOException {
Collection<RuleInfoRepo> infoRepos = mapRules.values();
List<RuleInfo> retInfos = new ArrayList<>();
for (RuleInfoRepo infoRepo : infoRepos) {
RuleInfo info = infoRepo.getRuleInfo();
if (info.getState() != RuleState.DELETED) {
retInfos.add(info);
}
}
return retInfos;
}
Aggregations