Search in sources :

Example 1 with RuleManager

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();
}
Also used : MetaStore(org.smartdata.metastore.MetaStore) ServerContext(org.smartdata.server.engine.ServerContext) RuleManager(org.smartdata.server.engine.RuleManager) SmartConf(org.smartdata.conf.SmartConf) Before(org.junit.Before)

Example 2 with RuleManager

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();
    }
}
Also used : CmdletManager(org.smartdata.server.engine.CmdletManager) RuleManager(org.smartdata.server.engine.RuleManager) StatesManager(org.smartdata.server.engine.StatesManager) HazelcastExecutorService(org.smartdata.server.engine.cmdlet.HazelcastExecutorService) AbstractService(org.smartdata.AbstractService) AgentExecutorService(org.smartdata.server.engine.cmdlet.agent.AgentExecutorService)

Aggregations

RuleManager (org.smartdata.server.engine.RuleManager)2 Before (org.junit.Before)1 AbstractService (org.smartdata.AbstractService)1 SmartConf (org.smartdata.conf.SmartConf)1 MetaStore (org.smartdata.metastore.MetaStore)1 CmdletManager (org.smartdata.server.engine.CmdletManager)1 ServerContext (org.smartdata.server.engine.ServerContext)1 StatesManager (org.smartdata.server.engine.StatesManager)1 HazelcastExecutorService (org.smartdata.server.engine.cmdlet.HazelcastExecutorService)1 AgentExecutorService (org.smartdata.server.engine.cmdlet.agent.AgentExecutorService)1