Author |
Boris Capitanu |
Creation date |
06/06/2011 |
Firing policy |
all |
Package |
org.seasr.meandre.components.tools.text.io |
DESCRIPTION
This component reads text from a local or remote location. The text location is specified in the input. The component outputs the text read. A property controls the behavior of the component in the event of an IO error, allowing it to ignore the error and continue, or throw an exception, forcing the finalization of the flow execution.
INPUTS
Name |
Description |
Example |
|---|---|---|
location |
The URL or file name containing the text to read TYPE: java.net.URI TYPE: java.net.URL TYPE: java.lang.String TYPE: org.seasr.datatypes.BasicDataTypes.Strings |
|
OUTPUTS
Name |
Description |
Example |
|---|---|---|
error |
This port is used to output any unhandled errors encountered during the execution of this component |
|
text |
The text read TYPE: org.seasr.datatypes.BasicDataTypes.Strings |
|
location |
The location that the text was read from TYPE: org.seasr.datatypes.BasicDataTypes.Strings |
|
PROPERTIES
Name |
Description |
Default value |
|---|---|---|
_debug_level |
Controls the verbosity of debug messages printed by the component during execution. Possible values are: off, severe, warning, info, config, fine, finer, finest, all Append ',mirror' to any of the values above to mirror that output to the server logs. |
info |
retry_on_timeout |
Retry on connection or read timeout? |
true |
max_attempts |
Maximum number of attempts before giving up |
1 |
connection_timeout |
The connection timeout in milliseconds (amount of time to wait for a connection to be established before giving up; 0 = wait forever) |
0 |
read_timeout |
The read timeout in milliseconds (amount of time to wait for a read operation to complete before giving up; 0 = wait forever) |
0 |
retry_delay |
The amount of time to wait between retries (in milliseconds) |
1000 |
retry_on_http_error |
Retry on HTTP error codes? (Use a comma-separated set of code(s) to retry on, or 0 to disable retry based on HTTP status codes). For example, if 'retry_on_http_error' is set to '503, 500' it means that if the HTTP connection fails with any of these errors, the operation will be retried up to the 'max_retry' times |
0 |
_ignore_errors |
Set to 'true' to ignore all unhandled exceptions and prevent the flow from being terminated. Setting this property to 'false' will result in the flow being terminated in the event an unhandled exception is thrown during the execution of this component |
false |
Add Comment