Element | Description | Class |
---|
component | a JBI component that interacts with the file system. It hosts endpoints that reads data from and writes data to the file system. | org.apache.servicemix.file.FileComponent |
poller | A polling endpoint that looks for a file or files in a directory and sends
the files to a target service (via the JBI bus), deleting the files by
default when they are processed. The polling endpoint uses a file marshaler
to send the data as a JBI message; be default this marshaler expects XML
payload. For non-XML payload, e.g. plain-text or binary files, use an
alternative marshaler such as the
org.apache.servicemix.components.util.BinaryFileMa | org.apache.servicemix.file.FilePollerEndpoint |
sender | An endpoint which receives messages from the NMR and writes the message to the file system. | org.apache.servicemix.file.FileSenderEndpoint |
Attribute | Type | Description |
---|
archive | xs:string | Specifies a directory relative to the polling directory to which
processed files are archived. |
autoCreateDirectory | xs:boolean | Specifies if the endpoint should create the target directory, if it does
not already exist. If you set this to false and the directory does
not exist, the endpoint will not do anything. Default value is true . |
concurrentPolling | xs:boolean | Sets whether more than one poll can be active at a time (true means yes). Default value is false . |
delay | xs:long | Sets the amount of time in milliseconds that the endpoint should wait before making the first poll. |
deleteFile | xs:boolean | Specifies if files should be deleted after they are processed. Default value is true . |
endpoint | xs:string | the name of the endpoint |
file | xs:string | Specifies the file or directory to be polled. If it is a directory, all
files in the directory or its sub-directories will be processed by the
endpoint. If it is a file, only files matching the filename will be
processed." |
firstTime | xs:date | Sets the date on which the first poll will be executed. If a delay is
also set using setDelay , the delay interval will be added
after the date specified. |
interfaceName | xs:QName | the QName of the interface exposed by the endpoint |
period | xs:long | Sets the number of milliseconds between polling attempts. |
recursive | xs:boolean | Specifies if sub-directories are polled; if false then the poller will
only poll the specified directory. If the endpoint is configured to poll
for a specific file rather than a directory then this attribute is
ignored. Default is true . |
service | xs:QName | the QName of the service exposed by the endpoint |
targetEndpoint | xs:string | the name of the endpoint to which requests are sent |
targetInterface | xs:QName | the QName of the interface to which requests are sent |
targetOperation | xs:QName | the QName of the operation to which requests are sent |
targetService | xs:QName | the QName of the service to which requests are sent |
targetUri | xs:string | |
Attribute | Type | Description |
---|
append | xs:boolean | Specifies if the endpoint appends data to existing files or if it will
overwrite existing files. The default is for the endpoint to overwrite
existing files. Setting this to true instructs the endpoint
to append data. Default value is false . |
autoCreateDirectory | xs:boolean | Specifies if the endpoint should create the target directory if it does
not exist. If you set this to false and the directory does
not exist, the endpoint will not do anything. Default value: true . |
directory | xs:string | Specifies the directory where the endpoint writes files. |
endpoint | xs:string | the name of the endpoint |
interfaceName | xs:QName | the QName of the interface exposed by the endpoint |
service | xs:QName | the QName of the service exposed by the endpoint |
tempFilePrefix | xs:string | Specifies a string to prefix to the beginning of generated temporary file
names. Temporary file names are generated when the endpoint cannot
determine the name of the file from the message. |
tempFileSuffix | xs:string | Specifies a string to append to generated temporary file names. Temporary
file names are generated when the endpoint cannot determine the name of
the file from the message. |