|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.tcp.AbstractTcpSocketFactory
org.mule.transport.tcp.TcpSocketFactory
org.mule.transport.legstar.tcp.LegstarTcpSocketFactory
public class LegstarTcpSocketFactory
Deliver new socket connections when needed.
Satisfy the EZASOCKET need for an initial message.
| Field Summary | |
|---|---|
static int |
MAX_PROT_REPLY_LEN
Maximum size of the host reply for acknowledgements and error reports. |
static String |
REPLY_ACK_MSG_EC
Reply eye catcher for acknowledgements. |
static String |
UOW_COMMIT
Processing instructions for UOW commit. |
static String |
UOW_KEEP
Processing instructions for UOW keep. |
static String |
UOW_ROLLBACK
Processing instructions for UOW rollback. |
| Constructor Summary | |
|---|---|
LegstarTcpSocketFactory(LegstarTcpConnector connector)
Creates a factory and binds it to a protocol. |
|
| Method Summary | |
|---|---|
protected void |
exchangeCommitMessage(Socket socket)
Commit the server transaction. |
protected void |
exchangeInitialMessage(Socket socket,
org.mule.api.security.Credentials credentials)
EZASOKET expects an initial message that includes credentials. |
protected void |
exchangeProbeMessage(Socket socket)
Probe the server transaction to make sure it is not stale. |
LegstarTcpConnector |
getConnector()
|
Object |
makeObject(Object key)
The socket pool invokes this method when it needs to create a new socket. |
void |
passivateObject(Object key,
Object object)
When a socket is returned to the pool in opened state, we need to commit the mainframe transaction (otherwise the transaction would never end). |
boolean |
validateObject(Object key,
Object object)
When sockets are reused, the server transaction might have timed out or gone stale. |
| Methods inherited from class org.mule.transport.tcp.TcpSocketFactory |
|---|
createSocket |
| Methods inherited from class org.mule.transport.tcp.AbstractTcpSocketFactory |
|---|
activateObject, destroyObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REPLY_ACK_MSG_EC
public static final int MAX_PROT_REPLY_LEN
public static final String UOW_COMMIT
public static final String UOW_ROLLBACK
public static final String UOW_KEEP
| Constructor Detail |
|---|
public LegstarTcpSocketFactory(LegstarTcpConnector connector)
connector - to bind to this factory| Method Detail |
|---|
public Object makeObject(Object key)
throws Exception
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactorymakeObject in class org.mule.transport.tcp.AbstractTcpSocketFactoryException
public boolean validateObject(Object key,
Object object)
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryvalidateObject in class org.mule.transport.tcp.AbstractTcpSocketFactory
public void passivateObject(Object key,
Object object)
throws Exception
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactorypassivateObject in class org.mule.transport.tcp.AbstractTcpSocketFactoryException
protected void exchangeInitialMessage(Socket socket,
org.mule.api.security.Credentials credentials)
throws Exception
socket - the opened connection to EZASOKETcredentials - the host credentials
Exception - if initial message cannot be exchanged with CICS server
protected void exchangeProbeMessage(Socket socket)
throws Exception
socket - the opened connection to EZASOKET
Exception - if probe message cannot be exchanged with CICS server
protected void exchangeCommitMessage(Socket socket)
throws Exception
socket - the opened connection to EZASOKET
Exception - if probe message cannot be exchanged with CICS serverpublic LegstarTcpConnector getConnector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||