Package com.highdeal.admin.hci
Class FetchClientStatisticsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.admin.hci.FetchClientStatisticsException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when an error occurs while retrieving the statistics of a client connected to the SAP CC Core Server system (see
the
Fetch Client Statistics operation).- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="fetchClientStatisticsException">
<xs:complexType>
<xs:attribute name="message" type="xs:string" />
<xs:attribute name="reason" type="FetchClientStatisticsExceptionReasonType" use="required"/>
<xs:attribute name="host" type="xs:string" />
<xs:attribute name="port" type="xs:integer" />
</xs:complexType>
</xs:element>
<xs:simpleType name="FetchClientStatisticsExceptionReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidHostname"/>
<xs:enumeration value="invalidPort"/>
<xs:enumeration value="unknownClient"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int0: Constant when the hostname specified in theFetchClientStatisticsOpoperation is invalid.static final intThe port specified in theFetchClientStatisticsOpoperation is invalid.static final StringThe name of the exception: "fetchClientStatisticsException".static final intThe reason of the exception is unknown.static final intThe hostname and port specified in theFetchClientStatisticsOpoperation do not correspond to a connected client. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a fetch client statistics exception.FetchClientStatisticsException(int reason, String message, String host, int port) Creates a fetch client statistics exception with a reason and a message. -
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.getHost()Gets the host of the client as specified in the relatedFetchClientStatisticsOpoperation.Gets the message of the exception.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.intgetPort()Gets the port of the client as specified in the relatedFetchClientStatisticsOpoperation.intGets the reason of the exception.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets the host of the client as specified in the relatedFetchClientStatisticsOpoperation.voidsetMessage(String message) Sets the message of the exception.voidsetPort(int port) Sets the port of the client as specified in the relatedFetchClientStatisticsOpoperation.voidsetReason(int reason) Sets the reason of the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_HOSTNAME
public static final int INVALID_HOSTNAME0: Constant when the hostname specified in theFetchClientStatisticsOpoperation is invalid.- See Also:
-
INVALID_PORT
public static final int INVALID_PORTThe port specified in theFetchClientStatisticsOpoperation is invalid.- See Also:
-
UNKNOWN_CLIENT
public static final int UNKNOWN_CLIENTThe hostname and port specified in theFetchClientStatisticsOpoperation do not correspond to a connected client.- See Also:
-
UNKNOWN
public static final int UNKNOWNThe reason of the exception is unknown.- See Also:
-
TAG_NAME
The name of the exception: "fetchClientStatisticsException".- See Also:
-
-
Constructor Details
-
FetchClientStatisticsException
public FetchClientStatisticsException()Creates a fetch client statistics exception. -
FetchClientStatisticsException
Creates a fetch client statistics exception with a reason and a message.- Parameters:
reason- The reason of the exceptionmessage- The message of the exceptionhost- The host machine of the client as specified in theFetchClientStatisticsOpoperationport- The communication port reserved for the client as specified in theFetchClientStatisticsOpoperation
-
-
Method Details
-
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- Overrides:
getOperandReferencein classOperationFailureException- 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.- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- 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.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-
getHost
Gets the host of the client as specified in the relatedFetchClientStatisticsOpoperation.- Returns:
- The host machine of the client as specified in the related
FetchClientStatisticsOpoperation
-
setHost
Sets the host of the client as specified in the relatedFetchClientStatisticsOpoperation.- Parameters:
host- The host machine of the client as specified in the relatedFetchClientStatisticsOpoperation
-
getPort
public int getPort()Gets the port of the client as specified in the relatedFetchClientStatisticsOpoperation.- Returns:
- the port of the client as specified in the related
FetchClientStatisticsOpoperation
-
setPort
public void setPort(int port) Sets the port of the client as specified in the relatedFetchClientStatisticsOpoperation.- Parameters:
port- The communication port reserved for the client as specified in the relatedFetchClientStatisticsOpoperation
-
getReason
public int getReason()Gets the reason of the exception.- Returns:
- The reason of the exception
- See Also:
-
setReason
public void setReason(int reason) Sets the reason of the exception.- Parameters:
reason- The reason of the exception- See Also:
-
getMessage
Gets the message of the exception.- Overrides:
getMessagein classThrowable- Returns:
- The text message of the exception
-
setMessage
Sets the message of the exception.- Parameters:
message- The text message of the exception
-