private void forwardMessage ( AbstractMessage aMessage , SIBUuid8 targetMEUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "forwardMessage" , new Object [ ] { aMessage , targetMEUuid } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && UserTrace . tc_mt . isDebugEnabled ( ) && ! aMessage . isControlMessage ( ) ) { JsMessage jsMsg = ( JsMessage ) aMessage ; JsDestinationAddress routingDestination = jsMsg . getRoutingDestination ( ) ; if ( routingDestination != null ) { String destId = routingDestination . getDestinationName ( ) ; boolean temporary = false ; if ( destId . startsWith ( SIMPConstants . TEMPORARY_PUBSUB_DESTINATION_PREFIX ) ) temporary = true ; UserTrace . forwardJSMessage ( jsMsg , targetMEUuid , destId , temporary ) ; } else { DestinationHandler dest = _destinationManager . getDestinationInternal ( aMessage . getGuaranteedTargetDestinationDefinitionUUID ( ) , false ) ; if ( dest != null ) UserTrace . forwardJSMessage ( jsMsg , targetMEUuid , dest . getName ( ) , dest . isTemporary ( ) ) ; else UserTrace . forwardJSMessage ( jsMsg , targetMEUuid , jsMsg . getGuaranteedTargetDestinationDefinitionUUID ( ) . toString ( ) , false ) ; } } // Send this to MPIO _mpio . sendToMe ( targetMEUuid , aMessage . getPriority ( ) . intValue ( ) , aMessage ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "forwardMessage" ) ; }
Forwards a message onto a foreign bus