private synchronized void setChannelState ( String channelName , RuntimeState state ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setChannelState channelName=" + channelName + ", state=" + state . ordinal ) ; } if ( null != channelName ) { ChannelContainer channelContainer = this . channelRunningMap . get ( channelName ) ; if ( null != channelContainer ) { channelContainer . setState ( state ) ; } } }
Set the channel state of a given channel .