use of com.alibaba.jstorm.message.netty.NettyContext in project jstorm by alibaba.
the class LocalUtils method getLocalContext.
private static IContext getLocalContext(Map conf) {
if (!(Boolean) conf.get(Config.STORM_LOCAL_MODE_ZMQ)) {
IContext result = new NettyContext();
ConfigExtension.setLocalWorkerPort(conf, 6800);
result.prepare(conf);
return result;
}
return null;
}
Aggregations