Package com.highdeal.admin.hci
Java package provides you with the classes for
implementing the Administration Services from the HCI technical interface of
SAP CC; With this package you can develop a client
application able to manage the activation process, the cleanup process, system parameters, authorizations and roles for SAP CC users, troubleshooting operations.
| Technical Interface | HCI (HTTP Communication Interface) |
| Communication Protocol | XML over HTTP (or HTTPS) |
| Communication Mode | Asynchronous, synchronous |
| Public Endpoints | http(s)://<DISPATCHER_INSTANCE_HOST>:<DISPATCHER_HCI_PORT_NUMBER>/admin/
|
| API Technology |
|
| SAP CC Java Library | core-admin.jar
|
| Security | Yes (see the SAP CC Security Guide) |
Note
This Java package is part of
the HCI technical interface provided
by SAP Convergent Charging. See the main com.highdeal.hci package
for more information.
Services and Operations
SAP Convergent Charging delivers some administration services that you can implement in your SAP system landscape:
Business Services
Depending on your business requirements, you can implement the following operations in your client application to enable your end-to-end business scenarios:
| Subareas | Service Operations |
|---|---|
Billing Processes Synchronization
|
|
| Performance Optimization |
Recommendation
Refer to the SAP CC Application Help for more information about the convergent charging and refilling services.
Technical Services
Depending on your business requirements, you can implement the following operations in your client application:
| Subareas | Service Operations |
|---|---|
Consultation of SAP CC Users: Authorization, Role
|
|
| Management of SAP CC Users | |
| Management of the SAP CC System | |
| Auditing the SAP CC System | |
| Troubleshooting |
|
Implementation in Your Client Application
Java APIs
Your client application must send the message requests to the administrative URL of the dispatcher instances in the running SAP CC system.
You must implement an AdminMessageSender.
Consider the following Java packages:
com.highdeal.hcicom.highdeal.hci.httpand itsmethodHttpMessageSenderFactory.createAdminMessageSender(java.lang.String)
Example
HttpMessageSenderFactory factory = new HttpMessageSenderFactory();
URL dispatcher = new URL("http://HOST:PORT/admin/");
factory.init(dispatcher);
MessageSender sender = factory.createAdminMessageSender(); // For admin operations that have to be executed on a dispatcher.
// Or
sender = factory.createAdminMessageSender("rater#1"); // For admin operations that have to be executed on a dedicated instance.
// Take care that the admin operation is available on the targeted instance by using the static method AdminXMLMapping.getInstanceTypesByOperation(String opClassName)
...
// Create a MessageEnvelope and add admin operation(s) in the message body.
MessageEnvelope envelope;
...
MessageEnvelope result = sender.send(envelope);
...
Recommendation
Most of the APIs in this Java package are implemented by
the SAP CC Admin+ user interface.
To facilitate your development, you can view the messages exchanged between this user interface and the SAP CC system: use the
debug command.
Communications
You use the HTTP Communication Interface (HCI) technical interface provided by SAP Convergent Charging.
Error and Exception Handling
Consider the exceptions depending on the service operations expected by your business requirements. Design and develop the appropriate exception handling.
-
ClassDescriptionThis mass operation allows triggering the Activation process on all the
subscriptionsin master data stored in SAP CC; It contains a reference date used to compute the periodic and one-off fees and to update all these subscriptions.This class represents the result of theActivate All operationor theActivate Charging Contract operation; It contains an overall execution status and the total count of processed subscriptions or provider contracts according to the operation requested.This class implements the targeted operation and it enables to target the active updater.TheJava classrepresents a system parameter in the connected SAP CC system.ThisJava classdefines the mapping between XML tags and marshallable Java classes.ThisJava classrepresents an authorization that can be assigned to aroleforSAP CC users; It contains the permissions for executable activities.Exception thrown when trying to access the value of a parameter that does not exist.This mass operation allows you to trigger the Activation process on all the charging contracts (Concept: provider contracts) to compute the periodic and one-off fees; It contains a reference date used to compute the periodic and one-off fees and to update the contracts.This operation allows you to trigger the cleanup of all subscriptions and provider contracts that are involved in session-based charging operations or in prerating operations (deprecated).This class represents the operation result of theCleanup All operation; It includes an overall execution status.ThisJava classrepresents information about a charging client application or system that is connected to the SAP CC Core Server system; Implement theList Clients operationto handle this information in your client application.This class implement the methods for the description of an unknown parameter exception.FOR INTERNAL USE ONLY - This class represents a customer management area which is a pair of an SAP ERP and an SAP CRM system; The area includes a list of JCo destinations in charge of managing the customer data.FOR INTERNAL USE ONLY - This class represents a list ofcustomer management areasdeclared in the SAP CC system.FOR INTERNAL USE ONLY - This class defines the mapping between XML tags and theCustomer Management Area List classes.This operation allows you to delete a file to bulk load from the persistent system.This operation result is returned when a bulk loading operation has successfully ended.This operation allows you to delete a user session from the list of running user sessions.
This operation can be used to delete a user session linked to a tool (user interface) that has been terminated abnormally and could not disconnect properly from the server system, thus preventing a new session to be opened with the sameSAP CC userand tool.
The identifier of the user session to delete must be specified in thesessionIdattribute of the operation.
If the session identifier of the user session is not set, or if the session identifier does not correspond to a running user session, anInvalidDeletionExceptionwith the reasondoes_not_existwill be thrown.This operation result is sent in response to aDelete User Session operationwhen the user session has been successfully deleted.This operation allows disconnecting the charging client connected to the SAP CC system.This class represents the response of aDisconnect Client operation;Exception thrown when the activation operation is invoked with invalid arguments.Exception thrown when an error occurs while retrieving the statistics of a client connected to the SAP CC Core Server system (see theFetch Client Statistics operation).This operation allows retrieving statistics about a charging client application connected to the SAP CC Core Server system; You specify the host and the communication port previously identified with theList Clients operation.This result contains statistics related to a charging client connected to the SAP CC system.ThisJava classrepresents a file that was fetched by a rater instance and that is ready to be bulk loaded to another system.Thisenumerationlists all the instance types from which the file is created (rater, bulkloader).This operation allows you to activate of alerts on expired subscriptions.This class represents the result of theFire Expiration Alerts operation.FOR INTERNAL USE ONLY - This operation allows you to retrieve the list of thecustomer management areas.FOR INTERNAL USE ONLY - This operation contains the list of thecustomer management areasdeclared in SAP CC; Other areas can exist, but they are not defined in the SAP CC system.This operation allows you to get the list of files that are not yet bulk loaded.This operation result is returned when a bulk loading operation has successfully ended.This operation allows you to get the currentinstance mapof the connected SAP CC system.This class represents the result of theGet Instance Map operation; It contains aninstance map.FOR INTERNAL USE ONLY - This operation allows you to retrieve the list of the JCo destinations configured in the connected SAP CC system.FOR INTERNAL USE ONLY - This result contains the list of the configured JCo destinations.This operation allows you to retrieve the 50 latest logs and traces recorded in files by the instance of the SAP CC Core Server system that receives this operation request.Thisenumerationlists all the identifiers of the fileset that contains the log and trace entries to retrieve.This class represents the result of theGet Logs and Traces operation; It contains aof the latest entries of the logs and traces of the responding instance of the SAP CC system.VectorThis operation allows you to retrieve the list of theavailable administration parametersin the connected SAP CC system.This class represents the result of theGet Parameters operation; It contains aofVectorparameters of the connected SAP CC system.This operation allows you to retrieve the value of aparameterof the connected SAP CC system.ThisJava classrepresents the result of theGet Parameter Value operation; It contains the information relating to the specifiedparameter.This operation allows you to query thestatusof the instance of the SAP CC system that receives the request.This class represents the result of theGet Status operation; It contains astatusfor the specified server instance.This operation allows you to retrieve thestatuses (on, off, waiting) of each instancein the connected SAP CC system; The operation result is available inan overall system status.This class represents the result of theGet System Status operation; It containsan overall system statuswith the running status (starting, waiting, on, stopping, off) of each SAP CC system instance.This operation allows you to get the dump of all threads of an instance.
The thread dump done by the JVM provides kernel information that the API doesn't, like: the kernel thread priority "prio" the kernel thread identifier "tid" the lock information
So, the dump in the result of this operation: "prio" is the thread priority returned by the API "tid" is the hash of the thread (hexa) the lock information aren't returned The value of "tid" isn't the value returned to the methodThread.getId()because when a thread is terminated, this identifier may be reused.This class represents the result of theGet Thread Dump operation.This class implements the targeted operation and enables to define several targets with instance type and/or instance id.This class implements the targeted operation and enables to define several targets with instance type.Exception thrown when trying to access the value of a parameter that does not exist.ThisJava classrepresents a classification for the instances in a deployed SAP CC Core Server system; This classification identifies a system instance by aninstance typeassociated to a number that identifies the instances of the same type.ThisJava interfacerepresents the interface of the instance information; Consider theInstanceInfoImplclass.This class represents an instance information that includes the communication settings of a server instance of the connected SAP CC Core Server system; It contains the configuration of the different technical interfaces that are enabled.ThisJava classrepresents the current instance map of an SAP CC system; It is a named set ofInstanceInfodescribing all the instances working for the same SAP CC Core Server system.This class represents an instance property that is the between a key instance property and its value.ThisJava classrepresents an instance status that describes the running status (on, off, waiting) of a specific instance of the SAP CC system; It contains a list ofinstance properties.Thisenumerationlists the predefined types of instances that form an SAP CC system (Core Server, BART Server); The type information may be usedto identify a particular instancein an SAP CC system.Exception thrown when an error occurs.Thisenumerationlists the possible reasons for theinvalid instance exception.Exception thrown when trying to set the value of a parameter to a value that is not valid for this parameter; The exception contains the current parameter value.This operation allows retrieving the list of charging clients connected to the SAP CC system.This class represents the response of aList Clients operation; It contains the list ofcharging clientsconnected to the SAP CC Core Server system.FOR INTERNAL USE ONLY - This operation allows to maintain the list ofcustomer management areasdeclared in the connected SAP CC system.FOR INTERNAL USE ONLY - This class represents the result of theMaintain Customer Management Area List Operation; It contains the list ofcustomer management areasconfigured in the connected SAP CC system.This class implements the targeted operation and it enables to target the master dispatcher instance in the connected SAP CC Core Server system.Exception thrown when trying to access the value of a parameter that does not exist.Exception thrown when trying to access the value of a parameter that does not exist.Thisabstract Java classfacilitates the management of operations dedicated toSAP CC system parameters; This class serves as a base Java class.Thisabstract Java classfacilitates the handling of the operation results relating to the management of system parameters in the connected SAP CC system;This operation allows you to check if the Administration Service of an instance in the SAP CC Core Server system is alive.This class represents the result of thePing operation; It contains a status set totrueif the distant instance of the SAP CC system is alive,falseotherwise.FOR INTERNAL USE ONLY - See the Admin+ user interface; This mass operation allows to trigger the Purge Allowances process on all the charging contracts (Concept: provider contracts) in customer master data of a service provider; It contains a date which is used as from date reference to remove allowances.FOR INTERNAL USE ONLY - This class represents the result of thePurge Allowances operation; It contains an overall execution status (seePurgeAllowancesResult.PERFORMED_STATUS, #INCOMPLETE_STATUS, or #STOPPED_STATUS) and the total count of processed provider contracts.FOR INTERNAL USE ONLY - See the Admin+ user interface. This operation allows to delete sets of file metadata linked to a root data file whose purge reference date is lower than the specified reference date.FOR INTERNAL USE ONLY - See the Admin+ user interface. This class represents the result of thePurge File Metadata operation.This operation allows you to purge the old idempotency records in the back-end database system.This class represents the result of thePurge Idempotency Storage operation.This operation is used to purge the Job Record records in the database.This class represents the result of thePurge Job Record operation.This operation is used to switch offer caches on all the rater and bulkloader instances (flip, flap mechanism).This class represents the result of theRefresh Rater Instances operation.This operation is used to refresh the shared allowance cache on all the rater instances.This class represents the result of theRefresh Shared Allowance Cache operation.This operation is used to switch tax cache on all the rater and updater instances (flip, flap mechanism).This class represents the result of theRefresh Tax Cache operation.This operation allows you to update Taxer transaction/service type list in the instances of the connected SAP CC system.This class represents the result of theRefresh Rater Instance operation.This operation allows you to refresh the VAT rules cache on all the rater and updater instances in the connected SAP CC system.This class represents the result of theRefresh VAT Rules Cache operation.This operation allows you to reset the data caches of the connected SAP CC Core Server system; It can reset L2 cache, access cache, or both.This class represents the result of theReset Caches operation.This operation allows you to reset an administration parameter to its default value.This class represents the result of theReset Parameter Value operation; It is theparameter modelwhich has been reset.Thisenumerationlists the predefined roles for theSAP CC users.ThisJava classrepresents a role that can be assigned to theSAP CC users; It contains a set ofauthorizationsto allow or not the execution of certainoperationsby the connected SAP CC system.Thisenumerationlists the scopes (PERSISTENT or MEMORY) associated to the values ofan SAP CC system parameter.This operation allows you to list the user sessions currently running on the server system.
This operation can be used to find a particular user session and retrieve its identifier, so that it can be deleted using theDelete User Session operation.This class represents the result ofSearch User Session operationthat contains the list ofuser sessionscurrently running in the connected SAP CC system.ThisJava classrepresents a user session.Thisabstract Java classserves as a base class for the server system management operations; Consider also theknown subclassesthat extend this Java class:ServerShutdownOp.Thisabstract Java classrepresents the result of theServer Management operation; Consider theknown Java subclassesthat extend this Java class:ServerShutdownResult.This operation allows you to stop a specific instance in the connected SAP CC Core Server system.This class represents the result of theServer Shutdown operation; It contains the acknowledge of the SAP CC system.Thisenumerationlists the possible statuses of an instance in an SAP CC system in the system landscape.ThisJava classrepresents the service information.ThisJava classdefines the URL of an SAP CC service.ThisJava classThisenumerationlists all the types of service availability: MANDATORY, OPTIONAL, or FORBIDDEN.Thisenumerationdefines the security information: off, one way, or dual.Thisenumerationlists all the types of communication services.This operation allows to enable or disable the maintenance mode for the Core Server system.This result corresponds to theSetMaintenanceModeOpoperation.This operation allows you to set up an SAP CC system parameter to a specified value.This class represents the result of theSet Parameter Value operation; This result is theparameter modelwhose value has been set.This operation allows to set or unset the standby status for a set of Core Server instances.This result corresponds to theSetStandbyStatusOpoperation.This operation allows you to manually reconnect or disconnect an SQL connection of the targeted system instance(s).Thisenumerationlists the possible back-end database of SAP CC: Core Database, Session Database.This class represents the result of theSQL Connection Admin operation.This operation is used to manually refresh all SQL connections of the targeted system instance(s).This class represents the result of theSQL Connections Refresh operation.Exception thrown when an error occurs during the execution of theSetStandbyStatusOpoperation.This enumeration lists the possible reasons forStandbyException.This model represents an instance identifier and the related standby status.This operation allows you to force the start of the cache warm-up process in the instances of the connected SAP CC Core Server system.This class represents the result of theStart Cache Warm-Up operation.ThisJava interfacedefines a listener plugin.ThisJava classrepresents the status of an instance in the SAP CC system.This operation allows you to stop a running activation process on subscriptions originally triggered by using theActivate All operation.This class represents the result of theStop Activationor of theStop Charging Contract Activationoperations.This operation allows you to stop a running activation process with charging contracts triggered with theCharging Contract Activate operation.This operation allows you to stop a running cleanup.This class represents the result of theStop Cleanup operation.FOR INTERNAL USE ONLY - See the Admin+ user interface; This operation stops a running purge allowances process with charging contracts triggered with thePurge Allowances operation.FOR INTERNAL USE ONLY - This class represents the result of theStop Purge Allowances operation; It contains an overall execution status and the total count of checked provider contracts.This operation allows releasing all the output data files resulting from the business processes and to trigger the bulk loading process.This class represents the result of theSwitch DB File Directories operation.ThisJava classrepresents the system instance in an SAP CC system.ThisJava classrepresents the system status that is a list ofstatuses for each instance in the connected SAP CC system.Decorator to declare targets for an admin operation.This class implements the targeted operation and enables to define several targets with instance id.Exception thrown when trying to access the value of a system parameter that does not exist when using theGet Parameter Value operation.