com.highdeal.cnd.message
Class AsyncBatchServiceClient

java.lang.Object
  extended by com.highdeal.cnd.message.AsyncBatchServiceClient
All Implemented Interfaces:
com.highdeal.barbus.ISSLContextProvider
Direct Known Subclasses:
BatchServiceClient

public class AsyncBatchServiceClient
extends java.lang.Object

This main Java class provides the necessary operations to implement Offline Charging Services (OFCS) in your SAP system landscape by using the Message TCP technical interface with asynchronous communications for the highest throughput performances.

Your client application converts the information data about the customer service usage (service consumption) as chargeable items and sends them to the connected SAP CC Core Server system to charge the past usage (consumption) of a marketable service by end customers; This class enables asynchronous communications via the Message TCP technical interface.

Consider the following information in this topic:

Asynchronous Services and Operations

With this Java class, you can implement offline event-based charging services via the Message TCP high-speed technical interface.

Business Services:
Offline Stateful Charging Services
Operations Technical Names (Consider the methods in this Java class) Result Listeners
Chargeable Item Acquisition Batch acquisition operation acquire(..) AcquisitionListener
Offline Charging Batch charging operation batchCharge(..) to a contract or subscription BatchChargeEventListener
Special: Event-based Advice of Charge Blank charging operation blankCharge(..) ChargeEventListener

Note

You can implement the rerating end-to-end service (based on provider contracts) by using another communication interface based on SOAP APIs: Refer to the specifications of the Web Services technical interface.

Note

Features

This charging client benefits from the functions provided by the Messagte TCP technical interface. Refer to its features about:

Event Listener

Most of the operation requests are asynchronous and expect a specialized event listener for processing their results or exceptions in your charging client. These custom listeners are invoked in your charging client when the business operation is successful with the result of the operation or when it fails with an exception defining the problem.

Security

Use the SSL Context.

Implementation in Your Client Application

Implementing the Relevant Event Listener

You determine the event listener to develop by viewing the signature of the Java method that you want to implement or by consulting the Asynchronous Services and Operations section.

See also the ChargeExceptionListener Java interface.

Initializing and Connecting

Code Snippet

The following code snippet provides an example of how to initialize a charging client based on the AsyncBatchServiceClient class:

      AsyncBatchServiceClient client = new AsyncBatchServiceClient();
      try {
          client.connect("dispatcher.hostname", 9000);
      } catch (IOException e) {
          System.out.println("Dispatcher instance is not found. Reason is: "+e.getMessage());
          return;
      }
 

Terminating

