public abstract class KeplerPairFlatMapFunction<T,K,V> extends PairFlatMapFunctionBase<T,K,V> implements ExecutionListener
Modifier and Type | Field and Description |
---|---|
protected java.lang.Exception |
_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 boolean |
_runWorkflowLifecyclePerInput
If true, the entire workflow lifecycle is executed for each input.
|
protected StubSinkActor |
_sinkActor
A sink actor used for reading data from the workflow and writing
it to Spark.
|
protected StubSourceActor |
_sourceActor
A source actor used for reading data from Spark and writing
it the Kepler workflow.
|
_parameters
Constructor and Description |
---|
KeplerPairFlatMapFunction(java.lang.String sourceActorName,
java.lang.String sinkActorName) |
Modifier and Type | Method and Description |
---|---|
protected void |
_cleanup()
Free resources.
|
protected void |
_initialize()
Configure the stub by loading the workflow and initialize the
class fields.
|
void |
executionError(Manager manager,
java.lang.Throwable throwable)
Report workflow execution errors to the log.
|
void |
executionFinished(Manager manager)
Do nothing.
|
void |
managerStateChanged(Manager manager)
Do nothing.
|
readExternal, setConfiguration, writeExternal
protected StubSourceActor _sourceActor
protected StubSinkActor _sinkActor
protected boolean _runWorkflowLifecyclePerInput
protected java.lang.Exception _keplerManagerException
public KeplerPairFlatMapFunction(java.lang.String sourceActorName, java.lang.String sinkActorName)
protected void _cleanup() throws java.lang.Exception
java.lang.Exception
protected void _initialize() throws java.lang.Exception
java.lang.Exception
public void executionError(Manager manager, java.lang.Throwable throwable)
executionError
in interface ExecutionListener
manager
- The manager controlling the execution.throwable
- The throwable to report.public void executionFinished(Manager manager)
executionFinished
in interface ExecutionListener
manager
- The manager controlling the execution.public void managerStateChanged(Manager manager)
managerStateChanged
in interface ExecutionListener
manager
- The manager controlling the execution.Manager.getState()