private static IContext getLocalContext(Map conf) { if (!(Boolean) conf.get(Config.STORM_LOCAL_MODE_ZMQ)) { IContext result = new NettyContext(); result.prepare(conf); return result; } return null; }
@Override public void shutdown() { IConnection sendConn = context.connect(topologyId, "localhost", port, true); sendConn.send(-1, KryoTupleSerializer.serialize(-1)); LOG.info("Waiting for virtual port at url " + port + " to die"); try { vthread.join(); } catch (InterruptedException e) { } LOG.info("Shutdown virtual port at url: " + port); }