Search in sources :

Example 1 with NettyContext

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;
}
Also used : IContext(backtype.storm.messaging.IContext) NettyContext(com.alibaba.jstorm.message.netty.NettyContext)

Aggregations

IContext (backtype.storm.messaging.IContext)1 NettyContext (com.alibaba.jstorm.message.netty.NettyContext)1