|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.base.MapCapableBase com.sun.appserv.management.base.OperationStatusBase com.sun.appserv.management.deploy.DeploymentStatusImpl
public final class DeploymentStatusImpl
Not for public use. Use DeploymentSupport
to
create a DeploymentStatus from a Map.
Field Summary |
---|
Fields inherited from interface com.sun.appserv.management.deploy.DeploymentStatus |
---|
ADDITIONAL_STATUS_KEY, DEPLOYMENT_STATUS_CLASS_NAME, MODULE_ID_KEY, PARENT_KEY, STAGE_DESCRIPTION_KEY, STAGE_STATUS_KEY, STAGE_STATUS_MESSAGE_KEY, STAGE_THROWABLE_KEY, STATUS_CODE_NOT_INITIALIZED, SUB_STAGES_KEY |
Fields inherited from interface com.sun.appserv.management.base.OperationStatus |
---|
STATUS_CODE_FAILURE, STATUS_CODE_KEY, STATUS_CODE_SUCCESS, STATUS_CODE_WARNING, THROWABLE_KEY |
Fields inherited from interface com.sun.appserv.management.base.MapCapable |
---|
MAP_CAPABLE_CLASS_NAME_KEY |
Constructor Summary | |
---|---|
DeploymentStatusImpl(DeploymentStatus src)
|
|
DeploymentStatusImpl(int stageStatus,
String stageStatusMessage,
String stageDescription,
Map<String,T> optional)
Create a new instance. |
|
DeploymentStatusImpl(Map<String,T> m)
Create a new instance. |
Method Summary | |
---|---|
void |
addSubStage(DeploymentStatus status)
|
protected Serializable |
asMapHook(String key,
Serializable value)
|
boolean |
equals(Object rhs)
|
Map<String,Serializable> |
getAdditionalStatus()
|
DeploymentStatus |
getParent()
|
String |
getStageDescription()
|
int |
getStageStatus()
Legal status codes include: OperationStatus#STATUS_CODE_SUCCESS OperationStatus#STATUS_CODE_FAILURE OperationStatus#STATUS_CODE_WARNING #STATUS_CODE_NOT_INITIALIZED |
String |
getStageStatusMessage()
|
Throwable |
getStageThrowable()
|
Iterator<Map<String,Serializable>> |
getSubStages()
Get the sub stages for this deployment status, each of which has been converted into a Map |
List<DeploymentStatus> |
getSubStagesList()
Get the sub stages for this deployment status. |
void |
setAdditionalStatus(Map<String,Serializable> additionalStatus)
|
void |
setParent(DeploymentStatus parent)
set the parent status for this status if any |
void |
setStageDescription(String description)
|
void |
setStageStatus(int status)
|
void |
setStageStatusMessage(String message)
|
void |
setStageThrowable(Throwable t)
|
protected boolean |
validate()
Return true if internal state is valid, false otherwise. |
Methods inherited from class com.sun.appserv.management.base.OperationStatusBase |
---|
getStatusCode, getThrowable, setStatusCode, setThrowable |
Methods inherited from class com.sun.appserv.management.base.MapCapableBase |
---|
asMap, checkInJavaUtil, checkLegalObject, checkLegalObject, checkValidType, getboolean, getBoolean, getByte, getField, getFile, getInteger, getMap, getMapClassName, getObject, getString, getStringArray, hashCode, illegalObject, makeImmutable, putAll, putField, putFieldHook, toString, validateNullOrOfType, validateThrow |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sun.appserv.management.base.OperationStatus |
---|
getStatusCode, getThrowable |
Methods inherited from interface com.sun.appserv.management.base.MapCapable |
---|
asMap, getMapClassName |
Constructor Detail |
---|
public DeploymentStatusImpl(DeploymentStatus src)
public DeploymentStatusImpl(Map<String,T> m)
MapCapable
.MAP_CAPABLE_TYPE_KEY with
value DEPLOYMENT_STATUS_CLASS_NAME
m
- a Map representing a DeploymentStatuspublic DeploymentStatusImpl(int stageStatus, String stageStatusMessage, String stageDescription, Map<String,T> optional)
stageStatus
- stageStatusMessage
- stageDescription
- Method Detail |
---|
protected Serializable asMapHook(String key, Serializable value)
asMapHook
in class MapCapableBase
protected boolean validate()
MapCapableBase
validate
in class OperationStatusBase
public String getStageDescription()
getStageDescription
in interface DeploymentStatus
public void setStageDescription(String description)
public String getStageStatusMessage()
getStageStatusMessage
in interface DeploymentStatus
public void setStageStatusMessage(String message)
public int getStageStatus()
DeploymentStatus
getStageStatus
in interface DeploymentStatus
public void setStageStatus(int status)
public void addSubStage(DeploymentStatus status)
public Iterator<Map<String,Serializable>> getSubStages()
DeploymentStatus
DeploymentStatus.getSubStagesList()
instead.
getSubStages
in interface DeploymentStatus
public List<DeploymentStatus> getSubStagesList()
DeploymentStatus
getSubStagesList
in interface DeploymentStatus
public DeploymentStatus getParent()
getParent
in interface DeploymentStatus
public void setParent(DeploymentStatus parent)
DeploymentStatus
setParent
in interface DeploymentStatus
parent
- DeploymentStatuspublic Throwable getStageThrowable()
getStageThrowable
in interface DeploymentStatus
public void setStageThrowable(Throwable t)
public Map<String,Serializable> getAdditionalStatus()
getAdditionalStatus
in interface DeploymentStatus
public void setAdditionalStatus(Map<String,Serializable> additionalStatus)
public boolean equals(Object rhs)
equals
in class MapCapableBase
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.