public class FTPConnectionImpl extends BaseFileTransferConnectionImpl
| Modifier and Type | Field and Description |
|---|---|
protected FTPManagedConnection |
managedConnection
The managed connection, overrides the definition in the EISConnectionImpl
so that we don't have to cast back all of the time
|
listeners, REFERENCE_PAYLOAD_ATTRIBUTE| Constructor and Description |
|---|
FTPConnectionImpl(FTPManagedConnection mc,
FileChunkDao fileChunkDao,
BaseFileTransferDao baseFileTransferDao)
Constructor which takes ManagedConnection as a parameter
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clients call this to indicate that they have finished with a connection.
|
void |
deliverPayload(Payload payload,
String outputDir,
Map<String,String> outputTargets,
boolean overwrite,
String renameExtension,
boolean checksumDelivered,
boolean unzip,
boolean cleanup)
Deprecated.
|
protected ExecutionOutput |
executeCommand(TransactionalResourceCommand command,
ExecutionContext executionContext)
Executes a command with a given ExecutionContext
|
Payload |
getDiscoveredFile(String sourceDir,
String filenamePattern,
boolean renameOnSuccess,
String renameOnSuccessExtension,
boolean moveOnSuccess,
String moveOnSuccessNewPath,
boolean chunking,
int chunkSize,
boolean checksum,
long minAge,
boolean destructive,
boolean filterDuplicates,
boolean filterOnFilename,
boolean filterOnLastModifiedDate,
boolean chronological,
boolean isRecursive) |
TransactionalCommandConnection |
getManagedConnection()
getManagedConnection is called by the FTPManagedConnection when the
application server wants to re-associate a virtual connection with a new
manager.
|
void |
housekeep(int maxRows,
int ageOfFiles)
TODO Non trivial change but this too can go up one level to
BaseFileTransferConnectionImpl
|
void |
setManagedConnection(TransactionalCommandConnection managedConnection)
setManagedConnection is called by the FTPManagedConnection when the
application server wants to re-associate a virtual connection with a new
manager.
|
addListener, addListenersToCommand, createInteraction, deliverInputStream, fileChunkHeaderToPayload, getLocalTransaction, getMetaData, getResultSetInfo, isChunkReferenceprotected FTPManagedConnection managedConnection
public FTPConnectionImpl(FTPManagedConnection mc, FileChunkDao fileChunkDao, BaseFileTransferDao baseFileTransferDao)
mc - The ManagedConnectionpublic TransactionalCommandConnection getManagedConnection()
public void setManagedConnection(TransactionalCommandConnection managedConnection)
managedConnection - - The managed connectionpublic void close()
public Payload getDiscoveredFile(String sourceDir, String filenamePattern, boolean renameOnSuccess, String renameOnSuccessExtension, boolean moveOnSuccess, String moveOnSuccessNewPath, boolean chunking, int chunkSize, boolean checksum, long minAge, boolean destructive, boolean filterDuplicates, boolean filterOnFilename, boolean filterOnLastModifiedDate, boolean chronological, boolean isRecursive) throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic void deliverPayload(Payload payload, String outputDir, Map<String,String> outputTargets, boolean overwrite, String renameExtension, boolean checksumDelivered, boolean unzip, boolean cleanup) throws javax.resource.ResourceException
payload - - The payload to deliveroutputDir - - The output directory to deliver it tooutputTargets - - The list of output targets to deliver it tooverwrite - - Overwrite flagrenameExtension - - extension for the file renamechecksumDelivered - - Flag to indicate whether we're checksuming the
deliveryunzip - - Flag to indicate whether we're unzipping the filecleanup - - Flag to indicate whether we cleanup the transaction
journaljavax.resource.ResourceException - - Exception thrown by the FTP connectorprotected ExecutionOutput executeCommand(TransactionalResourceCommand command, ExecutionContext executionContext) throws javax.resource.ResourceException
executeCommand in class BaseFileTransferConnectionImplcommand - - The command to executeexecutionContext - - The context of executionjavax.resource.ResourceException - - Exception from the FTP connectorpublic void housekeep(int maxRows,
int ageOfFiles)
throws javax.resource.ResourceException
maxRows - The maximum amount of rows to housekeepageOfFiles - The age of the files to housekeepjavax.resource.ResourceException - Exception thrown by the FTP ConnectorCopyright © 2007-2017 Ikasan. All Rights Reserved.