|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.deployment.client.DFDeploymentStatus
public class DFDeploymentStatus
This class encapsulates all status related to backend deployment Backend deployement can consist of several stages. Those stages are organized in a parent/children relationship where the children are the sub stages of a parent stage. For instance, deployment stage consist of j2eec stage and application loading stage. For a stage to be sucessful, its status and all its children's status must be warning or success
| Nested Class Summary | |
|---|---|
static class |
DFDeploymentStatus.Status
Possible status for a stage or overall deployment status |
| Field Summary | |
|---|---|
static String |
CONTEXT_ROOT
|
static String |
COUNT
|
static String |
KEY_SEPARATOR
|
static String |
MODULE_ID
|
static String |
MODULE_TYPE
|
static String |
SUBMODULE_COUNT
|
static String |
WSDL_DIRECTORY
|
static String |
WSDL_FILE_ENTRIES
|
static String |
WSDL_LOCATION
|
static String |
WSDL_PUBLISH_URL
|
| Constructor Summary | |
|---|---|
DFDeploymentStatus()
Creates a new uninitialized DFDeploymentStatus instance |
|
DFDeploymentStatus(DFDeploymentStatus parent)
Creates a new uninitialized DFDeploymentStatus instance as a sub stage deployment status of the passed DFDeploymentStatus |
|
| Method Summary | |
|---|---|
void |
addProperty(String propertyName,
String propertyValue)
Add a new property to this status object |
void |
addSubStage(DFDeploymentStatus subStage)
Add a sub stage to this deployment status |
Map |
getAdditionalStatus()
|
String |
getAllStageMessages()
|
static void |
getAllStageMessages(DFDeploymentStatus status,
StringBuilder sb)
|
static Iterator |
getAllStageStatusForLevel(DFDeploymentStatus status,
DFDeploymentStatus.Status level)
Get all stages with this deployment status level |
DFDeploymentStatus |
getMainStatus()
|
DFDeploymentStatus |
getParent()
|
String |
getProperty(String propertyName)
|
String |
getStageDescription()
|
Throwable |
getStageException()
|
String |
getStageIdentifier()
|
DFDeploymentStatus.Status |
getStageStatus()
|
DFDeploymentStatus |
getStageStatusForLevel(DFDeploymentStatus.Status level)
|
String |
getStageStatusMessage()
|
DFDeploymentStatus.Status |
getStatus()
|
Iterator |
getSubStages()
Get the list of sub stages for this deployment status |
static void |
parseDeploymentStatus(DFDeploymentStatus status,
PrintWriter pw)
Traverse through the DeploymenStatus hierarchy and write failure/warning msgs to the print writer |
void |
setAdditionalStatus(Map additionalStatus)
Set the additional status for this status |
void |
setParent(DFDeploymentStatus parent)
Setthe parent status for this status |
void |
setStageDescription(String string)
|
void |
setStageException(Throwable throwable)
When the stage throws an exception, it should store it here in the assiciated deployment status |
void |
setStageStatus(DFDeploymentStatus.Status status)
Set the status for this stage |
void |
setStageStatusMessage(String string)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTEXT_ROOT
public static final String KEY_SEPARATOR
public static final String MODULE_ID
public static final String MODULE_TYPE
public static final String SUBMODULE_COUNT
public static final String WSDL_PUBLISH_URL
public static final String WSDL_LOCATION
public static final String WSDL_DIRECTORY
public static final String WSDL_FILE_ENTRIES
public static final String COUNT
| Constructor Detail |
|---|
public DFDeploymentStatus()
public DFDeploymentStatus(DFDeploymentStatus parent)
parent - DFDeploymentStatus| Method Detail |
|---|
public DFDeploymentStatus.Status getStatus()
public void addSubStage(DFDeploymentStatus subStage)
the - sub stage deployment statuspublic Iterator getSubStages()
public void setStageStatus(DFDeploymentStatus.Status status)
the - status as defined in the constantspublic DFDeploymentStatus.Status getStageStatus()
public Throwable getStageException()
public String getStageIdentifier()
public String getStageDescription()
public String getStageStatusMessage()
public void setStageException(Throwable throwable)
throwable - public void setStageDescription(String string)
string - for a meaningful i18ned stage descriptionpublic void setStageStatusMessage(String string)
string - for a meaningful i18ned reason for stage
warning or failurepublic DFDeploymentStatus getStageStatusForLevel(DFDeploymentStatus.Status level)
public DFDeploymentStatus getParent()
public void setParent(DFDeploymentStatus parent)
public DFDeploymentStatus getMainStatus()
public void addProperty(String propertyName,
String propertyValue)
public String getProperty(String propertyName)
public Map getAdditionalStatus()
public String getAllStageMessages()
public static void getAllStageMessages(DFDeploymentStatus status,
StringBuilder sb)
public void setAdditionalStatus(Map additionalStatus)
public String toString()
toString in class Object
public static Iterator getAllStageStatusForLevel(DFDeploymentStatus status,
DFDeploymentStatus.Status level)
parent - status it needs to iterate throughstatus - level it's looking for
public static void parseDeploymentStatus(DFDeploymentStatus status,
PrintWriter pw)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||