Do not forget to close this client when it is no more used to release its resources and nested threads invoking its method {TEST com.highdeal.cnd.message.AsyncBatchServiceClient#close() close()}.

Most of its methods are asynchronous and expect a listener for processing their results or exceptions. These listeners are invoked when the operation is successful with the result of the operation or when it fails with an exception defining the problem.

Implementing Batch Acquisition Services

You can implement this business operation if both SAP Convergent Charging and SAP Convergent Invoicing are in your system landscape. The consumption item management function must be enable in SAP Convergent Invoicing in the SAP ERP/FI-CA system.

Use the method acquire(..) .

Implementing Batch Charging Services

Customizing Sequence

Implementing Recharging for Rerating Services

To provide your system landscape with rerating services, you must implement the Recharging step of this process. This step follows the correction of the source(s) of the mistakes.

Recommendation

Before implementing these operations, refer to the SAP CC Library (Application Help) for more information about these processes.

Customizing Sequence

Use the following sequence of SAP CC operations to correct subsriptions or charging contracts:

Additional Information

Consult all the online and offline charging services that you can implement in your Java-based client application.

Consult the SAP CC Library (Application Help) for more information about the Offline Charging Services.

Related Information

See Also:
ChargeableItem, AcquisitionResult, PurchaseOrder, BatchChargeResult, ChargeEventListener, BatchChargeEventListener

Nested Class Summary
protected static interface AsyncRatingServiceClient.RegisterListener
           
 
Field Summary
static int ALL_TRANSACTION
          Constant to return all the usage transactions
static int ALL_TRANSACTION_AND_RECURRING
          Constant to return all the usage transactions and all the recurring/one-shot transactions
static int CANCELLED
          Constant to set up the resolution used when the time to live (TTL) is expired as canceled
static int CONFIRMED
          Constant to set up the resolution used when the time to live (TTL) is expired as confirmed
protected  java.util.List<AsyncRatingServiceClient.RegisterListener> listeners
           
static int MASTER_TRANSACTION
          Constant to return the master usage transaction
static int NONE_TRANSACTION
          Constant to return no usage transaction
protected  com.highdeal.cnd.message.AsyncRatingServiceClient.RLListener ratingListListener
           
 
Constructor Summary
AsyncBatchServiceClient()
          Creates a non-initialized charging client for implementing the offline charging services in your Java-based client application; Use one of the methods connect(..) must then be used to connect it to the distant SAP CC system.
AsyncBatchServiceClient(java.lang.String hostName, int port)
          Creates a message client and connects it to the distant SAP CC system.
AsyncBatchServiceClient(java.lang.String hostName, int port, FoundLostRatingListener ratingListener)
          Initializes a message client and connects it to the distant SAP CC system.
AsyncBatchServiceClient(java.lang.String hostName, int port, int timeout)
          Creates a message client and connects it to the distant SAP CC system.
AsyncBatchServiceClient(java.lang.String hostName, int port, java.lang.String bindAddress, int timeout, FoundLostRatingListener ratingListener)
          Initializes a message client and connects it to the distant SAP CC system
 
Method Summary
 void acquire(java.util.List<AcquisitionParameters> parameters, AcquisitionListener listener)
          Asks the server to asynchronously execute a list of acquisition operations.
protected  void addListener(AsyncRatingServiceClient.RegisterListener listener)
           
protected  void asyncSend(com.highdeal.cnd.message.common.CollectorMessage m, int maxTimeout, ResponseHandlerWrapper handler, com.highdeal.util.IEventListener eventListener)
          FOR INTERNAL USE ONLY - Sends asynchronously the message m; When a response or an exception is received by the client application, it must back the response handler.
 void batchCharge(java.util.Vector<ChargeParameters> parameters, java.lang.Long subscriptionOrContractID, short partitionID, AccessibleChargeType chargeType, int ts, boolean ft, MessageHeader.TransactionMode tm, java.lang.String reratingLockCode, BatchChargeEventListener listener)
          Requests the connected SAP CC Core Server system to charge in batch mode a sorted set of chargeable items for the specified user service ID (USID) and service ID (SID) and relating to an already identified subscription or charging contract.
 void batchCharge(java.util.Vector<ChargeParameters> parameters, java.lang.Long subscriptionID, short partitionID, int ts, boolean ft, MessageHeader.TransactionMode tm, java.lang.String reratingLockCode, BatchChargeEventListener listener)
          Requests the connected SAP CC Core Server system to charge in batch mode a sorted set of chargeable items for the specified user service ID (USID) and service ID (SID) and relating to an already identified subscription.
protected  void beginSession()
          FOR INTERNAL USE ONLY - Begins a client session for this thread; All the messages are stored in memory and are not sent until the method sendSession() is called.
 void blankCharge(ChargeableItem ci, java.lang.String serviceID, java.lang.String userServiceID, java.util.Date consumptionDate, int ts, boolean ft, ChargeEventListener listener)
          Asks the server to rate (in blank mode) the specified chargeable item for the specified user service ID and the specified service ID at the specified date.
 void charge(ChargeableItem ci, java.lang.String serviceID, java.lang.String userServiceID, java.util.Date consumptionDate, ChargeEventListener listener)
          Asks the server to rate the specified chargeable item for the specified user service ID and service ID at the specified date.
 void charge(ChargeableItem ci, java.lang.String serviceID, java.lang.String userServiceID, java.util.Date consumptionDate, int ts, boolean ft, java.lang.String reratingLockCode, ChargeEventListener listener)
          Asks the server to charge the specified chargeable item for the specified user service ID and service ID at the specified date.
protected  void charge(ChargeableItem ci, java.lang.String serviceID, java.lang.String userServiceID, java.util.Date consumptionDate, int ts, boolean ft, java.lang.String reratingLockCode, ChargeExecutionContext context, ChargeEventListener listener)
          (NOT PUBLIC)
Asks the server to charge the specified chargeable item for the specified user service ID and service ID at the specified date.
 void charge(ChargeableItem ci, java.lang.String serviceID, java.lang.String userServiceID, java.util.Date consumptionDate, java.lang.String reratingLockCode, ChargeExecutionContext context, ChargeEventListener listener)
          Asks the server to charge the specified chargeable item for the specified user service ID and service ID at the specified date.
 void close()
          Closes the connection with the connected SAP CC system; This method allows to release all the resources attached (sockets and buffers) in the charging client.
 void connect(InstanceMap imap, java.lang.String bindAddress, int timeout, FoundLostRatingListener ratingListener, ServiceClientTuning config)
          Connects this charging client with the SAP CC system by using an instance map; A timeout must be specified.
 void connect(java.lang.String systemName, java.net.InetSocketAddress... bootDispatcherAddresses)
          Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape.
 void connect(java.lang.String systemName, com.highdeal.barbus.InstanceAddress... bootDispatcherAddresses)
          Connects this charging client with the Rating Instances.
 void connect(java.lang.String hostname, int hostport)
          Connects this charging client to the distant SAP CC Core Server system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape; No client timeout is specified.
 void connect(java.lang.String hostname, int port, boolean secure, java.lang.String bindAddress, int timeout, FoundLostRatingListener ratingListener, ServiceClientTuning config)
          Connects this message client with the Rating Instances.
 void connect(java.lang.String hostname, int hostport, FoundLostRatingListener ratingListener)
          Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape; No client timeout is specified.
 void connect(java.lang.String systemName, int lookupDuration, java.net.InetSocketAddress discoveryAddress, java.lang.String bindAddress, int timeout, FoundLostRatingListener ratingListener, ServiceClientTuning config, java.net.InetSocketAddress... bootDispatcherAddresses)
          Connects this message client with the Rating Instances.
 void connect(java.lang.String systemName, int lookupDuration, java.net.InetSocketAddress discoveryAddress, java.lang.String bindAddress, int timeout, FoundLostRatingListener ratingListener, ServiceClientTuning config, com.highdeal.barbus.InstanceAddress... bootDispatcherAddresses)
          Connects this charging client with the SAP CC system by using the UDP discovery function.
 void connect(java.lang.String hostname, int hostport, int timeout)
          Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape; A client timeout must be specified.
 void connect(java.lang.String hostname, int hostport, java.lang.String bindAddress, int timeout, FoundLostRatingListener ratingListener)
          Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape.
 void connect(java.lang.String hostname, int port, java.lang.String bindAddress, int timeout, FoundLostRatingListener ratingListener, ServiceClientTuning config)
          Connects this message client with the Rating Instances.
 BootMode getBootMode()
          Returns which API is used to retrieve from the remote instances, the Instance Map needed for the connection.
protected  com.highdeal.barbus.RoundRobinClient getClient()
          Deprecated. Deprecated since version 2.0 of SAP CC and should not be called anymore
 ClientOpEventListener getClientOpEventListener(ClientOpEventTopic topic)
          Gets the client operation event listener used by the client for the specified topic.
protected  java.lang.String getClusterName()
          Deprecated. Deprecated since version 2.0 of SAP CC Gets the system name.
protected  ServiceClientTuning getDefaultServiceClientTuning()
          Gets the default service tuning of this client useful to configure connections.
protected  com.highdeal.util.IEventListener getEventListenerFromListener(java.lang.Object listener)
           
protected  FoundLostRatingListener getFoundLostRatingListener()
          Returns the rating listener previously set.
protected  com.highdeal.barbus.Topic getRatingTopic()
          Gets the rating topic of this client used to send rating messages.
protected  com.highdeal.cnd.message.sensor.SensorsManager getSensorsManager()
           
 javax.net.ssl.SSLContext getSslContext()
          Returns the SSL context used with secure connections.
 int getTimeout()
          Returns the client communication timeout in milliseconds for each request (or -1 to wait indefinitely).
protected  com.highdeal.barbus.Topic[] getTopicsToSubscribe()
          Returns an array of topics that client must subscribe to.
 void guiderLookup(GuidingRequest[] requests, GuidingServiceClientListener listener)
          See the BatchServiceClient.guiderLookup(com.highdeal.guiding.common.GuidingRequest[]) method for more information and consider also the necessary listener.
 void guiderLookup(GuidingRequest request, GuidingServiceClientListener listener)
          See the BatchServiceClient.guiderLookup(com.highdeal.guiding.common.GuidingRequest) method for more information and consider also the necessary listener.
 void guiderLookup(java.lang.String serviceID, java.lang.String userServiceID, java.util.Date consumptionDate, GuidingServiceClientListener listener)
          See the BatchServiceClient.guiderLookup(java.lang.String, java.lang.String, java.util.Date) method for more information and consider also the necessary listener.
 void informStartContractCollectionRerating(java.lang.String reratingLockCode, short partitionId, java.util.Date restorationDate, java.util.List<java.lang.Long> contractIdList, BatchChargeEventListener listener)
           Starts the rerating of a collection of charging contracts.
 void informStartSubscriptionRerating(java.lang.String reratingLockCode, long subscriptionId, java.util.Date restorationDate, short partitionId, AccessibleChargeType accessibleChargeType, BatchChargeEventListener listener)
           Starts the rerating of a subscription or charging contract.
 void informStopSubscriptionRerating(java.lang.String reratingLockCode, long subscriptionId, java.util.Date maxConsumptionDate, java.util.Date activationDate, short partitionId, AccessibleChargeType accessibleChargeType, BatchChargeEventListener listener)
           Stops the rerating of a subscription or charging contract.
 void informUnlockSubscription(java.lang.String reratingLockCode, long subscriptionId, java.util.Date maxConsumptionDate, java.util.Date activationDate, short partitionId, BatchChargeEventListener listener)
          Deprecated. 
 boolean isConnected()
          Gets the connected connection status.
 boolean isNoTimeout()
          Checks if this charging client handles timeout.
protected  boolean isValid(ChargeableItem ci, InvalidItemListener listener)
          Checks whether the specified chargeable item is valid or not; A call back listener has to be given to handle errors.
protected  void notifyHeartBeat(com.highdeal.barbus.Client client)
           
 boolean pingReratingOperation(java.lang.String reratingLockCode)
          Checks if a rerating operation identified is running.
protected  void register(com.highdeal.hmi.IConnectable connectable)
           
protected  void sendSession()
          FOR INTERNAL USE ONLY - All the messages between the last call of the method beginSession() and now for this thread are sent.
 void setBootMode(BootMode mode)
          Deprecated.  
 void setClientOpEventListener(ClientOpEventTopic topic, ClientOpEventListener listener)
          Sets the client operation event listener to the specified topics; It will be notified each time an event corresponding to the registered topics.
protected  void setClusterName(java.lang.String name)
          Deprecated. Deprecated since version 2.0 of SAP CC
protected  void setFoundLostRatingListener(FoundLostRatingListener ratingListener)
          Sets the rating listener that will be notified each time a rater instance of the SAP CC system will be found or lost.
 void setHAEventListener(HAEventListener listener)
          Deprecated. Deprecated since version 0.0 of SAP CC

Sets the HA listener dedicated to High Availability events; It will be notified each time the status of an instance of the connected SAP CC system has changed.

 void setNoTimeout(boolean noTimeout)
          Sets that this charging client handles timeout.
 void setReratingInfoRequestHandler(com.highdeal.barbus.RequestHandler newHandler)
          Sets an handler that will react to rerating information published by rerating service server.
 void setSslContext(javax.net.ssl.SSLContext sslContext)
          Sets the SSL context used with secure connections.
protected  void updateHandler(com.highdeal.barbus.ClientRequestHandler requestHandler)
          Updates this client with a client request handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected java.util.List<AsyncRatingServiceClient.RegisterListener> listeners

ratingListListener

protected final com.highdeal.cnd.message.AsyncRatingServiceClient.RLListener ratingListListener

NONE_TRANSACTION

public static final int NONE_TRANSACTION
Constant to return no usage transaction

See Also:
Constant Field Values

MASTER_TRANSACTION

public static final int MASTER_TRANSACTION
Constant to return the master usage transaction

See Also:
Constant Field Values

ALL_TRANSACTION

public static final int ALL_TRANSACTION
Constant to return all the usage transactions

See Also:
Constant Field Values

ALL_TRANSACTION_AND_RECURRING

public static final int ALL_TRANSACTION_AND_RECURRING
Constant to return all the usage transactions and all the recurring/one-shot transactions

See Also:
Constant Field Values

CANCELLED

public static final int CANCELLED
Constant to set up the resolution used when the time to live (TTL) is expired as canceled

See Also:
Constant Field Values

CONFIRMED

public static final int CONFIRMED
Constant to set up the resolution used when the time to live (TTL) is expired as confirmed

See Also:
Constant Field Values
Constructor Detail

AsyncBatchServiceClient

public AsyncBatchServiceClient()
Creates a non-initialized charging client for implementing the offline charging services in your Java-based client application; Use one of the methods connect(..) must then be used to connect it to the distant SAP CC system.


AsyncBatchServiceClient

public AsyncBatchServiceClient(java.lang.String hostName,
                               int port)
                        throws java.io.IOException
Creates a message client and connects it to the distant SAP CC system.

Parameters:
hostName - The host name of the server
port - The communication port on which the server waits for request
Throws:
java.io.IOException - if the client cannot connect to the server (if server is not running, for instance).

AsyncBatchServiceClient

public AsyncBatchServiceClient(java.lang.String hostName,
                               int port,
                               int timeout)
                        throws java.io.IOException
Creates a message client and connects it to the distant SAP CC system.

Parameters:
hostName - The host name of the server
port - The port on which the server waits for request
timeout - The timeout in milliseconds for each request (or -1 to wait indefinitely) If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending request
Throws:
java.io.IOException - if the client cannot connect to the server (if server is not running, for instance).

AsyncBatchServiceClient

public AsyncBatchServiceClient(java.lang.String hostName,
                               int port,
                               FoundLostRatingListener ratingListener)
                        throws java.io.IOException
Initializes a message client and connects it to the distant SAP CC system.

Parameters:
hostName - The host name of the server
port - The port on which the server waits for request
ratingListener - The listener informed when rating is found or lost
Throws:
java.io.IOException - if the client cannot connect to the servers

AsyncBatchServiceClient

public AsyncBatchServiceClient(java.lang.String hostName,
                               int port,
                               java.lang.String bindAddress,
                               int timeout,
                               FoundLostRatingListener ratingListener)
                        throws java.io.IOException
Initializes a message client and connects it to the distant SAP CC system

Parameters:
hostName - The host name of the server
port - The port on which the server waits for request
bindAddress -
timeout - the timeout in milliseconds for each request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending request.
ratingListener - the listener informed when rating is found or lost
Throws:
java.io.IOException - if the client cannot connect to the servers
Method Detail

setReratingInfoRequestHandler

public void setReratingInfoRequestHandler(com.highdeal.barbus.RequestHandler newHandler)
Sets an handler that will react to rerating information published by rerating service server.

Parameters:
newHandler - an implementation of an handler

charge

public void charge(ChargeableItem ci,
                   java.lang.String serviceID,
                   java.lang.String userServiceID,
                   java.util.Date consumptionDate,
                   int ts,
                   boolean ft,
                   java.lang.String reratingLockCode,
                   ChargeEventListener listener)
Asks the server to charge the specified chargeable item for the specified user service ID and service ID at the specified date.

This operation may conflict with the prerating feature. Do not use this operation if some preratings are not post-rated.

Parameters:
ci - the ChargeableItem to charge
serviceID - the service identifier (SID), which represents a technical identifier of the service provided by the service provider
userServiceID - the user service identifier (USID), which represents a technical identifier of the end customer consuming the service
consumptionDate - the date the service was consumed by the end customer
ts - the transaction selection NONE_TRANSACTION, MASTER_TRANSACTION, ALL_TRANSACTION, ALL_TRANSACTION_AND_RECURRING
ft - sets if the returned transactions must be filtered according to the transactionTemplate
reratingLockCode - the rerating operation lock code
listener - the listener in charge for processing the results or exceptions of this operation.

charge

public void charge(ChargeableItem ci,
                   java.lang.String serviceID,
                   java.lang.String userServiceID,
                   java.util.Date consumptionDate,
                   java.lang.String reratingLockCode,
                   ChargeExecutionContext context,
                   ChargeEventListener listener)
Asks the server to charge the specified chargeable item for the specified user service ID and service ID at the specified date.
The result can be retrieved using the method PurchaseOrder.getChargingResults(). The content of the result can be configured using the specified context.
This operation may conflict with the prerating feature. Do not use this operation if some preratings are not post-rated.

Parameters:
ci - the ChargeableItem to charge
serviceID - the service identifier (SID), which represents a technical identifier of the service provided by the service provider
userServiceID - the user service identifier (USID), which represents a technical identifier of the end customer consuming the service
consumptionDate - the date the service was consumed by the end customer
reratingLockCode - the rerating operation lock code
context - the conditions under which the charge operation must be executed (can be null)
listener - the listener in charge for processing the results or exceptions of this operation.

charge

protected void charge(ChargeableItem ci,
                      java.lang.String serviceID,
                      java.lang.String userServiceID,
                      java.util.Date consumptionDate,
                      int ts,
                      boolean ft,
                      java.lang.String reratingLockCode,
                      ChargeExecutionContext context,
                      ChargeEventListener listener)
(NOT PUBLIC)
Asks the server to charge the specified chargeable item for the specified user service ID and service ID at the specified date.
This operation may conflict with the prerating feature. Do not use this operation if some preratings are not post-rated.

Parameters:
ci - the ChargeableItem to rate.
serviceID - the service identifier (SID), which represents a technical identifier of the service provided by the service provider
userServiceID - the user service identifier (USID), which represents a technical identifier of the end customer consuming the service
consumptionDate - the date the service was consumed by the end customer
ts - the transaction selection NONE_TRANSACTION, MASTER_TRANSACTION, ALL_TRANSACTION, ALL_TRANSACTION_AND_RECURRING
ft - sets if the returned transactions must be filtered according to the transactionTemplate
reratingLockCode - the rerating operation lock code
context - the conditions under which the charge operation must be executed (can be null)
listener - the listener in charge for processing the results or exceptions of this operation.

charge

public void charge(ChargeableItem ci,
                   java.lang.String serviceID,
                   java.lang.String userServiceID,
                   java.util.Date consumptionDate,
                   ChargeEventListener listener)
Asks the server to rate the specified chargeable item for the specified user service ID and service ID at the specified date. This operation may conflict with the pre-rating feature. Don't use this operation if some pre-ratings are not post-rated.

Parameters:
ci - the ChargeableItem to rate
serviceID - the service identifier (SID), which represents a technical identifier of the service provided by the service provider
userServiceID - the user service identifier (USID), which represents a technical identifier of the end customer consuming the service
consumptionDate - the date the service was consumed by the end customer
listener - the listener in charge for processing the results or exceptions of this operation.

blankCharge

public void blankCharge(ChargeableItem ci,
                        java.lang.String serviceID,
                        java.lang.String userServiceID,
                        java.util.Date consumptionDate,
                        int ts,
                        boolean ft,
                        ChargeEventListener listener)
Asks the server to rate (in blank mode) the specified chargeable item for the specified user service ID and the specified service ID at the specified date. This operation is equivalent to charge operation but the blank mode means that no data is committed to the database. WARNING: if the transaction processor doesn't take care about the DB transaction (transaction processor which stores the transactions into a file by example), the transaction processor action will not be rollbacked.

Parameters:
ci - the ChargeableItem to rate.
serviceID - the service identifier (SID), which represents a technical identifier of the service provided by the service provider
userServiceID - the user service identifier (USID), which represents a technical identifier of the end customer consuming the service
consumptionDate - the date the service was consumed by the end customer
ts - the transaction selection NONE_TRANSACTION, MASTER_TRANSACTION, ALL_TRANSACTION, ALL_TRANSACTION_AND_RECURRING
ft - sets if the returned transactions must be filtered according to the transactionTemplate
listener - the listener in charge for processing the results or exceptions of this operation.

guiderLookup

public void guiderLookup(java.lang.String serviceID,
                         java.lang.String userServiceID,
                         java.util.Date consumptionDate,
                         GuidingServiceClientListener listener)
See the BatchServiceClient.guiderLookup(java.lang.String, java.lang.String, java.util.Date) method for more information and consider also the necessary listener.

Parameters:
serviceID - The service identifier (SID), which represents a technical identifier of the service provided by the service provider
userServiceID - The user service identifier (USID), which represents a technical identifier of the end customer consuming the service
consumptionDate - The date the service was consumed by the end customer
listener - The listener responsible for processing the results or exceptions of this operation request.

guiderLookup

public void guiderLookup(GuidingRequest request,
                         GuidingServiceClientListener listener)
See the BatchServiceClient.guiderLookup(com.highdeal.guiding.common.GuidingRequest) method for more information and consider also the necessary listener.


guiderLookup

public void guiderLookup(GuidingRequest[] requests,
                         GuidingServiceClientListener listener)
See the BatchServiceClient.guiderLookup(com.highdeal.guiding.common.GuidingRequest[]) method for more information and consider also the necessary listener.


batchCharge

public void batchCharge(java.util.Vector<ChargeParameters> parameters,
                        java.lang.Long subscriptionID,
                        short partitionID,
                        int ts,
                        boolean ft,
                        MessageHeader.TransactionMode tm,
                        java.lang.String reratingLockCode,
                        BatchChargeEventListener listener)
Requests the connected SAP CC Core Server system to charge in batch mode a sorted set of chargeable items for the specified user service ID (USID) and service ID (SID) and relating to an already identified subscription. The system returns the resulting purchase orders that includes transactions computed according to the ts parameter.

Note

  • The SAP CC system filters the computed transactions according to the transaction templates assigned to the subscribed offer.
  • This operation may conflict with prerating operations. Do not use this operation there are some pending prerating operations.

Parameters:
parameters - The chronological list of ChargeParameters to charge in batch mode
subscriptionID - The unique ID of the selected subscription
partitionID - The identifier of the rating partition
ts - The transaction selection NONE_TRANSACTION, MASTER_TRANSACTION, ALL_TRANSACTION, ALL_TRANSACTION_AND_RECURRING
ft - Optional flag to enable the filtering of resulting transactions according to the transaction template configured in the subscribed offer
tm - The #@link TransactionMode transaction mode}
reratingLockCode - The rerating operation code
listener - The listener used to process the result of the batch charging operation

batchCharge

public void batchCharge(java.util.Vector<ChargeParameters> parameters,
                        java.lang.Long subscriptionOrContractID,
                        short partitionID,
                        AccessibleChargeType chargeType,
                        int ts,
                        boolean ft,
                        MessageHeader.TransactionMode tm,
                        java.lang.String reratingLockCode,
                        BatchChargeEventListener listener)
Requests the connected SAP CC Core Server system to charge in batch mode a sorted set of chargeable items for the specified user service ID (USID) and service ID (SID) and relating to an already identified subscription or charging contract. The system returns the resulting purchase orders that includes transactions computed according to the ts parameter.

Note

When dealing with subscriptions:

  • The SAP CC system filters the computed transactions according to the transaction templates assigned to the subscribed offer.
  • This operation may conflict with prerating operations. Do not use this operation there are some pending prerating operations.

Parameters:
parameters - The chronological list of ChargeParameters to charge in batch mode
subscriptionOrContractID - The unique ID of the selected subscription or charging contract
partitionID - The identifier of the rating partition
chargeType - The type of accessible charge depending on the scope of the batch charging operation: subscription or charging contract
ts - The transaction selection NONE_TRANSACTION, MASTER_TRANSACTION, ALL_TRANSACTION, ALL_TRANSACTION_AND_RECURRING
ft - Optional flag to enable the filtering of resulting transactions according to the transaction template configured in the subscribed offer (only relevant for subscriptions)
tm - The #@link TransactionMode transaction mode}
reratingLockCode - The rerating operation code
listener - The listener used to process the result of the batch charging operation

acquire

public void acquire(java.util.List<AcquisitionParameters> parameters,
                    AcquisitionListener listener)
             throws CommunicationFailureException,
                    ServerFailureException

Asks the server to asynchronously execute a list of acquisition operations.

Acquisition parameters contains a chargeable item and access information (service identifier, user identifier and consumption date). The acquisition consists in finding the charging contract targeted by the access specified, and then to export the chargeable item with additional information using the CIF, without performing rating or charging, for storage purposes.

The acquisition operations are executed in mode most, meaning that if an acquisition operation for a chargeable item fails, the following acquisition operations are executed anyway.

The listener specified as argument is called by the client with a list of acquisition results when the server responds. Each result corresponds to the acquisition parameters in the same position in the list of parameters specified as argument. If an acquisition operation fails, the corresponding result contains an exception which contains details on the error.

Note:

This operation is not allowed if the CIF of the rater instances does not contain a chargeable item processor.

Parameters:
parameters - a list of acquisition parameters to use for the acquisition
listener - a listener called by the client when the server returns the result of the operation
Throws:
CommunicationFailureException - if a communication failure occurs during the acquisition of the chargeable items
ServerFailureException - if an unexpected exception occurs during the acquisition of the chargeable items

informStartSubscriptionRerating

public void informStartSubscriptionRerating(java.lang.String reratingLockCode,
                                            long subscriptionId,
                                            java.util.Date restorationDate,
                                            short partitionId,
                                            AccessibleChargeType accessibleChargeType,
                                            BatchChargeEventListener listener)
                                     throws CommunicationFailureException

Starts the rerating of a subscription or charging contract.

This operation does the following:

Parameters:
reratingLockCode - the rerating operation code
subscriptionId - the unique identifier of the subscription or charging contract to rerate
restorationDate - the date from which the rerating will be performed
partitionId - the partition identifier of the subscription or charging contract to rerate
accessibleChargeType - the type of object on which the rerating is performed (subscription or charging contract)
listener - the listener which will be called when the operation is complete or fails
Throws:
CommunicationFailureException - if a communication failure occurs during the execution of the operation

informStartContractCollectionRerating

public void informStartContractCollectionRerating(java.lang.String reratingLockCode,
                                                  short partitionId,
                                                  java.util.Date restorationDate,
                                                  java.util.List<java.lang.Long> contractIdList,
                                                  BatchChargeEventListener listener)
                                           throws CommunicationFailureException

Starts the rerating of a collection of charging contracts.

This operation does the following:

Parameters:
reratingLockCode - the rerating operation code
partitionId - the partition identifier of the charging contracts to rerate
restorationDate - the date from which the rerating will be performed
contractIdList - the list of unique identifiers of the charging contracts to rerate
listener - the listener which will be called when the operation is complete or fails
Throws:
CommunicationFailureException - if a communication failure occurs during the execution of the operation

informUnlockSubscription

@Deprecated
public void informUnlockSubscription(java.lang.String reratingLockCode,
                                                long subscriptionId,
                                                java.util.Date maxConsumptionDate,
                                                java.util.Date activationDate,
                                                short partitionId,
                                                BatchChargeEventListener listener)
                              throws CommunicationFailureException
Deprecated. 

Stops the rerating of a subscription.

This operation does the following:

Parameters:
reratingLockCode - the rerating operation code
subscriptionId - the unique identifier of the subscription to rerate
maxConsumptionDate - the maximum consumption date of the CDRs rated during the rerating operation
activationDate - the date to be used to activate the subscription (if no date is specified, the activation is not performed)
partitionId - the partition identifier of the subscription to rerate
listener - the listener which will be called when the operation is complete or fails
Throws:
CommunicationFailureException - if a communication failure occurs during the execution of the operation

informStopSubscriptionRerating

public void informStopSubscriptionRerating(java.lang.String reratingLockCode,
                                           long subscriptionId,
                                           java.util.Date maxConsumptionDate,
                                           java.util.Date activationDate,
                                           short partitionId,
                                           AccessibleChargeType accessibleChargeType,
                                           BatchChargeEventListener listener)
                                    throws CommunicationFailureException

Stops the rerating of a subscription or charging contract.

This operation does the following:

Parameters:
reratingLockCode - the rerating operation code
subscriptionId - the unique identifier of the subscription or charging contract to rerate
maxConsumptionDate - the maximum consumption date of the CDRs rated during the rerating operation
activationDate - the date to be used to activate the subscription or charging contract (if no date is specified, the activation is not performed)
partitionId - the partition identifier of the subscription or charging contract to rerate
accessibleChargeType - the type of object on which the rerating is performed (subscription or charging contract)
listener - the listener which will be called when the operation is complete or fails
Throws:
CommunicationFailureException - if a communication failure occurs during the execution of the operation

pingReratingOperation

public boolean pingReratingOperation(java.lang.String reratingLockCode)
                              throws CommunicationFailureException
Checks if a rerating operation identified is running.

Parameters:
reratingLockCode - The rerating operation code to check
Returns:
true if the rerating operation is alive, false otherwise
Throws:
CommunicationFailureException - if a communication failure occurs during the execution of the operation

getRatingTopic

protected final com.highdeal.barbus.Topic getRatingTopic()
Gets the rating topic of this client used to send rating messages.

Returns:
The rating topic of this client

getTopicsToSubscribe

protected final com.highdeal.barbus.Topic[] getTopicsToSubscribe()
Returns an array of topics that client must subscribe to.

Returns:
An array of topics

updateHandler

protected void updateHandler(com.highdeal.barbus.ClientRequestHandler requestHandler)
Updates this client with a client request handler.

Parameters:
requestHandler - The client request handler

getDefaultServiceClientTuning

protected final ServiceClientTuning getDefaultServiceClientTuning()
Gets the default service tuning of this client useful to configure connections.

Returns:
The service tuning of this client

getSslContext

public javax.net.ssl.SSLContext getSslContext()
Returns the SSL context used with secure connections.

Specified by:
getSslContext in interface com.highdeal.barbus.ISSLContextProvider
Returns:
The SSL context used with secure connections

setSslContext

public void setSslContext(javax.net.ssl.SSLContext sslContext)
Sets the SSL context used with secure connections.

Parameters:
sslContext - The SSL context used with secure connections

connect

public final void connect(java.lang.String hostname,
                          int hostport)
                   throws java.io.IOException
Connects this charging client to the distant SAP CC Core Server system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape; No client timeout is specified.

This method is equivalent to: connect(hostname, hostport, -1, null);.

Parameters:
hostname - The name of the machine that hosts a dispatcher instance of the SAP CC Core Server system
hostport - The communication port on which the server system waits for requests on TCP/IP channel used by the Message TCP/IP technical interface
Throws:
java.io.IOException - if the client cannot connect to the distant SAP CC system (if the server system is not running, for example).

connect

public final void connect(java.lang.String hostname,
                          int hostport,
                          int timeout)
                   throws java.io.IOException
Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape; A client timeout must be specified.

This method is equivalent to: connect(hostname, hostport, null, timeout);.

Parameters:
hostname - The name of the machine that hosts a dispatcher instance of the SAP CC Core Server system
hostport - The port on which the server waits for requests
timeout - The timeout in milliseconds for each operation request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending the operation request.
Throws:
java.io.IOException - if the client cannot connect to the distant SAP CC system (if the server system is not running for example)

connect

public final void connect(java.lang.String hostname,
                          int hostport,
                          FoundLostRatingListener ratingListener)
                   throws java.io.IOException
Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape; No client timeout is specified.

Parameters:
hostname - The host name of the server
hostport - The port on which the server waits for request
ratingListener - The FoundLostRatingListener that will be notified each time a rating instance will be found or lost
Throws:
java.io.IOException - if the client cannot connect to the distant SAP CC system (if server is not running, for example)

connect

public final void connect(java.lang.String hostname,
                          int hostport,
                          java.lang.String bindAddress,
                          int timeout,
                          FoundLostRatingListener ratingListener)
                   throws java.io.IOException
Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape.

Parameters:
hostname - The host name of the server
hostport - The port on which the server waits for request
bindAddress - The address to bind to, can be null
timeout - The timeout in milliseconds for each request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending the request.
ratingListener - The FoundLostRatingListener that will be notified each time a rating instance will be found or lost.
Throws:
java.io.IOException - if the client cannot connect to the distant SAP CC system (if server is not running, for example)
java.lang.IllegalArgumentException - if hostname is null or if the port is out of range

connect

public final void connect(java.lang.String hostname,
                          int port,
                          java.lang.String bindAddress,
                          int timeout,
                          FoundLostRatingListener ratingListener,
                          ServiceClientTuning config)
                   throws java.io.IOException
Connects this message client with the Rating Instances.

First of all, this client contacts the boot instance defined by the arguments hostname and port to get its instance map. Then this client opens connections with all the rating instances defined in the instance map.

Parameters:
hostname - The host name of the server
port - The port on which the server waits for request
bindAddress - The address to bind to, can be null
timeout - The timeout in milliseconds for each request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending the request.
ratingListener - The FoundLostRatingListener that will be notified each time a rating instance will be found or lost
config - The service tuning configuration
Throws:
java.io.IOException - if the client cannot connect to the distant SAP CC system (if server is not running, for example).
java.lang.IllegalArgumentException - if hostname is null or if the port is out of range.

connect

public final void connect(java.lang.String hostname,
                          int port,
                          boolean secure,
                          java.lang.String bindAddress,
                          int timeout,
                          FoundLostRatingListener ratingListener,
                          ServiceClientTuning config)
                   throws java.io.IOException
Connects this message client with the Rating Instances.

First of all, this client contacts the boot instance defined by the arguments hostname and port to get its instance map. Then this client opens connections with all the rating instances defined in the instance map.

Parameters:
hostname - The host name of the server
port - The port on which the server waits for request
secure - true if the connection to the server is secure
bindAddress - The address to bind to, can be null
timeout - The timeout in milliseconds for each request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending request.
ratingListener - The FoundLostRatingListener that will be notified each time a Rating Instance will be found or lost.
config - The service tuning configuration
Throws:
java.io.IOException - if the client cannot connect to the server (if server is not running, for example).
java.lang.IllegalArgumentException - if hostname is null or if the port is out if range.

connect

public final void connect(java.lang.String systemName,
                          java.net.InetSocketAddress... bootDispatcherAddresses)
                   throws java.io.IOException
Connects this charging client to the distant SAP CC system that is the Online Charging System (OCS) or Offline Charging System (OFCS) in your SAP system landscape.

If systemName is not null, this charging client looks up for an SAP CC system named systemName during 2 seconds to discover some rating boot instances registered to the distant system. The charging client uses the IPv4 multicast address 234.5.6.7:8910. If some instances have been found, your charging client opens connections with the discovered rater instances. If the provided systemName is null or empty, or if preceding discovery has failed, this client will use bootDispatcherAddresses as a boot rating instance address list to connect to the SAP CC system. Again, the client opens connections with the discovered rater instances.

Prerequisites: At least systemName or bootDispatcherAddresses must be provided.

Parameters:
systemName - The SAP CC system name
bootDispatcherAddresses - A backup rating instance boot dispatcher list, provided only if for some reasons
Throws:
java.io.IOException - if the client cannot connect to the server (if server is not running, for example)
java.lang.IllegalArgumentException - if some arguments are badly provided

connect

public final void connect(java.lang.String systemName,
                          int lookupDuration,
                          java.net.InetSocketAddress discoveryAddress,
                          java.lang.String bindAddress,
                          int timeout,
                          FoundLostRatingListener ratingListener,
                          ServiceClientTuning config,
                          java.net.InetSocketAddress... bootDispatcherAddresses)
                   throws java.io.IOException
Connects this message client with the Rating Instances.

If systemName is not null, this client lookups for a rating system named systemName during lookupDuration milliseconds in order to discover some rating boot instances registered to the system. If some instances have been found, this client opens connections with the discovered rating instances. If provided systemName is null or empty, or if preceding discovery has failed, this client will use bootDispatcherAddresses as a boot rating instance address list to connect to the rating system. Again, the client opens connections with the discovered rating instances. At least systemName or bootDispatcherAddresses must be provided.

Parameters:
systemName - The SAP CC system name
lookupDuration - The system discovery lookup duration
discoveryAddress - The lookup discovery address, which must be an IPv4 multicast address
bindAddress - The address to bind to, can be null
timeout - The timeout in milliseconds for each request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending request.
ratingListener - The FoundLostRatingListener that will be notified each time a Rating Instance will be found or lost.
config - The service tuning configuration
bootDispatcherAddresses - A backup rating instance boot dispatcher list, provided only if for some reasons
Throws:
java.io.IOException - if the client cannot connect to the server (if server is not running, for example).
java.lang.IllegalArgumentException - if some arguments are badly provided

connect

public final void connect(java.lang.String systemName,
                          com.highdeal.barbus.InstanceAddress... bootDispatcherAddresses)
                   throws java.io.IOException
Connects this charging client with the Rating Instances.

If systemName is not null, this client lookups for a rating system named systemName during 2 seconds in order to discover some rating boot instances registered to the system. This client will use IPv4 multicast address 234.5.6.7:8910. If some instances have been found, this charging client opens connections with the discovered rating instances. If provided systemName is null or empty, or if preceding discovery has failed, this client will use bootDispatcherAddresses as a boot rating instance address list to connect to the rating system. Again, the client opens connections with the discovered rating instances.

At least systemName or bootDispatcherAddresses must be provided.

Parameters:
systemName - The SAP CC system name
bootDispatcherAddresses - a backup rating instance boot dispatcher list, provided only if for some reasons
Throws:
java.io.IOException - if the client cannot connect to the server (if server is not running, for example).
java.lang.IllegalArgumentException - if some arguments are badly provided

connect

public final void connect(java.lang.String systemName,
                          int lookupDuration,
                          java.net.InetSocketAddress discoveryAddress,
                          java.lang.String bindAddress,
                          int timeout,
                          FoundLostRatingListener ratingListener,
                          ServiceClientTuning config,
                          com.highdeal.barbus.InstanceAddress... bootDispatcherAddresses)
                   throws java.io.IOException
Connects this charging client with the SAP CC system by using the UDP discovery function.

If systemName is not null, this client looks up for a rating system named systemName during lookupDuration milliseconds in order to discover some rating boot instances registered to the system. If some instances have been found, this client opens connections with the discovered rating instances. If provided systemName is null or empty, or if preceding discovery has failed, this client will use bootDispatcherAddresses as a boot rating instance address list to connect to the rating system. Again, the client opens connections with the discovered rating instances. At least systemName or bootDispatcherAddresses must be provided.

Parameters:
systemName - The Rating system name
lookupDuration - The system discovery lookup duration
discoveryAddress - The lookup discovery address, which must be an IPv4 multicast address
bindAddress - The address to bind to, can be null
timeout - The timeout in milliseconds for each request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending the request.
ratingListener - The FoundLostRatingListener that will be notified each time a Rating Instance will be found or lost.
config - The service tuning configuration
bootDispatcherAddresses - A backup rating instance boot dispatcher list, provided only if for some reasons
Throws:
java.io.IOException - if the client cannot connect to the server (if server is not running, for example)
java.lang.IllegalArgumentException - if some arguments are badly provided

connect

public final void connect(InstanceMap imap,
                          java.lang.String bindAddress,
                          int timeout,
                          FoundLostRatingListener ratingListener,
                          ServiceClientTuning config)
                   throws java.io.IOException
Connects this charging client with the SAP CC system by using an instance map; A timeout must be specified.

Parameters:
imap - The instance map that describes the SAP CC system to connect to; Cannot be null.
bindAddress - The address to bind to, can be null
timeout - The timeout in milliseconds for each request (or -1 to wait indefinitely). If you use zero and acknowledgments are requested then a CommunicationFailureException will be thrown without sending the request.
ratingListener - The FoundLostRatingListener that will be notified each time a rater instance will be found or lost.
config - The service tuning configuration
Throws:
java.io.IOException - if the client cannot connect to the distant SAP CC system (if the server system is not running, for example).

isNoTimeout

public final boolean isNoTimeout()
Checks if this charging client handles timeout.

Returns:
true if the charging client handles timeout

setNoTimeout

public final void setNoTimeout(boolean noTimeout)
Sets that this charging client handles timeout.

Parameters:
noTimeout - true if your client handles timeout

setClientOpEventListener

public final void setClientOpEventListener(ClientOpEventTopic topic,
                                           ClientOpEventListener listener)
Sets the client operation event listener to the specified topics; It will be notified each time an event corresponding to the registered topics.
  • It is not possible to set null for the default topic.
  • If the listener is null, then the default listener is set (@link ClientOpEventTopic#DEFAULT).

Parameters:
topic - The topic to plug the client operation event listener to
listener - The client operation event listener

getClientOpEventListener

public final ClientOpEventListener getClientOpEventListener(ClientOpEventTopic topic)
Gets the client operation event listener used by the client for the specified topic. If the topic is null the default topic listener is returned ( getClientOpEventListener(ClientOpEventTopic.DEFAULT) ). There is always a default listener for a specific topic.

Parameters:
topic - The topic plugged the client operation event listener
Returns:
not null

getTimeout

public final int getTimeout()
Returns the client communication timeout in milliseconds for each request (or -1 to wait indefinitely).

Returns:
The timeout in milliseconds, or -1 if no timeout has been defined

isConnected

public final boolean isConnected()
Gets the connected connection status.

Returns:
true if the charging client is connected and false otherwise.

close

public final void close()
Closes the connection with the connected SAP CC system; This method allows to release all the resources attached (sockets and buffers) in the charging client.


setBootMode

@Deprecated
public final void setBootMode(BootMode mode)
Deprecated. 

Defines which API will be used to retrieve from the remote instances, the Instance Map needed for the connection. As BootMode.HTTP_BOOT_MODE and BootMode.HTTPS_BOOT_MODE are deprecated, this method is deprecated too.

Parameters:
mode - Is this method is deprecated and to use the Message TCP communication or is HTTP_BOOT_MODE to use the HTTP communication.

getBootMode

public final BootMode getBootMode()
Returns which API is used to retrieve from the remote instances, the Instance Map needed for the connection.

Returns:
MESSAGE_BOOT_MODE because BootMode.HTTP_BOOT_MODE and BootMode.HTTPS_BOOT_MODE are deprecated.

isValid

protected final boolean isValid(ChargeableItem ci,
                                InvalidItemListener listener)
Checks whether the specified chargeable item is valid or not; A call back listener has to be given to handle errors.

Parameters:
ci - The chargeable item to check
listener - The call back listener
Returns:
true if chargeable item is valid, false otherwise

asyncSend

protected final void asyncSend(com.highdeal.cnd.message.common.CollectorMessage m,
                               int maxTimeout,
                               ResponseHandlerWrapper handler,
                               com.highdeal.util.IEventListener eventListener)
FOR INTERNAL USE ONLY - Sends asynchronously the message m; When a response or an exception is received by the client application, it must back the response handler.

Parameters:
m - The message that must be sent asynchronously
maxTimeout - The maximum timeout before getting a communication failure
handler - The call back handler

beginSession

protected final void beginSession()
FOR INTERNAL USE ONLY - Begins a client session for this thread; All the messages are stored in memory and are not sent until the method sendSession() is called. If there is already a session, the session is sent by a call of the method sendSession() and a new session is created.


sendSession

protected final void sendSession()
FOR INTERNAL USE ONLY - All the messages between the last call of the method beginSession() and now for this thread are sent. The memory session is closed.


getEventListenerFromListener

protected com.highdeal.util.IEventListener getEventListenerFromListener(java.lang.Object listener)

setClusterName

@Deprecated
protected final void setClusterName(java.lang.String name)
Deprecated. Deprecated since version 2.0 of SAP CC

Sets the system name from the cluster name.

Parameters:
name - The system name

getClusterName

@Deprecated
protected final java.lang.String getClusterName()
Deprecated. Deprecated since version 2.0 of SAP CC Gets the system name.

Returns:
The system name

setHAEventListener

@Deprecated
public final void setHAEventListener(HAEventListener listener)
Deprecated. Deprecated since version 0.0 of SAP CC

Sets the HA listener dedicated to High Availability events; It will be notified each time the status of an instance of the connected SAP CC system has changed.

Parameters:
listener - The listener for High Availability events

setFoundLostRatingListener

protected final void setFoundLostRatingListener(FoundLostRatingListener ratingListener)
Sets the rating listener that will be notified each time a rater instance of the SAP CC system will be found or lost.

Parameters:
ratingListener - The rating listener
See Also:
getFoundLostRatingListener()

getFoundLostRatingListener

protected final FoundLostRatingListener getFoundLostRatingListener()
Returns the rating listener previously set.

Returns:
The rating listener previously set
See Also:
setFoundLostRatingListener(FoundLostRatingListener)

getClient

@Deprecated
protected final com.highdeal.barbus.RoundRobinClient getClient()
Deprecated. Deprecated since version 2.0 of SAP CC and should not be called anymore

Gets the inner client.

Returns:
inner client

notifyHeartBeat

protected final void notifyHeartBeat(com.highdeal.barbus.Client client)

register

protected final void register(com.highdeal.hmi.IConnectable connectable)

addListener

protected void addListener(AsyncRatingServiceClient.RegisterListener listener)

getSensorsManager

protected com.highdeal.cnd.message.sensor.SensorsManager getSensorsManager()

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)