public class EPDeploymentServiceImpl extends Object implements EPDeploymentServiceSPI
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.
|
void |
destroy() |
EPDeployment |
getDeployment(String deploymentId)
Returns the deployment.
|
Map<String,DeploymentInternal> |
getDeploymentMap() |
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.
|
public EPDeployment deploy(com.espertech.esper.common.client.EPCompiled compiled) throws EPDeployException
EPDeploymentService
deploy
in interface EPDeploymentService
compiled
- byte codeEPDeployException
- when the deployment failedpublic EPDeployment deploy(com.espertech.esper.common.client.EPCompiled compiled, DeploymentOptions options) throws EPDeployException
EPDeploymentService
deploy
in interface EPDeploymentService
compiled
- byte codeoptions
- deployment optionsEPDeployException
- when the deployment failedpublic EPStatement getStatement(String deploymentId, String statementName)
EPDeploymentService
A statement is uniquely identified by the deployment id that deployed the statement and by the statement name.
getStatement
in interface EPDeploymentService
deploymentId
- deployment id of the statementstatementName
- statement namepublic String[] getDeployments()
EPDeploymentService
getDeployments
in interface EPDeploymentService
public Map<String,DeploymentInternal> getDeploymentMap()
getDeploymentMap
in interface EPDeploymentServiceSPI
public EPDeployment getDeployment(String deploymentId)
EPDeploymentService
A deployment is uniquely identified by its deployment id.
getDeployment
in interface EPDeploymentService
deploymentId
- the deployment id of the deploymentpublic boolean isDeployed(String deploymentId)
EPDeploymentService
isDeployed
in interface EPDeploymentService
deploymentId
- deployment idpublic void undeployAll() throws EPUndeployException
EPDeploymentService
undeployAll
in interface EPDeploymentService
EPUndeployException
- when the undeployment failed, of the deployments may remain deployedpublic void undeployAll(UndeploymentOptions options) throws EPUndeployException
EPDeploymentService
undeployAll
in interface EPDeploymentService
options
- undeployment options or null if none providedEPUndeployException
- when the undeployment failed, of the deployments may remain deployedpublic void undeploy(String deploymentId) throws EPUndeployException
EPDeploymentService
undeploy
in interface EPDeploymentService
deploymentId
- of the deployment to undeployEPUndeployException
- when the deployment does not exist or the undeployment failed and the deployment remains deployedpublic void undeploy(String deploymentId, UndeploymentOptions options) throws EPUndeployException
EPDeploymentService
undeploy
in interface EPDeploymentService
deploymentId
- of the deployment to undeployoptions
- undeployment optionsEPUndeployException
- when the deployment does not exist or the undeployment failed and the deployment remains deployedpublic void destroy()
destroy
in interface EPDeploymentServiceSPI
public void addDeploymentStateListener(DeploymentStateListener listener)
EPDeploymentService
addDeploymentStateListener
in interface EPDeploymentService
listener
- to addpublic void removeDeploymentStateListener(DeploymentStateListener listener)
EPDeploymentService
removeDeploymentStateListener
in interface EPDeploymentService
listener
- to removepublic Iterator<DeploymentStateListener> getDeploymentStateListeners()
EPDeploymentService
getDeploymentStateListeners
in interface EPDeploymentService
public void removeAllDeploymentStateListeners()
EPDeploymentService
removeAllDeploymentStateListeners
in interface EPDeploymentService
Copyright © 2005–2018. All rights reserved.