Package com.highdeal.admin.hci
Class PingResult
java.lang.Object
com.highdeal.admin.hci.PingResult
- All Implemented Interfaces:
OperationResult,XMLMarshallable
This class represents the result of the
Ping operation;
It contains a status set to true if the distant instance of the SAP CC system is alive, false otherwise.
Implementation in Your Client Application
Use getStatus() to get the resulting status.
Operation Request
PingOp XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="pingResult">
<xs:complexType>
<xs:attribute name="status" type="xs:boolean"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
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.getName()Returns the name of the operation: "ping"Gets the operand reference for auditing purpose.booleanReturns the ping status of the ping requestvoidmarshal(XMLOutputter output) Writes the operation XML data to the given output.voidsetAttributes(XMLAttributes atts) Sets the operation attributes from theXMLAttributes.
-
Field Details
-
OPERATION_NAME
The XML name of this operation: "pingResult"- See Also:
-
STATUS
Mapping for the ping status: "status"- See Also:
-
-
Constructor Details
-
PingResult
public PingResult() -
PingResult
public PingResult(boolean status)
-
-
Method Details
-
getName
Returns the name of the operation: "ping"- Returns:
- "ping"
-
getStatus
public boolean getStatus()Returns the ping status of the ping request- Returns:
- The ping status:
trueif server is alive, elsefalse.
-
getOperandReference
Gets the operand reference for auditing purpose.- Specified by:
getOperandReferencein interfaceOperationResult- Returns:
null, as this operation is not audited.
-
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 given output.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXMLOutputterto write into
-