|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.dataflow.core.DataFlowServiceImpl
public class DataFlowServiceImpl
Constructor Summary | |
---|---|
DataFlowServiceImpl(EPServiceProvider epService,
DataFlowConfigurationStateService configurationState)
|
Method Summary | |
---|---|
void |
addStartGraph(CreateDataFlowDesc desc,
StatementContext statementContext,
EPServicesContext servicesContext,
AgentInstanceContext agentInstanceContext,
boolean newStatement)
|
void |
destroy()
|
EPDataFlowDescriptor |
getDataFlow(java.lang.String dataFlowName)
Returns a descriptor for the given data flow, or null if the data flow has not been declared. |
java.lang.String[] |
getDataFlows()
Returns the names of all declared data flows. |
EPDataFlowSavedConfiguration |
getSavedConfiguration(java.lang.String configurationName)
Returns a saved dataflow configuration or null if it is not found. |
java.lang.String[] |
getSavedConfigurations()
Returns the names of a saved data flow configurations. |
EPDataFlowInstance |
getSavedInstance(java.lang.String instanceName)
Returns a specific saved data flow instance, or null if it has not been found |
java.lang.String[] |
getSavedInstances()
Returns the instance names of a saved data flow instances. |
EPDataFlowInstance |
instantiate(java.lang.String dataFlowName)
Instantiate a data flow. |
EPDataFlowInstance |
instantiate(java.lang.String dataFlowName,
EPDataFlowInstantiationOptions options)
Instantiate a data flow, with options. |
EPDataFlowInstance |
instantiateSavedConfiguration(java.lang.String configurationName)
Instantiate a data flow from a saved configuration. |
void |
removeGraph(java.lang.String graphName)
|
boolean |
removeSavedConfiguration(java.lang.String configurationName)
Remove a previously saved data flow configuration. |
boolean |
removeSavedInstance(java.lang.String instanceName)
Remove an instance previously saved. |
void |
saveConfiguration(java.lang.String dataflowConfigName,
java.lang.String dataFlowName,
EPDataFlowInstantiationOptions options)
Save an existing data flow configuration (data flow name and its options) for later retrieval. |
void |
saveInstance(java.lang.String instanceName,
EPDataFlowInstance instance)
Save an existing instance with the runtime, for later retrieval. |
void |
stopGraph(java.lang.String graphName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataFlowServiceImpl(EPServiceProvider epService, DataFlowConfigurationStateService configurationState)
Method Detail |
---|
public EPDataFlowDescriptor getDataFlow(java.lang.String dataFlowName)
EPDataFlowRuntime
getDataFlow
in interface EPDataFlowRuntime
dataFlowName
- data flow name
public java.lang.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(java.lang.String graphName)
stopGraph
in interface DataFlowService
public void removeGraph(java.lang.String graphName)
removeGraph
in interface DataFlowService
public EPDataFlowInstance instantiate(java.lang.String dataFlowName)
EPDataFlowRuntime
instantiate
in interface EPDataFlowRuntime
dataFlowName
- name of data flow to instantiate
public EPDataFlowInstance instantiate(java.lang.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(java.lang.String dataflowConfigName, java.lang.String dataFlowName, EPDataFlowInstantiationOptions options)
EPDataFlowRuntime
saveConfiguration
in interface EPDataFlowRuntime
dataflowConfigName
- configuration name to save, must be uniquedataFlowName
- data flow nameoptions
- options objectpublic java.lang.String[] getSavedConfigurations()
EPDataFlowRuntime
getSavedConfigurations
in interface EPDataFlowRuntime
public EPDataFlowSavedConfiguration getSavedConfiguration(java.lang.String configurationName)
EPDataFlowRuntime
getSavedConfiguration
in interface EPDataFlowRuntime
configurationName
- name to find
public EPDataFlowInstance instantiateSavedConfiguration(java.lang.String configurationName) throws EPDataFlowInstantiationException
EPDataFlowRuntime
instantiateSavedConfiguration
in interface EPDataFlowRuntime
configurationName
- configuration name
EPDataFlowInstantiationException
- if the configuration name could not be foundpublic boolean removeSavedConfiguration(java.lang.String configurationName)
EPDataFlowRuntime
removeSavedConfiguration
in interface EPDataFlowRuntime
configurationName
- to remove
public void saveInstance(java.lang.String instanceName, EPDataFlowInstance instance) throws EPDataFlowAlreadyExistsException
EPDataFlowRuntime
saveInstance
in interface EPDataFlowRuntime
instanceName
- name to use to save, must be unique among currently saved instancesinstance
- saved
EPDataFlowAlreadyExistsException
- if an instance by this name already existspublic java.lang.String[] getSavedInstances()
EPDataFlowRuntime
getSavedInstances
in interface EPDataFlowRuntime
public EPDataFlowInstance getSavedInstance(java.lang.String instanceName)
EPDataFlowRuntime
getSavedInstance
in interface EPDataFlowRuntime
instanceName
- to look for
public boolean removeSavedInstance(java.lang.String instanceName)
EPDataFlowRuntime
removeSavedInstance
in interface EPDataFlowRuntime
instanceName
- to be removed
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |