SAP CC 1.0
API 4.2 (Core)

com.highdeal.admin.hci
Class ServerManagementResult

java.lang.Object
  extended by com.highdeal.admin.hci.ServerManagementResult
All Implemented Interfaces:
OperationResult, XMLMarshallable
Direct Known Subclasses:
ServerShutdownResult

public abstract class ServerManagementResult
extends java.lang.Object
implements OperationResult

This abstract class conveys the result of the ServerManagementOp operation.
This result is one of IS_PROCESSING, UNKNOWN_OPERATION orUNKNOWN_SERVER
Please, use getReason() to get the resulting reason.

See Also:
ServerManagementOp

Field Summary
static int IS_PROCESSING
          Reason when the server is processing = 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 Summary
ServerManagementResult()
           
ServerManagementResult(java.lang.String serverName, int reason)
           
 
Method Summary
 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.
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_SERVER

public static final int UNKNOWN_SERVER
Reason concerning an unknown server = 2.

See Also:
Constant Field Values

UNKNOWN_OPERATION

public static final int UNKNOWN_OPERATION
Reason concerning an unknown operation = 1.

See Also:
Constant Field Values

IS_PROCESSING

public static final int IS_PROCESSING
Reason when the server is processing = 0.

See Also:
Constant Field Values

REASON

public static final java.lang.String REASON
Mapping for the reason : "reason".

See Also:
Constant Field Values
Constructor Detail

ServerManagementResult

public ServerManagementResult()

ServerManagementResult

public ServerManagementResult(java.lang.String serverName,
                              int reason)
Method Detail

getServerName

public java.lang.String getServerName()
Gets the name of the server.

Returns:
the server name

setServerName

public void setServerName(java.lang.String name)
Sets the name of the server.

Parameters:
name - the server name

getReason

public int getReason()
Gets the reason.

Returns:
the reason
See Also:
setReason(int), UNKNOWN_OPERATION, UNKNOWN_SERVER, IS_PROCESSING

setReason

public void setReason(int reason)
Sets the reason.

Parameters:
reason - the reason
See Also:
getReason(), UNKNOWN_OPERATION, UNKNOWN_SERVER, IS_PROCESSING

getName

public abstract java.lang.String getName()
Returns the name of this operation.

Returns:
the name of this operation.

getMessage

public java.lang.String getMessage()
Returns the message of this operation.

Returns:
the name of this operation.

setMessage

public void setMessage(java.lang.String message)
Sets the message of the operation.

Parameters:
message - the operation message.

getOperandReference

public abstract java.lang.String getOperandReference()
Returns the operand reference for audit.

Specified by:
getOperandReference in interface OperationResult
Returns:
the operand reference for audit.

setAttributes

public void setAttributes(XMLAttributes atts)
Sets the operation attributes from the XMLAttributes.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - the XMLAttributes containing the data

addCharacterData

public void addCharacterData(java.lang.String cData)
Adds string data to this operation.

This data is ignored for this operation.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
cData - the character data to add to the operation

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Adds a child tag to this operation.

This tag is ignored for this operation.

Specified by:
addChild in interface XMLMarshallable
Parameters:
tagName - the name of the tag
child - the XMLMarshallable child to add

marshal

public void marshal(XMLOutputter output)
Writes the operation XML data to the given output.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - the XMLOutputter to write into

SAP CC 1.0
API 4.2 (Core)


API Reference - July 2009

SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2

(c) Copyright 2009 SAP AG. All rights reserved.