public class PingResult extends java.lang.Object implements OperationResult
Ping operation;
It contains a status set to true if the distant instance of the SAP CC system is alive, false otherwise.
Use getStatus() to get the resulting status.
PingOp 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>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPERATION_NAME
The XML name of this operation: "pingResult"
|
static java.lang.String |
STATUS
Mapping for the ping status: "status"
|
| Constructor and Description |
|---|
PingResult() |
PingResult(boolean status) |
| 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: "ping"
|
java.lang.String |
getOperandReference()
Gets the operand reference for auditing purpose.
|
boolean |
getStatus()
Returns the ping status of the ping request
|
void |
marshal(XMLOutputter output)
Writes the operation XML data to the given output.
|
void |
setAttributes(XMLAttributes atts)
Sets the operation attributes from the
XMLAttributes. |
public static final java.lang.String OPERATION_NAME
public static final java.lang.String STATUS
public java.lang.String getName()
public boolean getStatus()
true if server is alive,
else false.public java.lang.String getOperandReference()
getOperandReference in interface OperationResultnull, as this operation is not audited.public 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 into