Class EPDataFlowServiceImpl
java.lang.Object
com.espertech.esper.common.internal.epl.dataflow.core.EPDataFlowServiceImpl
- All Implemented Interfaces:
EPDataFlowService
-
Field Summary
Fields inherited from interface com.espertech.esper.common.client.dataflow.core.EPDataFlowService
EPTYPE_DATAFLOWSTATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataflow
(String deploymentId, DataflowDesc dataflow) getDataFlow
(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.void
removeDataflow
(String deploymentId, DataflowDesc dataflow) 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
-
OP_PACKAGE_NAME
- See Also:
-
-
Constructor Details
-
EPDataFlowServiceImpl
public EPDataFlowServiceImpl()
-
-
Method Details
-
getDataFlow
Description copied from interface:EPDataFlowService
Returns a descriptor for the given data flow, or null if the data flow has not been declared.- Specified by:
getDataFlow
in interfaceEPDataFlowService
- Parameters:
deploymentId
- deployment id of dataflow (deployment id of create-dataflow statement)dataflowName
- data flow name- Returns:
- data flow descriptor
-
getDataFlows
Description copied from interface:EPDataFlowService
Returns the names of all declared data flows.- Specified by:
getDataFlows
in interfaceEPDataFlowService
- Returns:
- data flow names
-
instantiate
public EPDataFlowInstance instantiate(String deploymentId, String dataflowName) throws EPDataFlowInstantiationException Description copied from interface:EPDataFlowService
Instantiate a data flow.- Specified by:
instantiate
in interfaceEPDataFlowService
- 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
public EPDataFlowInstance instantiate(String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options) throws EPDataFlowInstantiationException Description copied from interface:EPDataFlowService
Instantiate a data flow, with options.- Specified by:
instantiate
in interfaceEPDataFlowService
- 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
public void saveInstance(String instanceName, EPDataFlowInstance instance) throws EPDataFlowAlreadyExistsException Description copied from interface:EPDataFlowService
Save an existing instance with the runtime, for later retrieval.- Specified by:
saveInstance
in interfaceEPDataFlowService
- 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
Description copied from interface:EPDataFlowService
Returns the instance names of a saved data flow instances.- Specified by:
getSavedInstances
in interfaceEPDataFlowService
- Returns:
- data flow instance names
-
getSavedInstance
Description copied from interface:EPDataFlowService
Returns a specific saved data flow instance, or null if it has not been found- Specified by:
getSavedInstance
in interfaceEPDataFlowService
- Parameters:
instanceName
- to look for- Returns:
- instance
-
removeSavedInstance
Description copied from interface:EPDataFlowService
Remove an instance previously saved.- Specified by:
removeSavedInstance
in interfaceEPDataFlowService
- Parameters:
instanceName
- to be removed- Returns:
- indicator whether found or not
-
addDataflow
-
removeDataflow
-
saveConfiguration
public void saveConfiguration(String dataflowConfigName, String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options) Description copied from interface:EPDataFlowService
Save an existing data flow configuration (data flow name and its options) for later retrieval.- Specified by:
saveConfiguration
in interfaceEPDataFlowService
- Parameters:
dataflowConfigName
- configuration name to save, must be uniquedeploymentId
- deployment iddataFlowName
- data flow nameoptions
- options object
-
getSavedConfigurations
Description copied from interface:EPDataFlowService
Returns the names of a saved data flow configurations.- Specified by:
getSavedConfigurations
in interfaceEPDataFlowService
- Returns:
- data flow configuration names
-
getSavedConfiguration
Description copied from interface:EPDataFlowService
Returns a saved dataflow configuration or null if it is not found.- Specified by:
getSavedConfiguration
in interfaceEPDataFlowService
- Parameters:
configurationName
- name to find- Returns:
- data flow configuration
-
instantiateSavedConfiguration
public EPDataFlowInstance instantiateSavedConfiguration(String configurationName) throws EPDataFlowInstantiationException Description copied from interface:EPDataFlowService
Instantiate a data flow from a saved configuration.- Specified by:
instantiateSavedConfiguration
in interfaceEPDataFlowService
- Parameters:
configurationName
- configuration name- Returns:
- instance
- Throws:
EPDataFlowInstantiationException
- if the configuration name could not be found
-
removeSavedConfiguration
Description copied from interface:EPDataFlowService
Remove a previously saved data flow configuration.- Specified by:
removeSavedConfiguration
in interfaceEPDataFlowService
- Parameters:
configurationName
- to remove- Returns:
- indicator whether found and removed
-