adams.flow.transformer.MoveFile
Moves a file to a different location (or just renames it).
Source and target can be swapped as well.
Simply forwards the input token if moving was successful.
Flow input/output:
- input: java.lang.String, java.io.File
- output: java.lang.String
The logging level for outputting errors and debugging output.
| command-line | -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> |
| default | WARNING |
| min-user-mode | Expert |
The name of the actor.
| command-line | -name <java.lang.String> |
| default | MoveFile |
The annotations to attach to this actor.
| command-line | -annotation <adams.core.base.BaseAnnotation> |
| default | |
If set to true, transformation is skipped and the input token is just forwarded as it is.
| command-line | -skip <boolean> |
| default | false |
If set to true, the flow execution at this level gets stopped in case this actor encounters an error; the error gets propagated; useful for critical actors.
| command-line | -stop-flow-on-error <boolean> |
| default | false |
| min-user-mode | Expert |
If enabled, then no errors are output in the console; Note: the enclosing actor handler must have this enabled as well.
| command-line | -silent <boolean> |
| default | false |
| min-user-mode | Expert |
The target file or directory.
| command-line | -file <adams.core.io.PlaceholderFile> |
| default | ${CWD} |
If true, then the input token will be used as target and the file parameter as source.
| command-line | -input-is-target <boolean> |
| default | false |
If true, then an atomic move operation will be attempted (NB: not supported by all operating systems).
| command-line | -atomic-move <boolean> |
| default | false |
The number of attempts for moving.
| command-line | -num-attempts <int> |
| default | 1 |
| minimum | 1 |
The time in msec to wait before the next attempt.
| command-line | -attempt-interval <int> |
| default | 1000 |
| minimum | 0 |
If true, then the moved file rather than the input file gets forwarded.
| command-line | -output-moved-file <boolean> |
| default | false |