com.espertech.esper.core.deploy
Class DeploymentStateServiceImpl

java.lang.Object
  extended by com.espertech.esper.core.deploy.DeploymentStateServiceImpl
All Implemented Interfaces:
DeploymentStateService

public class DeploymentStateServiceImpl
extends java.lang.Object
implements DeploymentStateService

Implementation for storing deployment state.


Constructor Summary
DeploymentStateServiceImpl()
           
 
Method Summary
 void addUpdateDeployment(DeploymentInformation descriptor)
          Add or update the deployment information using the contained deployment id as a key.
 void destroy()
          Destroy the service.
 DeploymentInformation[] getAllDeployments()
          Returns deployment information for all deployments.
 DeploymentInformation getDeployment(java.lang.String deploymentId)
          Returns the deployment informaton for a given deployment id.
 java.lang.String[] getDeployments()
          Returns a list of deployment ids of deployments.
 java.lang.String nextDeploymentId()
          Allocates a new deployment id.
 void remove(java.lang.String deploymentId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentStateServiceImpl

public DeploymentStateServiceImpl()
Method Detail

nextDeploymentId

public java.lang.String nextDeploymentId()
Description copied from interface: DeploymentStateService
Allocates a new deployment id.

Specified by:
nextDeploymentId in interface DeploymentStateService
Returns:
deployment id

getAllDeployments

public DeploymentInformation[] getAllDeployments()
Description copied from interface: DeploymentStateService
Returns deployment information for all deployments.

Specified by:
getAllDeployments in interface DeploymentStateService
Returns:
array of deployment info

addUpdateDeployment

public void addUpdateDeployment(DeploymentInformation descriptor)
Description copied from interface: DeploymentStateService
Add or update the deployment information using the contained deployment id as a key.

Specified by:
addUpdateDeployment in interface DeploymentStateService
Parameters:
descriptor - to store

remove

public void remove(java.lang.String deploymentId)
Specified by:
remove in interface DeploymentStateService

getDeployments

public java.lang.String[] getDeployments()
Description copied from interface: DeploymentStateService
Returns a list of deployment ids of deployments.

Specified by:
getDeployments in interface DeploymentStateService
Returns:
deployment ids

getDeployment

public DeploymentInformation getDeployment(java.lang.String deploymentId)
Description copied from interface: DeploymentStateService
Returns the deployment informaton for a given deployment id.

Specified by:
getDeployment in interface DeploymentStateService
Parameters:
deploymentId - id
Returns:
deployment information

destroy

public void destroy()
Description copied from interface: DeploymentStateService
Destroy the service.

Specified by:
destroy in interface DeploymentStateService

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com