public class GetStatusResult extends Object implements OperationResult
Get Status operation;
It contains a status for the specified server instance.
Use getStatus() to get the resulting status.
GetStatusOp The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="getStatusResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="status" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
OPERATION_ID
Mapping for the operation ID: "opID"
|
static String |
OPERATION_NAME
The name of this operation: "getStatusResult"
|
| Constructor and Description |
|---|
GetStatusResult() |
GetStatusResult(StatusModel model) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds string data to this operation.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child tag to this operation.
|
String |
getName()
Returns the name of the operation: "getStatus"
|
String |
getOperandReference()
Returns the operand reference for audit.
|
String |
getOperationID()
Gets the operation ID.
|
StatusModel |
getStatus()
Gets the server status.
|
void |
marshal(XMLOutputter output)
Writes the operation XML data to the given output.
|
void |
setAttributes(XMLAttributes atts)
Sets the operation attributes from the
XMLAttributes. |
void |
setOperationID(String id)
Sets the operation ID.
|
void |
setStatus(StatusModel model)
Sets the server status.
|
public static final String OPERATION_NAME
public static final String OPERATION_ID
public GetStatusResult()
public GetStatusResult(StatusModel model)
public void setStatus(StatusModel model)
model - The status of the server to be setpublic StatusModel getStatus()
public String getOperationID()
null if the operation
has no IDpublic void setOperationID(String id)
id - The operation identifierpublic String getName()
public String getOperandReference()
getOperandReference in interface OperationResultnull, as this result is not auditedpublic void setAttributes(XMLAttributes atts)
XMLAttributes.setAttributes in interface XMLMarshallableatts - The XMLAttributes containing the datapublic void addCharacterData(String cData)
This data is ignored for this operation.
addCharacterData in interface XMLMarshallablecData - The character data to add to the operationpublic void addChild(String tagName, XMLMarshallable child)
For this operation, the child must be a
.StatusModel
addChild in interface XMLMarshallabletagName - The name of the tagchild - The XMLMarshallable child to addpublic void marshal(XMLOutputter output)
marshal in interface XMLMarshallableoutput - The XMLOutputter to write into