com.massimo.tools.scriptrunner.work.monitor
Class PropertiesTask
java.lang.Object
com.massimo.tools.scriptrunner.AbstractTask
com.massimo.tools.scriptrunner.work.monitor.PropertiesTask
- All Implemented Interfaces:
- Task
public class PropertiesTask
- extends AbstractTask
Dump information on properties, Task and system.
Methods inherited from class com.massimo.tools.scriptrunner.AbstractTask |
getBooleanProperty, getCurrentWorkingDirectory, getDefinition, getIntProperty, getName, getParent, getProperties, getStartProcessingRow, getText, getType, interrupt, isIgnoreableError, isIgnoreableError, isInterrupted, isLogProgress, postProcess, preProcess, process, resultCodeToString, substituteParameters, toString, validate, validateConnections, validateParameters |
PropertiesTask
public PropertiesTask(Task parent,
String type,
Element definition,
Map<String,String> parentProperties)
- Parameters:
parent
- type
- definition
- parentProperties
-
doProcess
protected int doProcess(ExecutionContext context)
throws Exception
- Implementing classes only need to do their own work and log progress when appropriate.
Print information on system and task properties to stdout.
- Specified by:
doProcess
in class AbstractTask
- Returns:
- O for success. Anything else is a failure.
- Throws:
Exception
- See Also:
AbstractTask.process(ExecutionContext)
doValidate
protected int doValidate(ValidationContext context)
throws Exception
- Check whether this task should be able to run.
Implementations should check for the prescence of files, attributes,...
- Specified by:
doValidate
in class AbstractTask
- Returns:
- O for success. Anything else is a failure.
- Throws:
Exception
getLogger
protected org.apache.log4j.Logger getLogger()
-
- Specified by:
getLogger
in class AbstractTask
- Returns:
- Class logger