* Handles the notifications sent by RemoteNodeManager.
*/
private class RemoteNodeTracker implements RemoteNodeEventListener {
public void fireRemoteNodeEvent(RemoteNodeEvent anEvent) {
RemoteNode node = anEvent.getRemoteNode();
if ( anEvent.isAddEvent() ) {
// When a RemoteNode is added, registers ourself as the Msg
// consumer.
node.setMsgProducerOut(newInboundMsgProducerOut());
} else {
// Reset as we are not more a Msg consumer.
node.setMsgProducerOut(null);
}
}