|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BaseFileTransferConnection
An interface for File Transfer based connections
| Method Summary | |
|---|---|
void |
deliverInputStream(java.io.InputStream inputStream,
java.lang.String fileName,
java.lang.String outputDir,
boolean overwrite,
java.lang.String renameExtension,
boolean checksumDelivered,
boolean unzip)
Delivers the content of this InputStream using a File Transfer
client |
void |
deliverPayload(Payload payload,
java.lang.String outputDir,
java.util.Map<java.lang.String,java.lang.String> outputTargets,
boolean overwrite,
java.lang.String renameExtension,
boolean checksumDelivered,
boolean unzip,
boolean cleanup)
Delivers the content of this Payload using a File Transfer
client |
Payload |
getDiscoveredFile(java.lang.String sourceDir,
java.lang.String filenamePattern,
boolean renameOnSuccess,
java.lang.String renameOnSuccessExtension,
boolean moveOnSuccess,
java.lang.String moveOnSuccessNewPath,
boolean chunking,
int chunkSize,
boolean checksum,
long minAge,
boolean destructive,
boolean filterDuplicates,
boolean filterOnFilename,
boolean filterOnLastModifedDate,
boolean chronological)
Discovers any new file on a remote system using a File Transfer client and returns the first one that it finds |
TransactionalCommandConnection |
getManagedConnection()
Get the managed connection |
void |
housekeep(int maxRows,
int ageOfFiles)
Housekeeping the file transfer based connectors |
void |
setManagedConnection(TransactionalCommandConnection managedConnection)
Set the managed connection |
| Methods inherited from interface org.ikasan.connector.base.outbound.EISConnection |
|---|
close, getConnectionState, invalidate, validate |
| Methods inherited from interface javax.resource.cci.Connection |
|---|
createInteraction, getLocalTransaction, getMetaData, getResultSetInfo |
| Method Detail |
|---|
void setManagedConnection(TransactionalCommandConnection managedConnection)
managedConnection - -TransactionalCommandConnection getManagedConnection()
void deliverPayload(Payload payload,
java.lang.String outputDir,
java.util.Map<java.lang.String,java.lang.String> outputTargets,
boolean overwrite,
java.lang.String renameExtension,
boolean checksumDelivered,
boolean unzip,
boolean cleanup)
throws javax.resource.ResourceException
Payload using a File Transfer
client
payload - Payload either containing, or refering to
the file contentoutputDir - dir path on remote system to deliver the file or filesoutputTargets - map of output subdirectories for file delivery keyed by regular expression matches on the delivered file nameoverwrite - overwrite any existing files of the same name(s)renameExtension - temporary extension to use whilst delivering
single filechecksumDelivered - if true, attempt to reload the delivered file to
compare the checksum valueunzip - if true, attempt to unzip the payloadcleanup - if true, cleans up any chunked data
javax.resource.ResourceException - -
void deliverInputStream(java.io.InputStream inputStream,
java.lang.String fileName,
java.lang.String outputDir,
boolean overwrite,
java.lang.String renameExtension,
boolean checksumDelivered,
boolean unzip)
throws javax.resource.ResourceException
InputStream using a File Transfer
client
inputStream - InputStream containing the file contentfileName - name of destination fileoutputDir - dir path on remote system to deliver the file or filesoverwrite - overwrite any existing files of the same name(s)renameExtension - temporary extension to use whilst delivering
single filechecksumDelivered - if true, attempt to reload the delivered file to
compare the checksum valueunzip - if true, attempt to unzip the payload
javax.resource.ResourceException - -
Payload getDiscoveredFile(java.lang.String sourceDir,
java.lang.String filenamePattern,
boolean renameOnSuccess,
java.lang.String renameOnSuccessExtension,
boolean moveOnSuccess,
java.lang.String moveOnSuccessNewPath,
boolean chunking,
int chunkSize,
boolean checksum,
long minAge,
boolean destructive,
boolean filterDuplicates,
boolean filterOnFilename,
boolean filterOnLastModifedDate,
boolean chronological)
throws javax.resource.ResourceException
sourceDir - directory to get files fromfilenamePattern - files to look forrenameOnSuccess - renaming flagrenameOnSuccessExtension - extension used if renamingmoveOnSuccess - moving flagmoveOnSuccessNewPath - new path used if movingchunking - flagchunkSize - size of file chunkschecksum - - checksum retrievalminAge - min age of file to match in secondsdestructive - - Whether or not we destroy the file after successfully picking it upfilterDuplicates - - Whether we filter out duplicates or notfilterOnFilename - filter out files based on their namefilterOnLastModifedDate - filter out files based on last modifiedchronological - retrieve files on a chronological basis
javax.resource.ResourceException - -
void housekeep(int maxRows,
int ageOfFiles)
throws javax.resource.ResourceException
maxRows - Max number of rows the housekeeper can work with at a timeageOfFiles - How old the entries should be (in days)
javax.resource.ResourceException - Exception thrown by the Connector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||