public abstract class ServerManagementResult extends java.lang.Object implements OperationResult
abstract Java class represents the result of the Server Management operation;
Consider the known Java subclasses that extend this Java class: ServerShutdownResult.
The result is one of the following:
Use the getReason() method to get the resulting reason.
ServerManagementOp| Modifier and Type | Field and Description |
|---|---|
static int |
IS_PROCESSING
Reason when the server is processing the operation request: 0
|
static java.lang.String |
REASON
Mapping for the reason: "reason"
|
static int |
UNKNOWN_OPERATION
Reason concerning an unknown operation: 1
|
static int |
UNKNOWN_SERVER
Reason concerning an unknown server: 2
|
| Constructor and Description |
|---|
ServerManagementResult() |
ServerManagementResult(java.lang.String serverName,
int reason) |
| 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 |
getMessage()
Returns the message of this operation.
|
abstract java.lang.String |
getName()
Returns the name of this operation.
|
abstract java.lang.String |
getOperandReference()
Returns the operand reference for audit.
|
int |
getReason()
Gets the reason.
|
java.lang.String |
getServerName()
Gets the name of the server system.
|
void |
marshal(XMLOutputter output)
Writes the operation XML data to the specified output.
|
void |
setAttributes(XMLAttributes atts)
Sets the operation attributes from the
XMLAttributes. |
void |
setMessage(java.lang.String message)
Sets the message of the operation.
|
void |
setReason(int reason)
Sets the reason.
|
void |
setServerName(java.lang.String name)
Sets the name of the server system.
|
public static final int UNKNOWN_SERVER
public static final int UNKNOWN_OPERATION
public static final int IS_PROCESSING
public static final java.lang.String REASON
public ServerManagementResult()
public ServerManagementResult(java.lang.String serverName,
int reason)
public java.lang.String getServerName()
public void setServerName(java.lang.String name)
name - The server namepublic int getReason()
setReason(int),
UNKNOWN_OPERATION,
UNKNOWN_SERVER,
IS_PROCESSINGpublic void setReason(int reason)
reason - The reasongetReason(),
UNKNOWN_OPERATION,
UNKNOWN_SERVER,
IS_PROCESSINGpublic abstract java.lang.String getName()
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - The operation messagepublic abstract java.lang.String getOperandReference()
getOperandReference in interface OperationResultpublic 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)
This tag is ignored for this operation.
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 to