public class FetchClientStatisticsException extends OperationFailureException
Fetch Client Statistics operation).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>
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID_HOSTNAME
0: Constant when the hostname specified in the
FetchClientStatisticsOp operation is invalid. |
static int |
INVALID_PORT
The port specified in the
FetchClientStatisticsOp operation is invalid. |
static java.lang.String |
TAG_NAME
The name of the exception: "fetchClientStatisticsException".
|
static int |
UNKNOWN
The reason of the exception is unknown.
|
static int |
UNKNOWN_CLIENT
The hostname and port specified in the
FetchClientStatisticsOp operation do not correspond to a connected client. |
| Constructor and Description |
|---|
FetchClientStatisticsException()
Creates a fetch client statistics exception.
|
FetchClientStatisticsException(int reason,
java.lang.String message,
java.lang.String host,
int port)
Creates a fetch client statistics exception with a reason and a message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getHost()
Gets the host of the client as specified in the related
FetchClientStatisticsOp operation. |
java.lang.String |
getMessage()
Gets the message of the exception.
|
java.lang.String |
getOperandReference()
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 is
null. |
int |
getPort()
Gets the port of the client as specified in the related
FetchClientStatisticsOp operation. |
int |
getReason()
Gets the reason of the exception.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setHost(java.lang.String host)
Sets the host of the client as specified in the related
FetchClientStatisticsOp operation. |
void |
setMessage(java.lang.String message)
Sets the message of the exception.
|
void |
setPort(int port)
Sets the port of the client as specified in the related
FetchClientStatisticsOp operation. |
void |
setReason(int reason)
Sets the reason of the exception.
|
public static final int INVALID_HOSTNAME
FetchClientStatisticsOp operation is invalid.public static final int INVALID_PORT
FetchClientStatisticsOp operation is invalid.public static final int UNKNOWN_CLIENT
FetchClientStatisticsOp operation do not correspond to a connected client.public static final int UNKNOWN
public static final java.lang.String TAG_NAME
public FetchClientStatisticsException()
public FetchClientStatisticsException(int reason,
java.lang.String message,
java.lang.String host,
int port)
reason - The reason of the exceptionmessage - The message of the exceptionhost - The host machine of the client as specified in the FetchClientStatisticsOp operationport - The communication port reserved for the client as specified in the FetchClientStatisticsOp operationpublic java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultgetOperandReference in class OperationFailureExceptionpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic java.lang.String getHost()
FetchClientStatisticsOp operation.FetchClientStatisticsOp operationpublic void setHost(java.lang.String host)
FetchClientStatisticsOp operation.host - The host machine of the client as specified in the related FetchClientStatisticsOp operationpublic int getPort()
FetchClientStatisticsOp operation.FetchClientStatisticsOp operationpublic void setPort(int port)
FetchClientStatisticsOp operation.port - The communication port reserved for the client as specified in the related FetchClientStatisticsOp operationpublic int getReason()
INVALID_HOSTNAME,
INVALID_PORT,
UNKNOWN_CLIENT,
UNKNOWNpublic void setReason(int reason)
reason - The reason of the exceptionINVALID_HOSTNAME,
INVALID_PORT,
UNKNOWN_CLIENT,
UNKNOWNpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setMessage(java.lang.String message)
message - The text message of the exception