use of org.smartdata.server.engine.ServerContext 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.ServerContext in project SSM by Intel-bigdata.
the class SmartServer method initWith.
public void initWith() throws Exception {
LOG.info("Start Init Smart Server");
HadoopUtil.setSmartConfByHadoop(conf);
MetaStore metaStore = MetaStoreUtils.getDBAdapter(conf);
context = new ServerContext(conf, metaStore);
initServiceMode(conf);
engine = new SmartEngine(context);
rpcServer = new SmartRpcServer(this, conf);
zeppelinServer = new SmartZeppelinServer(conf, engine);
LOG.info("Finish Init Smart Server");
}
Aggregations