org.jboss.remoting.transport.socket
Class SocketClientInvoker
java.lang.Object
org.jboss.remoting.AbstractInvoker
org.jboss.remoting.MicroRemoteClientInvoker
org.jboss.remoting.RemoteClientInvoker
org.jboss.remoting.transport.socket.MicroSocketClientInvoker
org.jboss.remoting.transport.socket.SocketClientInvoker
- All Implemented Interfaces:
- Invoker, ClientInvoker
- Direct Known Subclasses:
- BisocketClientInvoker, MultiplexClientInvoker, SSLSocketClientInvoker
public class SocketClientInvoker
- extends MicroSocketClientInvoker
SocketClientInvoker uses Sockets to remotely connect to the a remote ServerInvoker, which
must be a SocketServerInvoker.
- Version:
- $Revision: 5020 $
- Author:
- Jeff Haynie, Tom Elrod
Fields inherited from class org.jboss.remoting.transport.socket.MicroSocketClientInvoker |
addr, address, CLIENT_SOCKET_CLASS_FLAG, clientSocketClass, clientSocketClassName, CONNECTION_WAIT, CONNECTION_WAIT_DEFAULT, connectionPools, connectionWait, deserializeTime, enableTcpNoDelay, getSocketTime, home, keepAlive, keepAliveSet, MAX_CALL_RETRIES, MAX_POOL_SIZE, MAX_POOL_SIZE_FLAG, maxPoolSize, numberOfCallRetries, ONEWAY_CONNECTION_TIMEOUT, ONEWAY_CONNECTION_TIMEOUT_DEFAULT, onewayConnectionTimeout, oOBInline, oOBInlineSet, pool, port, readTime, receiveBufferSize, semaphore, semaphores, sendBufferSize, serializeTime, shouldCheckConnection, soLinger, soLingerDuration, soLingerSet, TCP_NODELAY_DEFAULT, TCP_NODELAY_FLAG, trafficClass, USE_ONEWAY_CONNECTION_TIMEOUT, useOnewayConnectionTimeout, writeTime |
Methods inherited from class org.jboss.remoting.transport.socket.MicroSocketClientInvoker |
checkingConnection, clearPool, clearPools, configureSocket, disconnect, finalize, flushConnectionPool, getConnection, getConnectionWait, getDefaultDataType, getHomeInUse, getNumberOfAvailableConnections, getNumberOfCallRetries, getNumberOfRetries, getNumberOfUsedConnections, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getServerHostName, getSoLingerDuration, getTrafficClass, getUsableAddress, handleConnect, handleDisconnect, handleRetriableException, initPool, isKeepAlive, isOOBInline, isSoLinger, setConnectionWait, setKeepAlive, setNumberOfCallRetries, setNumberOfRetries, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setSoLingerDuration, setTrafficClass, setup, transport |
Methods inherited from class org.jboss.remoting.MicroRemoteClientInvoker |
connect, establishLease, getConnectHomes, getLeasePeriod, getMarshaller, getSessionId, getUnMarshaller, init, invoke, isConnected, postProcess, preProcess, setMarshaller, setUnMarshaller, terminateLease |
Methods inherited from class org.jboss.remoting.AbstractInvoker |
addClientLocator, createSocketFactory, getClassLoader, getClientLocator, getClientLocators, getConfiguration, getLocator, getSerializationType, getSocketFactory, getVersion, isCompleteSocketFactory, isSocketFactoryCreatedFromSSLParameters, needsCustomSSLConfiguration, setClassLoader, setSerializationType, setSocketFactory, setVersion, wrapSocketFactory |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SO_TIMEOUT_FLAG
public static final java.lang.String SO_TIMEOUT_FLAG
- See Also:
- Constant Field Values
SO_TIMEOUT_DEFAULT
public static final int SO_TIMEOUT_DEFAULT
- Default value for socket timeout is 30 minutes.
- See Also:
- Constant Field Values
timeout
protected int timeout
SocketClientInvoker
public SocketClientInvoker(InvokerLocator locator)
- Set number of retries in getSocket method
SocketClientInvoker
public SocketClientInvoker(InvokerLocator locator,
java.util.Map configuration)
createServerAddress
protected ServerAddress createServerAddress(java.net.InetAddress addr,
int port)
- Overrides:
createServerAddress
in class MicroSocketClientInvoker
configureParameters
protected void configureParameters()
- Overrides:
configureParameters
in class MicroSocketClientInvoker
handleException
protected java.lang.Object handleException(java.lang.Exception ex,
SocketWrapper socketWrapper)
throws java.lang.ClassNotFoundException,
InvocationFailureException,
CannotConnectException
- Overrides:
handleException
in class MicroSocketClientInvoker
- Throws:
java.lang.ClassNotFoundException
InvocationFailureException
CannotConnectException
createClientSocket
protected SocketWrapper createClientSocket(java.net.Socket socket,
int timeout,
java.util.Map metadata)
throws java.lang.Exception
- used for debugging (tracing) connections leaks
- Overrides:
createClientSocket
in class MicroSocketClientInvoker
- Throws:
java.lang.Exception
createSocket
protected java.net.Socket createSocket(java.lang.String address,
int port,
int timeout)
throws java.io.IOException
- Overrides:
createSocket
in class MicroSocketClientInvoker
- Throws:
java.io.IOException
getPooledConnection
protected SocketWrapper getPooledConnection()
- Overrides:
getPooledConnection
in class MicroSocketClientInvoker
getTimeout
public int getTimeout()
- Getter for property timeout
- Returns:
- Value of property timeout
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.