org.objectweb.joram.client.jms.tcp
Class ReliableTcpClient
java.lang.Object
org.objectweb.joram.client.jms.tcp.ReliableTcpClient
- Direct Known Subclasses:
- ReliableSSLTcpClient
public class ReliableTcpClient
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
public static org.objectweb.util.monolog.api.Logger logger
INIT
public static final int INIT
- See Also:
- Constant Field Values
CONNECT
public static final int CONNECT
- See Also:
- Constant Field Values
CLOSE
public static final int CLOSE
- See Also:
- Constant Field Values
statusNames
public static final java.lang.String[] statusNames
params
protected FactoryParameters params
identity
protected Identity identity
key
protected int key
VERIFY_CLOCK_SYNCHRO
public static final java.lang.String VERIFY_CLOCK_SYNCHRO
- Name of the boolean property allowing the verification of the synchronization
between the client and server clock. When true a warning is generated if there
is more than one second between the two clocks. This property allows the protocol
compatibility in 5.2 versions, this verification will be enabled by default in 5.3
version.
This property can be fixed either from java
launching command, or
in a3servers.xml
configuration file. By default the value is false.
- See Also:
- Constant Field Values
ReliableTcpClient
public ReliableTcpClient()
setTimer
public void setTimer(java.util.Timer timer2)
init
public void init(FactoryParameters params,
Identity identity,
boolean reconnect)
connect
public void connect()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
connect
public void connect(boolean reconnect)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
createSocket
protected java.net.Socket createSocket(java.lang.String hostname,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
send
public void send(AbstractJmsMessage request)
throws java.lang.Exception
- Throws:
java.lang.Exception
receive
public java.lang.Object receive()
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public void close()
addServerAddress
public void addServerAddress(java.lang.String host,
int port)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
stopReconnections
public void stopReconnections()
Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved