public class EPDataFlowInstanceImpl extends Object implements EPDataFlowInstance
Constructor and Description |
---|
EPDataFlowInstanceImpl(Object dataFlowInstanceUserObject,
String dataFlowInstanceId,
OperatorStatisticsProvider statistics,
Map<Integer,Object> operators,
List<GraphSourceRunnable> sourceRunnables,
DataflowDesc dataflowDesc,
AgentInstanceContext agentInstanceContext,
EPDataFlowInstanceStatistics statisticsProvider,
Map<String,Object> parametersURIs) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel execution.
|
void |
completed() |
String |
getDataFlowDeploymentId()
Returns the data flow deployment id.
|
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(Object dataFlowInstanceUserObject, String dataFlowInstanceId, OperatorStatisticsProvider statistics, Map<Integer,Object> operators, List<GraphSourceRunnable> sourceRunnables, DataflowDesc dataflowDesc, AgentInstanceContext agentInstanceContext, EPDataFlowInstanceStatistics statisticsProvider, Map<String,Object> parametersURIs)
public String getDataFlowName()
EPDataFlowInstance
getDataFlowName
in interface EPDataFlowInstance
public String getDataFlowDeploymentId()
EPDataFlowInstance
getDataFlowDeploymentId
in interface EPDataFlowInstance
public EPDataFlowState getState()
EPDataFlowInstance
getState
in interface EPDataFlowInstance
public void run() throws IllegalStateException, EPDataFlowExecutionException, EPDataFlowCancellationException
EPDataFlowInstance
run
in interface EPDataFlowInstance
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.public void start() throws IllegalStateException
EPDataFlowInstance
start
in interface EPDataFlowInstance
IllegalStateException
- thrown to indicate that the state is not instantiated.public EPDataFlowInstanceCaptive startCaptive()
EPDataFlowInstance
startCaptive
in interface EPDataFlowInstance
public void join() throws IllegalStateException, InterruptedException
EPDataFlowInstance
join
in interface EPDataFlowInstance
IllegalStateException
- thrown if it cannot be joinedInterruptedException
- thrown if interruptedpublic void cancel()
EPDataFlowInstance
cancel
in interface EPDataFlowInstance
public EPDataFlowInstanceStatistics getStatistics()
EPDataFlowInstance
EPDataFlowInstantiationOptions
to turn on stats.getStatistics
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 void completed()
Copyright © 2005–2018. All rights reserved.