Package org.waarp.vitam.ingest
Class IngestTask
- java.lang.Object
-
- org.waarp.vitam.ingest.IngestTask
-
public class IngestTask extends Object
IngestTask is a one shot command that will initiate one specific Ingest operation from a Waarp post task on reception.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IngestTask.JavaTask
Equivalent JavaTask
-
Constructor Summary
Constructors Constructor Description IngestTask(WaarpCommon.TaskOption taskOption, String contextId, String action, boolean checkAtr, IngestRequestFactory factory, IngestManager ingestManager)
Unique constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
invoke()
Launch the IngestMonitorstatic void
main(String[] args)
Will try to start the IngestTask according to arguments, else print the help message
-
-
-
Constructor Detail
-
IngestTask
public IngestTask(WaarpCommon.TaskOption taskOption, String contextId, String action, boolean checkAtr, IngestRequestFactory factory, IngestManager ingestManager)
Unique constructor- Parameters:
taskOption
-contextId
-action
-checkAtr
-factory
-ingestManager
-
-
-
Method Detail
-
main
public static void main(String[] args)
Will try to start the IngestTask according to arguments, else print the help message- Parameters:
args
-
-
invoke
public int invoke()
Launch the IngestMonitor- Returns:
- 0 if OK, 1 if Warning, 2 if error
-
-