Interface EPDataFlowInstance
- All Known Implementing Classes:
EPDataFlowInstanceImpl
public interface EPDataFlowInstance
Data flow instanve.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel execution.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.
-
Method Details
-
getDataFlowDeploymentId
String getDataFlowDeploymentId()Returns the data flow deployment id.- Returns:
- deployment id
-
getDataFlowName
String getDataFlowName()Returns the data flow name.- Returns:
- name
-
getState
EPDataFlowState getState()Returns the state.- Returns:
- state
-
run
void run() throws IllegalStateException, EPDataFlowExecutionException, EPDataFlowCancellationExceptionBlocking execution of the data flow instance.- 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
Non-Blocking execution of the data flow instance.- Throws:
IllegalStateException
- thrown to indicate that the state is not instantiated.
-
startCaptive
EPDataFlowInstanceCaptive startCaptive()Captive execution of the data flow instance.- Returns:
- runnables and emitters
-
join
Join an executing data flow instance.- Throws:
IllegalStateException
- thrown if it cannot be joinedInterruptedException
- thrown if interrupted
-
cancel
void cancel()Cancel execution. -
getStatistics
EPDataFlowInstanceStatistics getStatistics()Get data flow instance statistics, required instantiation with statistics option, useEPDataFlowInstantiationOptions
to turn on stats.- Returns:
- stats
-
getUserObject
Object getUserObject()Returns the user object associated, if any. UseEPDataFlowInstantiationOptions
to associate.- Returns:
- user object
-
getInstanceId
String getInstanceId()Returns the instance id associated, if any. UseEPDataFlowInstantiationOptions
to associate.- Returns:
- instance if
-
getParameters
Returns runtime parameters provided at instantiation time, or null if none have been provided.- Returns:
- runtime parameters
-