close all channels , and release resources concode_field_sep ChannelFactory factory concode_elem_sep ChannelGroup allChannels concode_elem_sep int port concode_elem_sep Map storm_conf concode_elem_sep Logger LOG concode_elem_sep LinkedBlockingQueue<TaskMessage> message_queue concode_elem_sep ServerBootstrap bootstrap concode_field_sep void enqueue concode_elem_sep TaskMessage recv concode_elem_sep void closeChannel concode_elem_sep void addChannel concode_elem_sep void send
void function ( ) { if ( allChannels != null ) { allChannels . close ( ) . awaitUninterruptibly ( ) ; factory . releaseExternalResources ( ) ; allChannels = null ; } }