public class DataFlowServiceImpl extends Object implements DataFlowService
Constructor and Description |
---|
DataFlowServiceImpl(EPServiceProvider epService,
DataFlowConfigurationStateService configurationState) |
Modifier and Type | Method and Description |
---|---|
void |
addStartGraph(CreateDataFlowDesc desc,
StatementContext statementContext,
EPServicesContext servicesContext,
AgentInstanceContext agentInstanceContext,
boolean newStatement) |
void |
destroy() |
EPDataFlowDescriptor |
getDataFlow(String dataFlowName)
Returns a descriptor for the given data flow, or null if the data flow has not been declared.
|
String[] |
getDataFlows()
Returns the names of all declared data flows.
|
EPDataFlowSavedConfiguration |
getSavedConfiguration(String configurationName)
Returns a saved dataflow configuration or null if it is not found.
|
String[] |
getSavedConfigurations()
Returns the names of a saved data flow configurations.
|
EPDataFlowInstance |
getSavedInstance(String instanceName)
Returns a specific saved data flow instance, or null if it has not been found
|
String[] |
getSavedInstances()
Returns the instance names of a saved data flow instances.
|
EPDataFlowInstance |
instantiate(String dataFlowName)
Instantiate a data flow.
|
EPDataFlowInstance |
instantiate(String dataFlowName,
EPDataFlowInstantiationOptions options)
Instantiate a data flow, with options.
|
EPDataFlowInstance |
instantiateSavedConfiguration(String configurationName)
Instantiate a data flow from a saved configuration.
|
void |
removeGraph(String graphName) |
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 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.
|
void |
stopGraph(String graphName) |
public DataFlowServiceImpl(EPServiceProvider epService, DataFlowConfigurationStateService configurationState)
public EPDataFlowDescriptor getDataFlow(String dataFlowName)
EPDataFlowRuntime
getDataFlow
in interface EPDataFlowRuntime
dataFlowName
- data flow namepublic String[] getDataFlows()
EPDataFlowRuntime
getDataFlows
in interface EPDataFlowRuntime
public void addStartGraph(CreateDataFlowDesc desc, StatementContext statementContext, EPServicesContext servicesContext, AgentInstanceContext agentInstanceContext, boolean newStatement) throws ExprValidationException
addStartGraph
in interface DataFlowService
ExprValidationException
public void stopGraph(String graphName)
stopGraph
in interface DataFlowService
public void removeGraph(String graphName)
removeGraph
in interface DataFlowService
public EPDataFlowInstance instantiate(String dataFlowName)
EPDataFlowRuntime
instantiate
in interface EPDataFlowRuntime
dataFlowName
- name of data flow to instantiatepublic EPDataFlowInstance instantiate(String dataFlowName, EPDataFlowInstantiationOptions options)
EPDataFlowRuntime
instantiate
in interface EPDataFlowRuntime
dataFlowName
- name of data flow to instantiateoptions
- populate options to control parameterization, instantiation etc.public void destroy()
destroy
in interface DataFlowService
public void saveConfiguration(String dataflowConfigName, String dataFlowName, EPDataFlowInstantiationOptions options)
EPDataFlowRuntime
saveConfiguration
in interface EPDataFlowRuntime
dataflowConfigName
- configuration name to save, must be uniquedataFlowName
- data flow nameoptions
- options objectpublic String[] getSavedConfigurations()
EPDataFlowRuntime
getSavedConfigurations
in interface EPDataFlowRuntime
public EPDataFlowSavedConfiguration getSavedConfiguration(String configurationName)
EPDataFlowRuntime
getSavedConfiguration
in interface EPDataFlowRuntime
configurationName
- name to findpublic EPDataFlowInstance instantiateSavedConfiguration(String configurationName) throws EPDataFlowInstantiationException
EPDataFlowRuntime
instantiateSavedConfiguration
in interface EPDataFlowRuntime
configurationName
- configuration nameEPDataFlowInstantiationException
- if the configuration name could not be foundpublic boolean removeSavedConfiguration(String configurationName)
EPDataFlowRuntime
removeSavedConfiguration
in interface EPDataFlowRuntime
configurationName
- to removepublic void saveInstance(String instanceName, EPDataFlowInstance instance) throws EPDataFlowAlreadyExistsException
EPDataFlowRuntime
saveInstance
in interface EPDataFlowRuntime
instanceName
- name to use to save, must be unique among currently saved instancesinstance
- savedEPDataFlowAlreadyExistsException
- if an instance by this name already existspublic String[] getSavedInstances()
EPDataFlowRuntime
getSavedInstances
in interface EPDataFlowRuntime
public EPDataFlowInstance getSavedInstance(String instanceName)
EPDataFlowRuntime
getSavedInstance
in interface EPDataFlowRuntime
instanceName
- to look forpublic boolean removeSavedInstance(String instanceName)
EPDataFlowRuntime
removeSavedInstance
in interface EPDataFlowRuntime
instanceName
- to be removed