Interface EPDataFlowService
- All Known Implementing Classes:
EPDataFlowServiceImpl
public interface EPDataFlowService
Data flow runtime for instantiating data flows.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDataFlow
(String deploymentId, String dataflowName) Returns a descriptor for the given data flow, or null if the data flow has not been declared.Returns the names of all declared data flows.getSavedConfiguration
(String configurationName) Returns a saved dataflow configuration or null if it is not found.String[]
Returns the names of a saved data flow configurations.getSavedInstance
(String instanceName) Returns a specific saved data flow instance, or null if it has not been foundString[]
Returns the instance names of a saved data flow instances.instantiate
(String deploymentId, String dataflowName) Instantiate a data flow.instantiate
(String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options) Instantiate a data flow, with options.instantiateSavedConfiguration
(String configurationName) Instantiate a data flow from a saved configuration.boolean
removeSavedConfiguration
(String configurationName) Remove a previously saved data flow configuration.boolean
removeSavedInstance
(String instanceName) Remove an instance previously saved.void
saveConfiguration
(String dataflowConfigName, String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options) Save an existing data flow configuration (data flow name and its options) for later retrieval.void
saveInstance
(String instanceName, EPDataFlowInstance instance) Save an existing instance with the runtime, for later retrieval.
-
Field Details
-
EPTYPE_DATAFLOWSTATE
Type information
-
-
Method Details
-
getDataFlow
Returns a descriptor for the given data flow, or null if the data flow has not been declared.- Parameters:
deploymentId
- deployment id of dataflow (deployment id of create-dataflow statement)dataflowName
- data flow name- Returns:
- data flow descriptor
-
getDataFlows
DeploymentIdNamePair[] getDataFlows()Returns the names of all declared data flows.- Returns:
- data flow names
-
instantiate
EPDataFlowInstance instantiate(String deploymentId, String dataflowName) throws EPDataFlowInstantiationException Instantiate a data flow.- Parameters:
deploymentId
- deployment id of dataflow (deployment id of create-dataflow statement)dataflowName
- name of data flow to instantiate- Returns:
- data flow instance
- Throws:
EPDataFlowInstantiationException
- when the instantiation failed
-
instantiate
EPDataFlowInstance instantiate(String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options) throws EPDataFlowInstantiationException Instantiate a data flow, with options.- Parameters:
deploymentId
- deployment id of dataflow (deployment id of create-dataflow statement)dataFlowName
- name of data flow to instantiateoptions
- populate options to control parameterization, instantiation etc.- Returns:
- data flow instance
- Throws:
EPDataFlowInstantiationException
- when the instantiation failed
-
saveInstance
void saveInstance(String instanceName, EPDataFlowInstance instance) throws EPDataFlowAlreadyExistsException Save an existing instance with the runtime, for later retrieval.- Parameters:
instanceName
- name to use to save, must be unique among currently saved instancesinstance
- saved- Throws:
EPDataFlowAlreadyExistsException
- if an instance by this name already exists
-
getSavedInstances
String[] getSavedInstances()Returns the instance names of a saved data flow instances.- Returns:
- data flow instance names
-
getSavedInstance
Returns a specific saved data flow instance, or null if it has not been found- Parameters:
instanceName
- to look for- Returns:
- instance
-
removeSavedInstance
Remove an instance previously saved.- Parameters:
instanceName
- to be removed- Returns:
- indicator whether found or not
-
saveConfiguration
void saveConfiguration(String dataflowConfigName, String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options) throws EPDataFlowAlreadyExistsException, EPDataFlowNotFoundException Save an existing data flow configuration (data flow name and its options) for later retrieval.- Parameters:
dataflowConfigName
- configuration name to save, must be uniquedeploymentId
- deployment iddataFlowName
- data flow nameoptions
- options object- Throws:
EPDataFlowAlreadyExistsException
- if the configuration name is already usedEPDataFlowNotFoundException
- if the data flow by this name does not exist
-
getSavedConfigurations
String[] getSavedConfigurations()Returns the names of a saved data flow configurations.- Returns:
- data flow configuration names
-
getSavedConfiguration
Returns a saved dataflow configuration or null if it is not found.- Parameters:
configurationName
- name to find- Returns:
- data flow configuration
-
instantiateSavedConfiguration
EPDataFlowInstance instantiateSavedConfiguration(String configurationName) throws EPDataFlowInstantiationException Instantiate a data flow from a saved configuration.- Parameters:
configurationName
- configuration name- Returns:
- instance
- Throws:
EPDataFlowInstantiationException
- if the configuration name could not be found
-
removeSavedConfiguration
Remove a previously saved data flow configuration.- Parameters:
configurationName
- to remove- Returns:
- indicator whether found and removed
-