Package | Description |
---|---|
org.waarp.openr66.context.task |
Classes implementing Tasks for pre, post or error operations
Several kind of tasks exist in OpenR66:
LOG, MOVE, MOVERENAME, COPY, COPYRENAME, EXEC, EXECMOVE, LINKRENAME, TRANSFER, VALIDFILEPATH, DELETE Several tasks are possible to run before a transfer starts (pre action), after a transfer is finished correctly (post action) or after an error occurs (either in pre or post action or during transfer: error action). |
org.waarp.openr66.database.data |
Classes implementing Database Data model
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractExecTask
Execute an external command
It provides some common functionnalities.
|
class |
ChModTask
This task allows to change the mode of the file (as in Unix CHMOD command)
according to the following
argument:
- the full path is get from the current file - the arg path is transformed as usual (static and dynamic from information transfer) - this final path arg should be of the form [ua][+-=][rwx] where multiple elements could be specified, separated by blank character - u/a meaning user(Waarp system user)/all (group and other do not exist in Java), +/-/= meaning add/remove/set (set means all other values are removed), r/w/x meaning Read/Write/Execute For instance, the final path arg could be: u=rwx a=r ua+rw u=rw a-wx a+rw Current access mode for the application will be applied as default "user" access mode, and no access mode (-rwx) will be the default for "all" access mode. |
class |
CopyRenameTask
Copy and Rename task
|
class |
CopyTask
Copy task
|
class |
DeleteTask
Delete the file.
|
class |
ExecJavaTask
Execute a Java command through Class.forName call
|
class |
ExecMoveTask
Execute an external command and Rename the file (using the new name from the
result).
|
class |
ExecOutputTask
Execute an external command and Use the output if an error occurs.
|
class |
ExecTask
Execute an external command
|
class |
FileCheckTask
This task checks some properties relative to the File according to the
following argument:
- SIZE LT/GT/LTE/GTE/EQ number : to check the file size according to a limit (less than, greater than, less than or equal, greater than or equal, equal) - DFCHECK : to check if the future received file size is compatible with the space left on both working and received directories (from general configuration or rule configuration) For instance "SIZE LT 10000000 SIZE GT 1000 DFCHECK" will test that the current file size is less than 10 MB (base 10), and greater than 1000 bytes, and that the working and received directories have enough space to receive the file. |
class |
FtpTransferTask
Ftp Transfer task: synchronous
Result of arguments will be as FTP command. |
class |
LinkRenameTask
Create a link of the current file and make the file pointing to it.
|
class |
LogTask
This class is for logging or write to an external file some info:
- if delay is 0, no echo at all will be done - if delay is 1, will echo some information in the normal log - if delay is 2, will echo some information in the file (last deduced argument will be the full path for the file output) - if delay is 3, will echo both in the normal log and in the file (last deduced argument will be the full path for the file output) If first word for logging is one of debug, info, warn, error, then the corresponding level of log will be used. |
class |
MoveRenameTask
Move and Rename the current file
|
class |
MoveTask
Move the file (without renaming it)
|
class |
RenameTask
Rename the current file (no move, move or creation should be done elsewhere)
|
class |
RescheduleTransferTask
Reschedule Transfer task to a time delayed by the specified number of
milliseconds, if the error code is
one of the specified codes and the optional intervals of date are compatible
with the new time schedule
Result of arguments will be as following options (the two first are mandatory): "-delay ms" where ms is the added number of ms on current time before retry on schedule "-case errorCode,errorCode,..." where errorCode is one of the following error of the current transfer (either literal or code in 1 character: ConnectionImpossible(C), ServerOverloaded(l), BadAuthent(A), ExternalOp(E), TransferError(T), MD5Error(M), Disconnection(D), RemoteShutdown(r), FinalOp(F), Unimplemented(U), Shutdown(S), RemoteError(R), Internal(I), StoppedTransfer(H), CanceledTransfer(K), Warning(W), Unknown(-), QueryAlreadyFinished(Q), QueryStillRunning(s), NotKnownHost(N), QueryRemotelyUnknown(u), FileNotFound(f), CommandNotFound(c), PassThroughMode(p) "-between start;end" and/or "-notbetween start;end" (multiple times are allowed, start or end can be not set) and where start and stop are in the following format: Yn:Mn:Dn:Hn:mn:Sn where n is a number for each time specification, each specification is optional, as Y=Year, M=Month, D=Day, H=Hour, m=minute, s=second. |
class |
RestartServerTask
Command to Restart the R66 server (for instance after upgrade of jar sent by
administrative operations,
unzipped in the library directory)
|
class |
SnmpTask
This class is for sending a SNMP trap/info (according to snmp
configuration):
- if delay is 0, only a warning will be send with the message accordingly - if delay is 1, a notification with the current task and the current message will be send |
class |
TarTask
TAR task
|
class |
TranscodeTask
Transcode the current file from one Charset to another Charset as
specified
Arguments are: -dos2unix or -unix2dos (only one) ; optional argument, but if present -from and -to might be omitted; -from charset -to charset -newfile newfilename ; optional argument ; if not used, will be current filename.extension ; if used, extension is ignored -extension extension ; optional argument ; if not used, will be filename.transcode A convenient method (from Waarp Common) allows to list in html (-html), csv (-csv) or text format (-text) all the supported Charsets from your JVM. |
class |
TransferTask
Transfer task:
Result of arguments will be as r66send command. |
class |
UnzeroedFileTask
This task add 1 byte to empty file if the current file is empty (0
length).
|
class |
ValidFilePathTask
This task validate the File Path according to the following argument:
- the full path is get from the current file - the arg path is transformed as usual (static and dynamic from information transfer) and should be the beginning of the correct valid path - the full path should begin with one of the result of the transformation (blank separated) For instance "#OUTPATH# #INPATH# #WORKPATH# #ARHCPATH#" will test that the current file is in one of the standard path. |
class |
ZipTask
TAR task
|
Modifier and Type | Method and Description |
---|---|
static AbstractTask |
TaskType.getTaskFromId(String name,
String argRule,
int delay,
R66Session session) |
static AbstractTask |
TaskType.getTaskFromId(TaskType type,
String argRule,
int delay,
R66Session session) |
static AbstractTask |
TaskType.getTaskFromIdForBusiness(String name,
String argRule,
int delay,
R66Session session)
For usage in ExecBusinessTask
|
Modifier and Type | Method and Description |
---|---|
AbstractTask |
DbTaskRunner.getTask(String[] task,
R66Session tempSession) |
Copyright © 2009–2020 Waarp. All rights reserved.