Package com.highdeal.admin.hci
Class ClientInfo
java.lang.Object
com.highdeal.admin.hci.ClientInfo
- All Implemented Interfaces:
XMLMarshallable,Comparable<ClientInfo>
This
Java class represents information about a charging client application or system that is connected to the SAP CC Core Server system;
Implement the List Clients operation to handle this information in your client application.
This information includes:
- The ID of the charging client in the dispatcher instance
- The name of the host the charging client is connecting from
- The port number the charging client is connecting from
- The name of the charging client
- The process identifier of the charging client
- The date when the charging client started
- The date when the charging client connected to the SAP CC system
- Whether statistics are enabled for the charging client
More Information
Consult the list_clients command in the SAP CC Admin+ user interface for more information.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="clientInfo">
<xs:complexType>
<xs:attribute name="dispatcherClientId" type="xs:integer" use="required"/>
<xs:attribute name="hostname" type="xs:string" use="required"/>
<xs:attribute name="port" type="xs:integer" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="startDate" type="xs:dateTime" use="required"/>
<xs:attribute name="pid" type="xs:string"/>
<xs:attribute name="statisticsEnabled" type="xs:boolean" use="required"/>
<xs:attribute name="connectionDate" type="xs:dateTime" use="required"/>
<xs:attribute name="login" type="xs:string"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.intGets the date when the charging client connected to the SAP CC system.intGets the identifier of the charging client in the dispatcher instance of the SAP CC system.Gets the name of the host the charging client is connecting from.getLogin()Gets the login used to authenticate the client.getName()Gets the name of the charging client.getPid()Gets the process identifier of the charging client.intgetPort()Gets the port number the charging client is connecting from.Gets the date when the charging client started.booleanGets whether statistics are enabled for the charging client.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.voidsetConnectionDate(Date connectionDate) Sets the date when the charging client connected to the SAP CC system.voidsetDispatcherClientId(int dispatcherClientId) Sets the identifier of the charging client in the dispatcher instance.voidsetHostname(String hostname) Sets the name of the host the charging client is connecting from.voidSets the login used to authenticate the client.voidSets the name of the charging client.voidSets the process identifier of the charging client.voidsetPort(int port) Sets the port number the charging client is connecting from.voidsetStartDate(Date startDate) Sets the date when the charging client started.voidsetStatisticsEnabled(boolean statisticsEnabled) Sets whether statistics are enabled for the charging client.
-
Field Details
-
TAG_NAME
The XLM element name of this data model: clientInfo- See Also:
-
-
Constructor Details
-
ClientInfo
public ClientInfo()Creates a client information object.
-
-
Method Details
-
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
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-
getDispatcherClientId
public int getDispatcherClientId()Gets the identifier of the charging client in the dispatcher instance of the SAP CC system.- Returns:
- The identifier of the charging client in the dispatcher instance
-
setDispatcherClientId
public void setDispatcherClientId(int dispatcherClientId) Sets the identifier of the charging client in the dispatcher instance.- Parameters:
dispatcherClientId- The identifier of the charging client in the dispatcher instance
-
getHostname
Gets the name of the host the charging client is connecting from.- Returns:
- The name of the host machine of the charging client
-
setHostname
Sets the name of the host the charging client is connecting from.- Parameters:
hostname- The name of the host the charging client is connecting from
-
getPort
public int getPort()Gets the port number the charging client is connecting from.- Returns:
- The port number the charging client is connecting from
-
setPort
public void setPort(int port) Sets the port number the charging client is connecting from.- Parameters:
port- The port number the charging client is connecting from
-
getName
Gets the name of the charging client.- Returns:
- The name of the charging client
-
setName
Sets the name of the charging client.- Parameters:
name- The name of the charging client
-
getPid
Gets the process identifier of the charging client.- Returns:
- The process identifier of the charging client
-
setPid
Sets the process identifier of the charging client.- Parameters:
pid- The process identifier of the charging client
-
getStartDate
Gets the date when the charging client started.- Returns:
- The date when the charging client started
-
setStartDate
Sets the date when the charging client started.- Parameters:
startDate- The date when the charging client started
-
getConnectionDate
Gets the date when the charging client connected to the SAP CC system.- Returns:
- The date when the charging client connected to the SAP CC system
-
setConnectionDate
Sets the date when the charging client connected to the SAP CC system.- Parameters:
connectionDate- The date when the charging client connected to the SAP CC system
-
isStatisticsEnabled
public boolean isStatisticsEnabled()Gets whether statistics are enabled for the charging client.- Returns:
trueif statistics are enabled for the charging client,falseotherwise
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled) Sets whether statistics are enabled for the charging client.- Parameters:
statisticsEnabled-trueif statistics are enabled for the charging client,falseotherwise
-
getLogin
Gets the login used to authenticate the client.- Returns:
- the login used to authenticate the client
-
setLogin
Sets the login used to authenticate the client.- Parameters:
login- the login used to authenticate the client
-
compareTo
- Specified by:
compareToin interfaceComparable<ClientInfo>
-