public class EPDataFlowServiceImpl extends Object implements EPDataFlowService
Modifier and Type | Field and Description |
---|---|
static String |
OP_PACKAGE_NAME |
Constructor and Description |
---|
EPDataFlowServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDataflow(String deploymentId,
DataflowDesc dataflow) |
EPDataFlowDescriptor |
getDataFlow(String deploymentId,
String dataflowName)
Returns a descriptor for the given data flow, or null if the data flow has not been declared.
|
DeploymentIdNamePair[] |
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 deploymentId,
String dataflowName)
Instantiate a data flow.
|
EPDataFlowInstance |
instantiate(String deploymentId,
String dataFlowName,
EPDataFlowInstantiationOptions options)
Instantiate a data flow, with options.
|
EPDataFlowInstance |
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.
|
public static final String OP_PACKAGE_NAME
public EPDataFlowDescriptor getDataFlow(String deploymentId, String dataflowName)
EPDataFlowService
getDataFlow
in interface EPDataFlowService
deploymentId
- deployment id of dataflow (deployment id of create-dataflow statement)dataflowName
- data flow namepublic DeploymentIdNamePair[] getDataFlows()
EPDataFlowService
getDataFlows
in interface EPDataFlowService
public EPDataFlowInstance instantiate(String deploymentId, String dataflowName) throws EPDataFlowInstantiationException
EPDataFlowService
instantiate
in interface EPDataFlowService
deploymentId
- deployment id of dataflow (deployment id of create-dataflow statement)dataflowName
- name of data flow to instantiateEPDataFlowInstantiationException
- when the instantiation failedpublic EPDataFlowInstance instantiate(String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options) throws EPDataFlowInstantiationException
EPDataFlowService
instantiate
in interface EPDataFlowService
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.EPDataFlowInstantiationException
- when the instantiation failedpublic void saveInstance(String instanceName, EPDataFlowInstance instance) throws EPDataFlowAlreadyExistsException
EPDataFlowService
saveInstance
in interface EPDataFlowService
instanceName
- name to use to save, must be unique among currently saved instancesinstance
- savedEPDataFlowAlreadyExistsException
- if an instance by this name already existspublic String[] getSavedInstances()
EPDataFlowService
getSavedInstances
in interface EPDataFlowService
public EPDataFlowInstance getSavedInstance(String instanceName)
EPDataFlowService
getSavedInstance
in interface EPDataFlowService
instanceName
- to look forpublic boolean removeSavedInstance(String instanceName)
EPDataFlowService
removeSavedInstance
in interface EPDataFlowService
instanceName
- to be removedpublic void addDataflow(String deploymentId, DataflowDesc dataflow)
public void removeDataflow(String deploymentId, DataflowDesc dataflow)
public void saveConfiguration(String dataflowConfigName, String deploymentId, String dataFlowName, EPDataFlowInstantiationOptions options)
EPDataFlowService
saveConfiguration
in interface EPDataFlowService
dataflowConfigName
- configuration name to save, must be uniquedeploymentId
- deployment iddataFlowName
- data flow nameoptions
- options objectpublic String[] getSavedConfigurations()
EPDataFlowService
getSavedConfigurations
in interface EPDataFlowService
public EPDataFlowSavedConfiguration getSavedConfiguration(String configurationName)
EPDataFlowService
getSavedConfiguration
in interface EPDataFlowService
configurationName
- name to findpublic EPDataFlowInstance instantiateSavedConfiguration(String configurationName) throws EPDataFlowInstantiationException
EPDataFlowService
instantiateSavedConfiguration
in interface EPDataFlowService
configurationName
- configuration nameEPDataFlowInstantiationException
- if the configuration name could not be foundpublic boolean removeSavedConfiguration(String configurationName)
EPDataFlowService
removeSavedConfiguration
in interface EPDataFlowService
configurationName
- to removeCopyright © 2005–2018. All rights reserved.