Package com.highdeal.admin.hci
Class ServerManagementResult
java.lang.Object
com.highdeal.admin.hci.ServerManagementResult
- All Implemented Interfaces:
OperationResult,XMLMarshallable
- Direct Known Subclasses:
ServerShutdownResult
This
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:
<h3 id="seeIMPL3 class="j">Implementation in Your Client Application
Use the getReason() method to get the resulting reason.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReason when the server is processing the operation request: 0static final StringMapping for the reason: "reason"static final intReason concerning an unknown operation: 1static final intReason concerning an unknown server: 2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds string data to this operation.voidaddChild(String tagName, XMLMarshallable child) Adds a child tag to this operation.Returns the message of this operation.abstract StringgetName()Returns the name of this operation.abstract StringReturns the operand reference for audit.intGets the reason.Gets the name of the server system.voidmarshal(XMLOutputter output) Writes the operation XML data to the specified output.voidsetAttributes(XMLAttributes atts) Sets the operation attributes from theXMLAttributes.voidsetMessage(String message) Sets the message of the operation.voidsetReason(int reason) Sets the reason.voidsetServerName(String name) Sets the name of the server system.
-
Field Details
-
UNKNOWN_SERVER
public static final int UNKNOWN_SERVERReason concerning an unknown server: 2- See Also:
-
UNKNOWN_OPERATION
public static final int UNKNOWN_OPERATIONReason concerning an unknown operation: 1- See Also:
-
IS_PROCESSING
public static final int IS_PROCESSINGReason when the server is processing the operation request: 0- See Also:
-
REASON
Mapping for the reason: "reason"- See Also:
-
-
Constructor Details
-
ServerManagementResult
public ServerManagementResult() -
ServerManagementResult
-
-
Method Details
-
getServerName
Gets the name of the server system.- Returns:
- The server name
-
setServerName
Sets the name of the server system.- Parameters:
name- The server name
-
getReason
public int getReason()Gets the reason.- Returns:
- The reason
- See Also:
-
setReason
public void setReason(int reason) Sets the reason.- Parameters:
reason- The reason- See Also:
-
getName
Returns the name of this operation.- Returns:
- The name of this operation
-
getMessage
Returns the message of this operation.- Returns:
- The message of this operation
-
setMessage
Sets the message of the operation.- Parameters:
message- The operation message
-
getOperandReference
Returns the operand reference for audit.- Specified by:
getOperandReferencein interfaceOperationResult- Returns:
- The operand reference for audit
-
setAttributes
Sets the operation attributes from theXMLAttributes.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXMLAttributescontaining the data
-
addCharacterData
Adds string data to this operation.This data is ignored for this operation.
- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to add to the operation
-
addChild
Adds a child tag to this operation.This tag is ignored for this operation.
- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of the tagchild- TheXMLMarshallablechild to add
-
marshal
Writes the operation XML data to the specified output.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXMLOutputterto write to
-