Search in sources :

Example 1 with ServerContext

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();
}
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 ServerContext

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");
}
Also used : MetaStore(org.smartdata.metastore.MetaStore) SmartZeppelinServer(org.apache.zeppelin.server.SmartZeppelinServer) ServerContext(org.smartdata.server.engine.ServerContext)

Aggregations

MetaStore (org.smartdata.metastore.MetaStore)2 ServerContext (org.smartdata.server.engine.ServerContext)2 SmartZeppelinServer (org.apache.zeppelin.server.SmartZeppelinServer)1 Before (org.junit.Before)1 SmartConf (org.smartdata.conf.SmartConf)1 RuleManager (org.smartdata.server.engine.RuleManager)1