public class KeplerAppBase extends java.lang.Object implements ExecutionListener
Modifier and Type | Field and Description |
---|---|
protected java.io.IOException |
_keplerManagerException
If the workflow is running in a separate thread
(_runWorkflowLifecyclePerInput = false) and an exception
is thrown, this field is set to that exception.
|
protected Manager |
_manager
Manager to execute the workflow.
|
protected CompositeActor |
_model
The workflow to execute.
|
protected boolean |
_runWorkflowLifecyclePerInput
If true, the entire workflow lifecycle is executed for each input.
|
protected StubSinkActor |
_sinkActor
The actor reading output from the workflow.
|
protected StubSourceActor |
_sourceActor
The actor writing input to the workflow.
|
Modifier | Constructor and Description |
---|---|
protected |
KeplerAppBase(org.apache.hadoop.conf.Configuration hadoopConf,
java.lang.String sourceActorName,
java.lang.String sinkActorName)
Create a new KeplerAppBase.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Perform cleanup after all inputs are processed.
|
void |
executionError(Manager manager,
java.lang.Throwable throwable)
Report an execution failure.
|
void |
executionFinished(Manager manager)
Report that the current execution has finished and
the wrapup sequence has completed normally.
|
void |
managerStateChanged(Manager manager)
Report that the manager has changed state.
|
protected CompositeActor _model
protected boolean _runWorkflowLifecyclePerInput
protected StubSourceActor _sourceActor
protected StubSinkActor _sinkActor
protected java.io.IOException _keplerManagerException
protected KeplerAppBase(org.apache.hadoop.conf.Configuration hadoopConf, java.lang.String sourceActorName, java.lang.String sinkActorName)
hadoopConf
- the hadoop configuration object.sourceActorName
- the name of the source actor in the workflow.sinkActorName
- the name of the sink actor in the workflow.public void cleanup() throws java.lang.InterruptedException
java.lang.InterruptedException
public void executionError(Manager manager, java.lang.Throwable throwable)
ExecutionListener
executionError
in interface ExecutionListener
manager
- The manager controlling the execution.throwable
- The throwable to report.public void executionFinished(Manager manager)
ExecutionListener
executionFinished
in interface ExecutionListener
manager
- The manager controlling the execution.public void managerStateChanged(Manager manager)
ExecutionListener
managerStateChanged
in interface ExecutionListener
manager
- The manager controlling the execution.Manager.getState()