use of org.smartdata.server.engine.RuleManager in project SSM by Intel-bigdata.
the class TestRuleManager method init.
@Before
public void init() throws Exception {
initDao();
smartConf = new SmartConf();
metaStore = new MetaStore(druidPool);
ServerContext serverContext = new ServerContext(smartConf, metaStore);
serverContext.setServiceMode(ServiceMode.HDFS);
ruleManager = new RuleManager(serverContext, null, null);
ruleManager.init();
ruleManager.start();
}
use of org.smartdata.server.engine.RuleManager in project SSM by Intel-bigdata.
the class SmartEngine method init.
@Override
public void init() throws IOException {
statesMgr = new StatesManager(serverContext);
services.add(statesMgr);
cmdletManager = new CmdletManager(serverContext);
services.add(cmdletManager);
agentService = new AgentExecutorService(conf, cmdletManager);
hazelcastService = new HazelcastExecutorService(cmdletManager);
cmdletManager.registerExecutorService(agentService);
cmdletManager.registerExecutorService(hazelcastService);
ruleMgr = new RuleManager(serverContext, statesMgr, cmdletManager);
services.add(ruleMgr);
for (AbstractService s : services) {
s.init();
}
}
Aggregations