public class DeploymentUnitStatus
extends java.lang.Object
DeploymentUnit
.
For deployment units that consist of multiple modules, this state
is calculated based on the aggregate of all modules for the deployment
unit.
The deployment status tracked by this class can be converted to a
Map
which can be used to serialize this data into ZooKeeper.DeploymentUnitStateCalculator
Modifier and Type | Class and Description |
---|---|
static class |
DeploymentUnitStatus.State
Deployment unit states.
|
Constructor and Description |
---|
DeploymentUnitStatus(DeploymentUnitStatus.State state)
Construct a
DeploymentUnitStatus . |
DeploymentUnitStatus(DeploymentUnitStatus.State state,
java.lang.String errorDescription)
Construct a
DeploymentUnitStatus with an error description. |
DeploymentUnitStatus(java.util.Map<java.lang.String,java.lang.String> mapStatus)
Construct a
DeploymentUnitStatus using the entries in
the provided map. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorDescription()
Return the error description for the deployment unit; may be null.
|
DeploymentUnitStatus.State |
getState()
Return the state of the deployment unit.
|
java.util.Map<java.lang.String,java.lang.String> |
toMap()
Return a map containing the deployment unit status information.
|
java.lang.String |
toString() |
public DeploymentUnitStatus(DeploymentUnitStatus.State state)
DeploymentUnitStatus
.state
- the state for this deployment unitpublic DeploymentUnitStatus(DeploymentUnitStatus.State state, java.lang.String errorDescription)
DeploymentUnitStatus
with an error description.state
- the state for this deployment uniterrorDescription
- error description for this statepublic DeploymentUnitStatus(java.util.Map<java.lang.String,java.lang.String> mapStatus)
DeploymentUnitStatus
using the entries in
the provided map.mapStatus
- map containing deployment unit status entriesSTATE_KEY
,
ERROR_DESCRIPTION
public DeploymentUnitStatus.State getState()
public java.lang.String getErrorDescription()
public java.util.Map<java.lang.String,java.lang.String> toMap()
STATE_KEY
,
ERROR_DESCRIPTION
public java.lang.String toString()
toString
in class java.lang.Object