public class FTPManagedConnection extends TransactionalCommandConnection implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger
The logger instance.
|
instanceCount, instanceOrdinal, listeners, transactionJournal, xidTMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
FTPManagedConnection(FTPConnectionRequestInfo fcri)
Constructor, sets the managed connection factory and the hibernate filter
table
client ID sits on EISManagedConnection
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
cleanupJournalOnComplete() |
protected void |
closeSession()
Close the FileTransferProtocolClient session
|
void |
forget(Xid arg0)
Deal with forgetting this unit of work as a txn, in this case do nothing
|
String |
getClientID() |
Object |
getConnection(FileChunkDao fileChunkDao,
BaseFileTransferDao baseFileTransferDao)
Create a virtual connection (a BaseFileTransferConnection object) and
add it to the list of managed instances before returning it to the client.
|
protected TransactionalResource |
getTransactionalResource() |
int |
getTransactionTimeout()
Return the Transaction timeout, always set to 0
|
XAResource |
getXAResource()
Get the XA resource for this managed connection, in this case, itself.
|
boolean |
isSameRM(XAResource arg0)
Return whether or not this resource manager is the same, always return
false
|
void |
openSession()
openSession initiates the physical connection to the server and logs us
in.
|
protected void |
postCommit(Xid arg0)
Hook method to allow any connector specific post commit functionality
|
protected void |
postRollback(Xid arg0)
Hook method to allow any connector specific post rollback functionality
|
boolean |
setTransactionTimeout(int arg0)
Set the txn timeout, always return false
|
addListener, addListenersToCommand, commit, commitCommands, end, executeCommand, preCommit, prepare, preRollback, recover, rollback, rollbackCommands, sendErrorEvent, setTransactionJournal, start, transactionInProgresspublic FTPManagedConnection(FTPConnectionRequestInfo fcri)
fcri - connection request infopublic Object getConnection(FileChunkDao fileChunkDao, BaseFileTransferDao baseFileTransferDao)
public String getClientID()
public void openSession()
throws javax.resource.ResourceException
javax.resource.ResourceException - Exception thrown by Connectorprotected void closeSession()
public void forget(Xid arg0)
forget in interface XAResourceEISXAManagedConnectionpublic int getTransactionTimeout()
getTransactionTimeout in interface XAResourceEISXAManagedConnectionpublic XAResource getXAResource()
getXAResource in class TransactionalCommandConnectionEISXAManagedConnectionpublic boolean isSameRM(XAResource arg0)
isSameRM in interface XAResourceEISXAManagedConnectionpublic boolean setTransactionTimeout(int arg0)
setTransactionTimeout in interface XAResourceEISXAManagedConnectionprotected TransactionalResource getTransactionalResource()
getTransactionalResource in class TransactionalCommandConnectionprotected void postRollback(Xid arg0)
postRollback in class TransactionalCommandConnectionarg0 - Transaction Idprotected void postCommit(Xid arg0)
postCommit in class TransactionalCommandConnectionarg0 - Transaction Idprotected boolean cleanupJournalOnComplete()
cleanupJournalOnComplete in class TransactionalCommandConnectionCopyright © 2007-2017 Ikasan. All Rights Reserved.