public class EPDataFlowInstanceImpl extends Object implements EPDataFlowInstance, CompletionListener
Constructor and Description |
---|
EPDataFlowInstanceImpl(String engineURI,
String statementName,
boolean audit,
String dataFlowName,
Object userObject,
String instanceId,
EPDataFlowState state,
List<GraphSourceRunnable> sourceRunnables,
Map<Integer,Object> operators,
Set<Integer> operatorBuildOrder,
EPDataFlowInstanceStatistics statisticsProvider,
Map<String,Object> parameters,
EngineImportService engineImportService) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel execution.
|
void |
completed() |
String |
getDataFlowName()
Returns the data flow name.
|
String |
getInstanceId()
Returns the instance id associated, if any.
|
Map<String,Object> |
getParameters()
Returns runtime parameters provided at instantiation time, or null if none have been provided.
|
EPDataFlowState |
getState()
Returns the state.
|
EPDataFlowInstanceStatistics |
getStatistics()
Get data flow instance statistics, required instantiation with statistics option, use
EPDataFlowInstantiationOptions to turn on stats. |
Object |
getUserObject()
Returns the user object associated, if any.
|
void |
join()
Join an executing data flow instance.
|
void |
run()
Blocking execution of the data flow instance.
|
void |
start()
Non-Blocking execution of the data flow instance.
|
EPDataFlowInstanceCaptive |
startCaptive()
Captive execution of the data flow instance.
|
public EPDataFlowInstanceImpl(String engineURI, String statementName, boolean audit, String dataFlowName, Object userObject, String instanceId, EPDataFlowState state, List<GraphSourceRunnable> sourceRunnables, Map<Integer,Object> operators, Set<Integer> operatorBuildOrder, EPDataFlowInstanceStatistics statisticsProvider, Map<String,Object> parameters, EngineImportService engineImportService)
public String getDataFlowName()
EPDataFlowInstance
getDataFlowName
in interface EPDataFlowInstance
public EPDataFlowState getState()
EPDataFlowInstance
getState
in interface EPDataFlowInstance
public Object getUserObject()
EPDataFlowInstance
EPDataFlowInstantiationOptions
to associate.getUserObject
in interface EPDataFlowInstance
public String getInstanceId()
EPDataFlowInstance
EPDataFlowInstantiationOptions
to associate.getInstanceId
in interface EPDataFlowInstance
public Map<String,Object> getParameters()
EPDataFlowInstance
getParameters
in interface EPDataFlowInstance
public EPDataFlowInstanceCaptive startCaptive()
EPDataFlowInstance
startCaptive
in interface EPDataFlowInstance
public void run()
EPDataFlowInstance
run
in interface EPDataFlowInstance
public void start()
EPDataFlowInstance
start
in interface EPDataFlowInstance
public void join() throws InterruptedException
EPDataFlowInstance
join
in interface EPDataFlowInstance
InterruptedException
- thrown if interruptedpublic void cancel()
EPDataFlowInstance
cancel
in interface EPDataFlowInstance
public void completed()
completed
in interface CompletionListener
public EPDataFlowInstanceStatistics getStatistics()
EPDataFlowInstance
EPDataFlowInstantiationOptions
to turn on stats.getStatistics
in interface EPDataFlowInstance