public class DFDeploymentStatus extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DFDeploymentStatus.Status
Possible status for a stage or overall deployment status
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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
public DFDeploymentStatus()
public DFDeploymentStatus(DFDeploymentStatus parent)
parent - DFDeploymentStatuspublic 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 Map getAdditionalStatus()
public String getAllStageMessages()
public static void getAllStageMessages(DFDeploymentStatus status, StringBuilder sb)
public void setAdditionalStatus(Map additionalStatus)
public String toString()
public static Iterator getAllStageStatusForLevel(DFDeploymentStatus status, DFDeploymentStatus.Status level)
parent - status it needs to iterate throughstatus - level it's looking forpublic static void parseDeploymentStatus(DFDeploymentStatus status, PrintWriter pw)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.