org.apache.geronimo.messaging.remotenode.network
Class AbstractRemoteNodeConnection

java.lang.Object
  extended byorg.apache.geronimo.messaging.remotenode.network.AbstractRemoteNodeConnection
All Implemented Interfaces:
MsgConsProd, MsgConsumer, MsgProducer, RemoteNodeConnection
Direct Known Subclasses:
RemoteNodeJoinedConnection, RemoteNodeJoinerConnection

public abstract class AbstractRemoteNodeConnection
extends Object
implements RemoteNodeConnection

Abstract implememtation for the RemoteNodeConnection contracts.

Version:
$Revision: 1.2 $ $Date: 2004/07/20 00:15:05 $

Nested Class Summary
 
Nested classes inherited from class org.apache.geronimo.messaging.remotenode.RemoteNodeConnection
RemoteNodeConnection.LifecycleListener
 
Field Summary
protected  org.apache.geronimo.network.protocol.Protocol protocol
           
 
Constructor Summary
AbstractRemoteNodeConnection(IOContext anIOContext)
           
 
Method Summary
 void close()
          Closes the connection.
 MsgOutInterceptor getMsgConsumerOut()
          Gets a mean to push Msgs to this instance.
protected abstract  org.apache.geronimo.network.protocol.Protocol newProtocol()
           
 void open()
          Opens the connection.
 void setLifecycleListener(RemoteNodeConnection.LifecycleListener aListener)
          Sets the listener to be notified when the connection is closed.
 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
 

Field Detail

protocol

protected org.apache.geronimo.network.protocol.Protocol protocol
Constructor Detail

AbstractRemoteNodeConnection

public AbstractRemoteNodeConnection(IOContext anIOContext)
Method Detail

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.

open

public void open()
          throws NodeException
Description copied from interface: RemoteNodeConnection
Opens the connection.

Specified by:
open in interface RemoteNodeConnection
Throws:
NodeException - Indicates that the connection can not be opened.

newProtocol

protected abstract org.apache.geronimo.network.protocol.Protocol newProtocol()
                                                                      throws org.apache.geronimo.network.protocol.ProtocolException
Throws:
org.apache.geronimo.network.protocol.ProtocolException

close

public void close()
Description copied from interface: RemoteNodeConnection
Closes the connection.

Specified by:
close in interface RemoteNodeConnection

setLifecycleListener

public void setLifecycleListener(RemoteNodeConnection.LifecycleListener aListener)
Description copied from interface: RemoteNodeConnection
Sets the listener to be notified when the connection is closed.

Specified by:
setLifecycleListener in interface RemoteNodeConnection
Parameters:
aListener - Listener.


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