public class DeploymentStateServiceImpl extends Object implements DeploymentStateService
Constructor and Description |
---|
DeploymentStateServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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(String deploymentId)
Returns the deployment informaton for a given deployment id.
|
String[] |
getDeployments()
Returns a list of deployment ids of deployments.
|
String |
nextDeploymentId()
Allocates a new deployment id.
|
void |
remove(String deploymentId)
Remove deployment
|
public String nextDeploymentId()
DeploymentStateService
nextDeploymentId
in interface DeploymentStateService
public DeploymentInformation[] getAllDeployments()
DeploymentStateService
getAllDeployments
in interface DeploymentStateService
public void addUpdateDeployment(DeploymentInformation descriptor)
DeploymentStateService
addUpdateDeployment
in interface DeploymentStateService
descriptor
- to storepublic void remove(String deploymentId)
DeploymentStateService
remove
in interface DeploymentStateService
deploymentId
- to removepublic String[] getDeployments()
DeploymentStateService
getDeployments
in interface DeploymentStateService
public DeploymentInformation getDeployment(String deploymentId)
DeploymentStateService
getDeployment
in interface DeploymentStateService
deploymentId
- idpublic void destroy()
DeploymentStateService
destroy
in interface DeploymentStateService