public class GetStatusResult extends java.lang.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 java.lang.String |
OPERATION_ID
Mapping for the operation ID: "opID"
|
static java.lang.String |
OPERATION_NAME
The name of this operation: "getStatusResult"
|
| Constructor and Description |
|---|
GetStatusResult() |
GetStatusResult(StatusModel model) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds string data to this operation.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child tag to this operation.
|
java.lang.String |
getName()
Returns the name of the operation: "getStatus"
|
java.lang.String |
getOperandReference()
Returns the operand reference for audit.
|
java.lang.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(java.lang.String id)
Sets the operation ID.
|
void |
setStatus(StatusModel model)
Sets the server status.
|
public static final java.lang.String OPERATION_NAME
public static final java.lang.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 java.lang.String getOperationID()
null if the operation
has no IDpublic void setOperationID(java.lang.String id)
id - The operation identifierpublic java.lang.String getName()
public java.lang.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(java.lang.String cData)
This data is ignored for this operation.
addCharacterData in interface XMLMarshallablecData - The character data to add to the operationpublic void addChild(java.lang.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