StatefulServiceClient Java class.
This class allows your Java-based client application to send some chargeable items to the SAP CC system
by using an efficient message protocol based on TCP/IP.
Caution
Since version 1.0 of SAP Convergent Charging, this main Java class is replaced by the StatefulServiceClient main Java class.
Consider also the AsyncStatefulServiceClient main Java class in this Java package.
@Deprecated public class ChargeableItemCollectorClient extends StatefulServiceClient
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLUSTER_IPADDRESS_KEY
Deprecated.
Key for the system property that contains the IP address for the SAP Convergent Charging
system service.
|
static java.lang.String |
ROUND_ROBIN_PATTERN_KEY
Deprecated.
Key for the system property that contains the regex pattern for the
service Ids that must be sent to the rating instances using a
round-robin algorithm.
|
ALL_TRANSACTION, ALL_TRANSACTION_AND_RECURRING, CANCELLED, CONFIRMED, MASTER_TRANSACTION, NONE_TRANSACTION| Constructor and Description |
|---|
ChargeableItemCollectorClient()
Deprecated.
Use the constructor
StatefulServiceClient. Deprecated since version 1.0 of SAP CC. |
ChargeableItemCollectorClient(java.lang.String systemName)
Deprecated.
Use the constructor
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC. |
ChargeableItemCollectorClient(java.lang.String systemName,
FoundLostRatingListener listener)
Deprecated.
Use the constructor
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC. |
ChargeableItemCollectorClient(java.lang.String hostName,
int port)
Deprecated.
Use the constructor
StatefulServiceClient(String, int). Deprecated since version 1.0 of SAP CC. |
ChargeableItemCollectorClient(java.lang.String systemName,
java.lang.String ipAddress)
Deprecated.
Use the constructor
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC. |
ChargeableItemCollectorClient(java.lang.String systemName,
java.lang.String ipAddress,
FoundLostRatingListener listener)
Deprecated.
Use the constructor
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC. |
| Modifier and Type | Method and Description |
|---|---|
void |
connectCluster(java.lang.String system)
Deprecated.
Use the method
AsyncRatingServiceClient.connect(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC. |
void |
connectCluster(java.lang.String system,
FoundLostRatingListener listener)
Deprecated.
Use the method
AsyncRatingServiceClient.connect(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC. |
void |
connectCluster(java.lang.String system,
java.lang.String ipAddress)
Deprecated.
Use the method
AsyncRatingServiceClient.connect(String, int) as systemName is no more used. |
void |
connectCluster(java.lang.String system,
java.lang.String ipAddress,
FoundLostRatingListener listener)
Deprecated.
Use the method
AsyncRatingServiceClient.connect(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC. |
java.lang.String |
getRoundRobinServiceRegex()
Deprecated.
Has no more effect.
|
void |
setRoundRobinServiceRegex(java.lang.String serviceRegex)
Deprecated.
Has no more effect.
|
activate, activate, blankCharge, blankCharge, blankCharge, charge, charge, charge, charge, checkLimit, checkLimit, cleanup, cleanup, createSessionStartOperation, createSessionStopOperation, createSessionUpdateOperation, getEstimatedPrice, getEstimatedPrice, getEstimatedPrice, monitorSpendingStatus, postRate, postRate, preRate, preRate, startRate, startRate, stopRate, stopRate, translate, translate, updateRate, updateRateactivate, blankCharge, blankCharge, blankCharge, charge, charge, charge, charge, checkLimit, checkLimit, cleanup, createSessionStartAsyncOperation, createSessionStopAsyncOperation, createSessionUpdateAsyncOperation, getEstimatedPrice, getEstimatedPrice, getEstimatedPrice, monitorSpendingStatus, postRate, postRate, preRate, preRate, registerReservationRenewalListener, registerSpendingStatusReportListener, startRate, startRate, startRate, stopRate, stopRate, stopRate, translate, translate, unregisterReservationRenewalListener, unregisterSpendingStatusReportListener, updateRate, updateRate, updateRateaddAuthenticationListener, close, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getBootMode, getClientOpEventListener, getConnectionStatus, getSslContext, getTimeout, isAtLeastOneConnectionIsRegistered, isConnected, isNoTimeout, setBootMode, setClientOpEventListener, setHAEventListener, setNoTimeout, setSslContext, setUserCredentialspublic static final java.lang.String ROUND_ROBIN_PATTERN_KEY
public static final java.lang.String CLUSTER_IPADDRESS_KEY
@Deprecated public ChargeableItemCollectorClient()
StatefulServiceClient. Deprecated since version 1.0 of SAP CC.
One of the methods connect()or
connectCluster() must then be used to
connect it to a Chargeable Item Collector server.
@Deprecated
public ChargeableItemCollectorClient(java.lang.String hostName,
int port)
throws java.io.IOException
StatefulServiceClient(String, int). Deprecated since version 1.0 of SAP CC.hostName - the host name of the server.port - the port on which the server waits for request.java.io.IOException - if the client cannot connect to the server (if
server is not running, for instance).@Deprecated
public ChargeableItemCollectorClient(java.lang.String systemName)
throws CommunicationFailureException
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC.systemName - the name of the system this client should connect
to.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.@Deprecated
public ChargeableItemCollectorClient(java.lang.String systemName,
java.lang.String ipAddress)
throws CommunicationFailureException
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC.systemName - the name of the system this client should connect
to.ipAddress - the IP address for the SAP Convergent Charging system service.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.@Deprecated
public ChargeableItemCollectorClient(java.lang.String systemName,
FoundLostRatingListener listener)
throws CommunicationFailureException
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC.systemName - the name of the system this client should connect
to.listener - the listener that will be notified each time a Rating
server is discovered or lost by this client.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.@Deprecated
public ChargeableItemCollectorClient(java.lang.String systemName,
java.lang.String ipAddress,
FoundLostRatingListener listener)
throws CommunicationFailureException
StatefulServiceClient(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC.systemName - the name of the system this client should connect
to.ipAddress - the IP address used by the SAP Convergent Charging system service.listener - the listener that will be notified each time a Rating
server is discovered or lost by this client.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.@Deprecated public void setRoundRobinServiceRegex(java.lang.String serviceRegex)
serviceRegex - The regex for the services that must be dispatched
in round-robin, or null if the round-robin
must be deactivated.java.lang.IllegalArgumentException - if the serviceRegex is not a regex.@Deprecated public java.lang.String getRoundRobinServiceRegex()
null if round-robin is not
activated.@Deprecated
public void connectCluster(java.lang.String system)
throws CommunicationFailureException
AsyncRatingServiceClient.connect(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC.
This method is equivalent to
connectCluster(system, null, null)
system - the name of the system this client should connect to.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.connectCluster(String, String, FoundLostRatingListener)@Deprecated
public void connectCluster(java.lang.String system,
FoundLostRatingListener listener)
throws CommunicationFailureException
AsyncRatingServiceClient.connect(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC.This client broadcasts a request to discover nodes in the system. The method returns after having discovered at least one node in the system. If no nodes are found after a 60 second timeout, then a communication failure exception (timeout) is thrown.
The given listener will be notified each time a Rating server is discovered or lost by this client.
system - the name of the system this client should connect to.listener - the listener that will be notified each time a Rating
server is discovered or lost by this client.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.@Deprecated
public void connectCluster(java.lang.String system,
java.lang.String ipAddress)
throws CommunicationFailureException
AsyncRatingServiceClient.connect(String, int) as systemName is no more used.This method allows to specifiy an IP address for the SAP Convergent Charging system service.
system - the name of the system this client should connect to.ipAddress - the IP address for the SAP Convergent Charging system service.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.@Deprecated
public void connectCluster(java.lang.String system,
java.lang.String ipAddress,
FoundLostRatingListener listener)
throws CommunicationFailureException
AsyncRatingServiceClient.connect(String, int) as systemName is no more used. Deprecated since version 1.0 of SAP CC.This client broadcasts a request to discover nodes in the system. The method returns after having discovered at least one node in the system. If no nodes are found after a 60 second timeout, then a communication failure exception (timeout) is thrown.
The given listener will be notified each time a Rating server is discovered or lost by this client.
This method allows to specifiy an IP address for the SAP Convergent Charging system service.
system - the name of the system this client should connect to.listener - the listener that will be notified each time a Rating
server is discovered or lost by this client.ipAddress - the IP address for the SAP Convergent Charging system service.CommunicationFailureException - if the client cannot connect to
the system or if no system nodes are found after a 60
second timeout.