org.apache.geronimo.messaging.remotenode
Class AbstractRemoteNode

java.lang.Object
  extended byorg.apache.geronimo.messaging.remotenode.AbstractRemoteNode
All Implemented Interfaces:
MsgConsProd, MsgConsumer, MsgProducer, RemoteNode
Direct Known Subclasses:
RemoteNodeJoined, RemoteNodeJoiner

public abstract class AbstractRemoteNode
extends Object
implements RemoteNode

Abstract implememtation for the RemoteNode contracts.

Version:
$Revision: 1.1 $ $Date: 2004/07/20 00:15:06 $

Field Summary
protected  IOContext ioContext
           
protected  NodeInfo localNodeInfo
          Local node meta-data.
protected  RemoteNodeManager manager
          Manager of this remote node.
protected  MsgOutInterceptor producerOut
          Incoming Msgs (coming from remote nodes) are pushed to this output.
protected  NodeInfo remoteNodeInfo
          Remote node meta-data.
 
Constructor Summary
AbstractRemoteNode(NodeInfo aLocalNode, IOContext anIOContext)
           
AbstractRemoteNode(NodeInfo aLocalNodeInfo, NodeInfo aRemoteNodeInfo, IOContext anIOContext)
           
 
Method Summary
 MsgOutInterceptor getMsgConsumerOut()
          Gets a mean to push Msgs to this instance.
 NodeInfo getNodeInfo()
          Gets the NodeInfo of this remote node.
 void leave()
          Leaves the remote node.
protected  void setConnection(RemoteNodeConnection aConnection)
           
 void setManager(RemoteNodeManager aManager)
          Sets the manager of this remote node.
 void setMsgProducerOut(MsgOutInterceptor aMsgOut)
          Sets a mean to this instance to push Msgs to the outside world.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.messaging.remotenode.RemoteNode
join
 

Field Detail

localNodeInfo

protected final NodeInfo localNodeInfo
Local node meta-data.


manager

protected RemoteNodeManager manager
Manager of this remote node.


remoteNodeInfo

protected NodeInfo remoteNodeInfo
Remote node meta-data.


ioContext

protected final IOContext ioContext

producerOut

protected MsgOutInterceptor producerOut
Incoming Msgs (coming from remote nodes) are pushed to this output.

Constructor Detail

AbstractRemoteNode

public AbstractRemoteNode(NodeInfo aLocalNode,
                          IOContext anIOContext)

AbstractRemoteNode

public AbstractRemoteNode(NodeInfo aLocalNodeInfo,
                          NodeInfo aRemoteNodeInfo,
                          IOContext anIOContext)
Method Detail

setManager

public void setManager(RemoteNodeManager aManager)
Description copied from interface: RemoteNode
Sets the manager of this remote node.

Specified by:
setManager in interface RemoteNode
Parameters:
aManager - Manager.

setMsgProducerOut

public void setMsgProducerOut(MsgOutInterceptor aMsgOut)
Description copied from interface: MsgProducer
Sets a mean to this instance to push Msgs to the outside world.

Specified by:
setMsgProducerOut in interface MsgProducer
Parameters:
aMsgOut - Used by this instance to push Msgs to other components.

getMsgConsumerOut

public MsgOutInterceptor getMsgConsumerOut()
Description copied from interface: MsgConsumer
Gets a mean to push Msgs to this instance.

Specified by:
getMsgConsumerOut in interface MsgConsumer
Returns:
Mean to push Msgs to this consumer of Msgs.

getNodeInfo

public NodeInfo getNodeInfo()
Description copied from interface: RemoteNode
Gets the NodeInfo of this remote node.

Specified by:
getNodeInfo in interface RemoteNode
Returns:
NodeInfo.

setConnection

protected void setConnection(RemoteNodeConnection aConnection)
                      throws NodeException
Throws:
NodeException

leave

public void leave()
Description copied from interface: RemoteNode
Leaves the remote node.

Specified by:
leave in interface RemoteNode


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.