Class EPDataFlowInstanceImpl
java.lang.Object
com.espertech.esper.common.internal.epl.dataflow.core.EPDataFlowInstanceImpl
- All Implemented Interfaces:
EPDataFlowInstance
-
Constructor Summary
ConstructorDescriptionEPDataFlowInstanceImpl
(Object dataFlowInstanceUserObject, String dataFlowInstanceId, OperatorStatisticsProvider statistics, Map<Integer, Object> operators, List<GraphSourceRunnable> sourceRunnables, DataflowDesc dataflowDesc, AgentInstanceContext agentInstanceContext, EPDataFlowInstanceStatistics statisticsProvider, Map<String, Object> parametersURIs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel execution.void
Returns the data flow deployment id.Returns the data flow name.Returns the instance id associated, if any.Returns runtime parameters provided at instantiation time, or null if none have been provided.getState()
Returns the state.Get data flow instance statistics, required instantiation with statistics option, useEPDataFlowInstantiationOptions
to turn on stats.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.Captive execution of the data flow instance.
-
Constructor Details
-
EPDataFlowInstanceImpl
public EPDataFlowInstanceImpl(Object dataFlowInstanceUserObject, String dataFlowInstanceId, OperatorStatisticsProvider statistics, Map<Integer, Object> operators, List<GraphSourceRunnable> sourceRunnables, DataflowDesc dataflowDesc, AgentInstanceContext agentInstanceContext, EPDataFlowInstanceStatistics statisticsProvider, Map<String, Object> parametersURIs)
-
-
Method Details
-
getDataFlowName
Description copied from interface:EPDataFlowInstance
Returns the data flow name.- Specified by:
getDataFlowName
in interfaceEPDataFlowInstance
- Returns:
- name
-
getDataFlowDeploymentId
Description copied from interface:EPDataFlowInstance
Returns the data flow deployment id.- Specified by:
getDataFlowDeploymentId
in interfaceEPDataFlowInstance
- Returns:
- deployment id
-
getState
Description copied from interface:EPDataFlowInstance
Returns the state.- Specified by:
getState
in interfaceEPDataFlowInstance
- Returns:
- state
-
run
public void run() throws IllegalStateException, EPDataFlowExecutionException, EPDataFlowCancellationExceptionDescription copied from interface:EPDataFlowInstance
Blocking execution of the data flow instance.- Specified by:
run
in interfaceEPDataFlowInstance
- Throws:
IllegalStateException
- thrown to indicate that the state is not instantiated.EPDataFlowExecutionException
- thrown when an execution exception occursEPDataFlowCancellationException
- throw to indicate the data flow was cancelled.
-
start
Description copied from interface:EPDataFlowInstance
Non-Blocking execution of the data flow instance.- Specified by:
start
in interfaceEPDataFlowInstance
- Throws:
IllegalStateException
- thrown to indicate that the state is not instantiated.
-
startCaptive
Description copied from interface:EPDataFlowInstance
Captive execution of the data flow instance.- Specified by:
startCaptive
in interfaceEPDataFlowInstance
- Returns:
- runnables and emitters
-
join
Description copied from interface:EPDataFlowInstance
Join an executing data flow instance.- Specified by:
join
in interfaceEPDataFlowInstance
- Throws:
IllegalStateException
- thrown if it cannot be joinedInterruptedException
- thrown if interrupted
-
cancel
public void cancel()Description copied from interface:EPDataFlowInstance
Cancel execution.- Specified by:
cancel
in interfaceEPDataFlowInstance
-
getStatistics
Description copied from interface:EPDataFlowInstance
Get data flow instance statistics, required instantiation with statistics option, useEPDataFlowInstantiationOptions
to turn on stats.- Specified by:
getStatistics
in interfaceEPDataFlowInstance
- Returns:
- stats
-
getUserObject
Description copied from interface:EPDataFlowInstance
Returns the user object associated, if any. UseEPDataFlowInstantiationOptions
to associate.- Specified by:
getUserObject
in interfaceEPDataFlowInstance
- Returns:
- user object
-
getInstanceId
Description copied from interface:EPDataFlowInstance
Returns the instance id associated, if any. UseEPDataFlowInstantiationOptions
to associate.- Specified by:
getInstanceId
in interfaceEPDataFlowInstance
- Returns:
- instance if
-
getParameters
Description copied from interface:EPDataFlowInstance
Returns runtime parameters provided at instantiation time, or null if none have been provided.- Specified by:
getParameters
in interfaceEPDataFlowInstance
- Returns:
- runtime parameters
-
completed
public void completed()
-