public abstract class BaseFileTransferConnectionImpl extends EISConnectionImpl implements TransactionCommitFailureObserverable
| Modifier and Type | Field and Description |
|---|---|
protected List<TransactionCommitFailureListener> |
listeners |
protected static String |
REFERENCE_PAYLOAD_ATTRIBUTE |
managedConnection| Constructor and Description |
|---|
BaseFileTransferConnectionImpl(javax.resource.spi.ManagedConnection mc)
Constructor which takes ManagedConnection as a parameter
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TransactionCommitFailureListener listener) |
protected void |
addListenersToCommand(TransactionalResourceCommand command) |
void |
deliverInputStream(InputStream inputStream,
String fileName,
String outputDir,
boolean overwrite,
String renameExtension,
boolean checksumDelivered,
boolean unzip,
boolean createParentDirectory,
String tempFileName)
Deliver the InputStream
TODO Add in the checksumDelivered feature
|
protected abstract ExecutionOutput |
executeCommand(TransactionalResourceCommand deliveryCommand,
ExecutionContext executionContext)
Execute the command
|
protected Payload |
fileChunkHeaderToPayload(FileChunkHeader header)
Method used to map an
FTPMappedRecord object to a
Payload object. |
protected boolean |
isChunkReference(Payload payload)
Determines if we need to handle this as a chunk reference
|
close, createInteraction, getAutoCommit, getConnectionState, getLocalTransaction, getMetaData, getResultSetInfo, invalidate, setAutoCommit, setManager, validateprotected static final String REFERENCE_PAYLOAD_ATTRIBUTE
protected List<TransactionCommitFailureListener> listeners
public BaseFileTransferConnectionImpl(javax.resource.spi.ManagedConnection mc)
mc - The ManagedConnectionpublic void deliverInputStream(InputStream inputStream, String fileName, String outputDir, boolean overwrite, String renameExtension, boolean checksumDelivered, boolean unzip, boolean createParentDirectory, String tempFileName) throws javax.resource.ResourceException
inputStream - to deliverfileName - The name of the fileoutputDir - The output directory to deliver tooverwrite - Whether to overwrite or notrenameExtension - The extension for renaming the filechecksumDelivered - A flag to see if we check the checksum on deliveryunzip - flagjavax.resource.ResourceException - - Exception from the JCA connectorprotected abstract ExecutionOutput executeCommand(TransactionalResourceCommand deliveryCommand, ExecutionContext executionContext) throws javax.resource.ResourceException
deliveryCommand - The command to executeexecutionContext - The execution contextjavax.resource.ResourceException - The Exception from the JCA connectorprotected Payload fileChunkHeaderToPayload(FileChunkHeader header)
FTPMappedRecord object to a
Payload object.
TODO Is there any other Payload stuff to set here?header - The record as returned from the FileTransferProtocolClientprotected boolean isChunkReference(Payload payload)
payload - - The payload to checkprotected void addListenersToCommand(TransactionalResourceCommand command)
command - public void addListener(TransactionCommitFailureListener listener)
addListener in interface TransactionCommitFailureObserverableCopyright © 2007-2017 Ikasan. All Rights Reserved.