Package com.highdeal.admin.hci
Class GetLogTracesResult
java.lang.Object
com.highdeal.admin.hci.GetLogTracesResult
- All Implemented Interfaces:
OperationResult,XMLMarshallable
This class represents the result of the
Get Logs and Traces operation;
It contains a Vector of the latest
entries of the logs and traces of the responding instance of the SAP CC system.
Implementation in Your Client Application
Use getLogTraces() to get the resulting vector.
Operation Request
GetLogTracesOp XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="getLogTracesResult">
<xs:complexType>
<xs:sequence>
<xs:element name="logs" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="trace" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="enabled" type="xs:boolean"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInitiliazes a new instance ofGetLogTracesResult.GetLogTracesResult(String[] t) Initiliazes a new instance ofGetLogTracesResultwith an array of log traces. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Fetches the logs and traces as a vector of strings (each line of the file becomes a string).getName()Returns the name of the operation, that is "getLogTracesResult".Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.booleanReturnstrueif logs are enabled on the server,falseotherwise.voidmarshal(XMLOutputter output) Writes the operation XML data to the given output.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.
-
Field Details
-
OPERATION_NAME
The name of this operation: "getLogTracesResult"- See Also:
-
LOGS_NAME
The name of the tag for internal log entry in the main getLogTracesResult XML element- See Also:
-
-
Constructor Details
-
GetLogTracesResult
public GetLogTracesResult()Initiliazes a new instance ofGetLogTracesResult. -
GetLogTracesResult
Initiliazes a new instance ofGetLogTracesResultwith an array of log traces.- Parameters:
t- An array of logs and traces
-
-
Method Details
-
getName
Returns the name of the operation, that is "getLogTracesResult".- Returns:
OPERATION_NAME
-
getLogTraces
Fetches the logs and traces as a vector of strings (each line of the file becomes a string).- Returns:
- A vector of string, one for each log or trace
-
isEnabled
public boolean isEnabled()Returnstrueif logs are enabled on the server,falseotherwise.- Returns:
trueif logs are enable on the server,falseotherwise
-
getOperandReference
Description copied from interface:OperationResultGets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.- Specified by:
getOperandReferencein interfaceOperationResult- Returns:
- The operand reference of the operation result
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Writes the operation XML data to the given output.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXMLOutputterto write into
-