org.apache.mina.protocol.vmpipe
Class VmPipeConnector

java.lang.Object
  extended by org.apache.mina.common.BaseSessionManager
      extended by org.apache.mina.protocol.vmpipe.VmPipeConnector
All Implemented Interfaces:
SessionManager, ProtocolConnector, ProtocolSessionManager

public class VmPipeConnector
extends BaseSessionManager
implements ProtocolConnector

Connects to ProtocolProviders which is bound on the specified VmPipeAddress.

Version:
$Rev: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $
Author:
Trustin Lee (trustin@apache.org)

Field Summary
 
Fields inherited from class org.apache.mina.common.BaseSessionManager
exceptionMonitor
 
Constructor Summary
VmPipeConnector()
          Creates a new instance.
 
Method Summary
 ProtocolSession connect(SocketAddress address, int timeout, ProtocolProvider protocolProvider)
          Connects to the specified address with timeout.
 ProtocolSession connect(SocketAddress address, ProtocolProvider protocolProvider)
          Connects to the specified address.
 ProtocolSession connect(SocketAddress address, SocketAddress localAddress, int timeout, ProtocolProvider protocolProvider)
          Connects to the specified address with timeout.
 ProtocolSession connect(SocketAddress address, SocketAddress localAddress, ProtocolProvider protocolProvider)
          Connects to the specified address.
 ProtocolFilterChain getFilterChain()
          Returns the filter chain that filters all events which is related with sessions this manager manages.
 
Methods inherited from class org.apache.mina.common.BaseSessionManager
getExceptionMonitor, setExceptionMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.mina.common.SessionManager
getExceptionMonitor, setExceptionMonitor
 

Constructor Detail

VmPipeConnector

public VmPipeConnector()
Creates a new instance.

Method Detail

getFilterChain

public ProtocolFilterChain getFilterChain()
Description copied from interface: ProtocolSessionManager
Returns the filter chain that filters all events which is related with sessions this manager manages.

Specified by:
getFilterChain in interface ProtocolSessionManager

connect

public ProtocolSession connect(SocketAddress address,
                               ProtocolProvider protocolProvider)
                        throws IOException
Description copied from interface: ProtocolConnector
Connects to the specified address. If communication starts successfully, events are fired to the specified protocolProvider. This method blocks.

Specified by:
connect in interface ProtocolConnector
Throws:
IOException - if failed to connect

connect

public ProtocolSession connect(SocketAddress address,
                               SocketAddress localAddress,
                               ProtocolProvider protocolProvider)
                        throws IOException
Description copied from interface: ProtocolConnector
Connects to the specified address. If communication starts successfully, events are fired to the specified protocolProvider. This method blocks.

Specified by:
connect in interface ProtocolConnector
localAddress - the local address the channel is bound to
Throws:
IOException - if failed to connect

connect

public ProtocolSession connect(SocketAddress address,
                               int timeout,
                               ProtocolProvider protocolProvider)
                        throws IOException
Description copied from interface: ProtocolConnector
Connects to the specified address with timeout. If communication starts successfully, events are fired to the specified protocolProvider. This method blocks.

Specified by:
connect in interface ProtocolConnector
Throws:
IOException - if failed to connect

connect

public ProtocolSession connect(SocketAddress address,
                               SocketAddress localAddress,
                               int timeout,
                               ProtocolProvider protocolProvider)
                        throws IOException
Description copied from interface: ProtocolConnector
Connects to the specified address with timeout. If communication starts successfully, events are fired to the specified protocolProvider. This method blocks.

Specified by:
connect in interface ProtocolConnector
localAddress - the local address the channel is bound to
Throws:
IOException - if failed to connect


Copyright © 2004-2005 . All Rights Reserved.