Search in sources :

Example 1 with HazelcastExecutorService

use of org.smartdata.server.engine.cmdlet.HazelcastExecutorService 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

AbstractService (org.smartdata.AbstractService)1 CmdletManager (org.smartdata.server.engine.CmdletManager)1 RuleManager (org.smartdata.server.engine.RuleManager)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