protected final void traceChannels ( Object logTool , ChannelFramework cfw , String message , String prefix ) { if ( cfw == null ) { debugTrace ( logTool , prefix + " - No cfw to trace channels" ) ; return ; } List < ? > lchannel ; Iterator < ? > ichannel ; ChannelData channel ; ChannelData [ ] channelList ; // Create new String builder for list of configured channels StringBuilder traceMessage = new StringBuilder ( 300 ) ; // Prepend message passed as argument to our output traceMessage . append ( prefix + ": Configured Channels - " ) ; if ( message != null ) traceMessage . append ( message ) ; traceMessage . append ( EOLN ) ; // Get a list of all existing channels (should include XMem) channelList = cfw . getAllChannels ( ) ; // Trace all configured channels lchannel = Arrays . asList ( channelList ) ; for ( ichannel = lchannel . iterator ( ) ; ichannel . hasNext ( ) ; ) { channel = ( ChannelData ) ichannel . next ( ) ; traceMessage . append ( prefix + ": " ) ; traceMessage . append ( channel . getName ( ) ) ; traceMessage . append ( " - " ) ; traceMessage . append ( channel . getFactoryType ( ) ) ; traceMessage . append ( EOLN ) ; } debugTrace ( logTool , traceMessage . toString ( ) ) ; }
Print channel configuration - for debug