org.iids.aos.kernel.mux
Class LoopbackBaseConnection

java.lang.Object
  extended by org.iids.aos.kernel.mux.BaseConnection
      extended by org.iids.aos.kernel.mux.LoopbackBaseConnection

public class LoopbackBaseConnection
extends BaseConnection


Method Summary
 void close()
          Performs the actions that must occur to fully close the base connection and remove any associated state.
static LoopbackBaseConnection getInstance()
          Creates a BaseConnection whose remote multiplexer is not represented by a RemoteMux object.
 boolean inUse()
          When errors occur on a base connection we call this method to see if it affected any MUXP connections.
 java.lang.String localName()
          Returns a human-readable string for the local communication endpoint.
 org.acplt.oncrpc.XdrAble receiveMessage()
           
 java.lang.String remoteName()
          Returns some human-readable string for the remote multiplexer.
 void sendMessage(org.acplt.oncrpc.XdrAble msg)
           
 
Methods inherited from class org.iids.aos.kernel.mux.BaseConnection
close, getExceptionThatCausedClose, getSocket, isClosed, setExceptionThatCausedClose, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static LoopbackBaseConnection getInstance()
Creates a BaseConnection whose remote multiplexer is not represented by a RemoteMux object.

Throws:
InputOutputException - if openBaseConns is already closed

close

public void close()
Performs the actions that must occur to fully close the base connection and remove any associated state. This includes cleaning up RemoteMux and ConnectionPort state, and closing the underlying socket. Any further calls to addDependentConnectionPort() are disabled. This call renders the base connection and socket unusable so that further operations will receive an error.

Overrides:
close in class BaseConnection

inUse

public boolean inUse()
Description copied from class: BaseConnection
When errors occur on a base connection we call this method to see if it affected any MUXP connections.

Overrides:
inUse in class BaseConnection

sendMessage

public void sendMessage(org.acplt.oncrpc.XdrAble msg)

receiveMessage

public org.acplt.oncrpc.XdrAble receiveMessage()

localName

public java.lang.String localName()
Returns a human-readable string for the local communication endpoint.

Overrides:
localName in class BaseConnection

remoteName

public java.lang.String remoteName()
Description copied from class: BaseConnection
Returns some human-readable string for the remote multiplexer.

Overrides:
remoteName in class BaseConnection


Copyright ? 2003, 2004 IIDS Group. All Rights Reserved.