Appendix A. Poller Endpoint Properties
Attributes
Table A.1, “Attributes for configuring a poller endpoint” describes the attributes used to configure a poller endpoint.
Name | Type | Description | Default |
---|---|---|---|
service | QName | Specifies the service name of the endpoint. | required |
endpoint | String | Specifies the name of the endpoint. | required |
interfaceName | QName | Specifies the interface name of the endpoint. | |
targetService | QName | Specifies the service name of the target endpoint. | |
targetEndPoint | String | Specifies the name of the target endpoint. | |
targetInterface | QName | Specifies the interface name of the target endpoint. | |
targetUri | string | Specifies the URI of the target endpoint. | |
autoCreateDirectory | boolean | Specifies if the endpoint will create the target directory if it does not exist. | true |
firstTime | date | Specifies the date and the time the first poll will take place. | null (The first poll will happen right after start up.) |
delay | long | Specifies amount of time, in milliseconds, to wait before performing the first poll. | 0 |
period | long | Specifies the amount of time, in milliseconds, between polls. | 5000 |
file | String | Speficies the file or directory to poll. | required |
deleteFile | boolean | Specifies if the file is deleted after it is processed. | true |
recursive | boolean | Specifies if the endpoint processes sub directories when polling. | true |
archive | string | Specifies the name of the directory to archive files into before deleting them. | null (no archiving) |
Beans
Table A.2, “Beans for configuring a poller endpoint” describes the beans which can be used to configure a poller endpoint.
Name | Type | Description | Default |
---|---|---|---|
marshaler | org.apache.servicemix.components.util.FileMarshaler | Specifies the class used to marshal data from the file. | DefaultFileMarshaler |
lockManager | org.apache.servicemix.locks.LockManager | Specifies the class implementing the file locking. | SimpleLockManager |
filter | java.io.FileFilter | Specifies the class implementing the filtering logic to use for selecting files. |