Package com.walkfares.odsl.var.process
Class ProcessRunner
java.lang.Object
com.walkfares.odsl.var.process.ProcessRunner
- All Implemented Interfaces:
ProcessListener
- Direct Known Subclasses:
StatementRunner
public class ProcessRunner extends Object implements ProcessListener
-
Constructor Summary
Constructors Constructor Description ProcessRunner(VarProcess process, OpenDSLContext context)
-
Method Summary
Modifier and Type Method Description void
endPhase(String name, String status, String mess)
void
endProcess(String status, String mess)
OpenDSLContext
getContext()
VarProcess
getProcess()
void
logMessage(String lm)
void
reschedule(long time)
void
retry(String name, int retries)
ProcessStatus
run()
ProcessStatus
run(String script)
void
sendProcessMessage(ProcessMessage message)
void
startPhase(String name)
void
startProcess()
void
waitForRetry(String name, String waittime, int retries)
-
Constructor Details
-
Method Details
-
getProcess
-
getContext
-
run
-
run
-
startProcess
public void startProcess() -
endProcess
-
sendProcessMessage
-
startPhase
- Specified by:
startPhase
in interfaceProcessListener
-
endPhase
- Specified by:
endPhase
in interfaceProcessListener
-
logMessage
- Specified by:
logMessage
in interfaceProcessListener
-
waitForRetry
- Specified by:
waitForRetry
in interfaceProcessListener
-
retry
- Specified by:
retry
in interfaceProcessListener
-
reschedule
public void reschedule(long time)- Specified by:
reschedule
in interfaceProcessListener
-