public interface EPDeploymentService
Modifier and Type | Method and Description |
---|---|
void |
addDeploymentStateListener(DeploymentStateListener listener)
Add a deployment state listener
|
EPDeployment |
deploy(com.espertech.esper.common.client.EPCompiled compiled)
Deploy a compiled module and with the default options.
|
EPDeployment |
deploy(com.espertech.esper.common.client.EPCompiled compiled,
DeploymentOptions options)
Deploy a compiled module and with the provided options.
|
EPDeployment |
getDeployment(String deploymentId)
Returns the deployment.
|
String[] |
getDeployments()
Returns the deployment ids of all deployments.
|
Iterator<DeploymentStateListener> |
getDeploymentStateListeners()
Returns an iterator of deployment state listeners (read-only)
|
EPStatement |
getStatement(String deploymentId,
String statementName)
Returns the statement of a given deployment.
|
boolean |
isDeployed(String deploymentId)
Returns indicator whether a deployment for this deployment id exists
|
void |
removeAllDeploymentStateListeners()
Removes all deployment state listener
|
void |
removeDeploymentStateListener(DeploymentStateListener listener)
Remove a deployment state listener
|
void |
undeploy(String deploymentId)
Undeploy a deployment and with the default options.
|
void |
undeploy(String deploymentId,
UndeploymentOptions options)
Undeploy a deployment and with the provided options
|
void |
undeployAll()
Undeploy all deployments and with the default options.
|
void |
undeployAll(UndeploymentOptions options)
Undeploy all deployments and with the provided options.
|
EPDeployment deploy(com.espertech.esper.common.client.EPCompiled compiled) throws EPDeployException
compiled
- byte codeEPDeployException
- when the deployment failedEPDeployment deploy(com.espertech.esper.common.client.EPCompiled compiled, DeploymentOptions options) throws EPDeployException
compiled
- byte codeoptions
- deployment optionsEPDeployException
- when the deployment failedString[] getDeployments()
void undeploy(String deploymentId) throws EPUndeployException
deploymentId
- of the deployment to undeployEPUndeployException
- when the deployment does not exist or the undeployment failed and the deployment remains deployedvoid undeploy(String deploymentId, UndeploymentOptions options) throws EPUndeployException
deploymentId
- of the deployment to undeployoptions
- undeployment optionsEPUndeployException
- when the deployment does not exist or the undeployment failed and the deployment remains deployedvoid undeployAll() throws EPUndeployException
EPUndeployException
- when the undeployment failed, of the deployments may remain deployedvoid undeployAll(UndeploymentOptions options) throws EPUndeployException
options
- undeployment options or null if none providedEPUndeployException
- when the undeployment failed, of the deployments may remain deployedEPStatement getStatement(String deploymentId, String statementName)
A statement is uniquely identified by the deployment id that deployed the statement and by the statement name.
deploymentId
- deployment id of the statementstatementName
- statement nameEPDeployment getDeployment(String deploymentId)
A deployment is uniquely identified by its deployment id.
deploymentId
- the deployment id of the deploymentvoid addDeploymentStateListener(DeploymentStateListener listener)
listener
- to addvoid removeDeploymentStateListener(DeploymentStateListener listener)
listener
- to removeIterator<DeploymentStateListener> getDeploymentStateListeners()
void removeAllDeploymentStateListeners()
boolean isDeployed(String deploymentId)
deploymentId
- deployment idCopyright © 2005–2018. All rights reserved.