Class SampleRatingExtension
java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SampleRatingExtension
- All Implemented Interfaces:
RatingExtension
,oracle.communication.brm.charging.extensions.framework.ExtensionCallback<RatingExtensionContext>
Sample code for a RatingExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handlePostApplyAlteration
(RatingExtensionContext extensionContext) This extension point is executed by the OCS immediately following the "alteration" calculation for a usage request.void
handlePostApplyCharge
(RatingExtensionContext extensionContext) This extension point is executed by the OCS immediately following the "charge" calculation for a usage request.void
handlePostApplyDistribution
(RatingExtensionContext extensionContext) This extension point is executed by the OCS immediately following the "distribution" calculation for a usage request.void
handlePostApplyTaxation
(RatingExtensionContext extensionContext) This extension point is executed by the OCS immediately following the "taxation" calculation for a usage request.void
initialize
(ExtensionContext extensionContext) method is invoked once at ECS Node startup time to allow integrators a spot to populate private data members that are required by the extension callback.void
shutdown
(ExtensionContext extensionContext) method is invoked once at ECS Node shutdown time to allow integrators a spot to release any resources that were acquired by the Extension.
-
Constructor Details
-
SampleRatingExtension
public SampleRatingExtension()
-
-
Method Details
-
initialize
Description copied from interface:oracle.communication.brm.charging.extensions.framework.ExtensionCallback
method is invoked once at ECS Node startup time to allow integrators a spot to populate private data members that are required by the extension callback.- Specified by:
initialize
in interfaceoracle.communication.brm.charging.extensions.framework.ExtensionCallback<RatingExtensionContext>
- Specified by:
initialize
in interfaceRatingExtension
- Parameters:
extensionContext
- the context which exposes objects that are needed at initialization time.- Throws:
ExtensionException
- if a non-recoverable error occurs during initialization.
-
handlePostApplyCharge
public void handlePostApplyCharge(RatingExtensionContext extensionContext) throws ExtensionException Description copied from interface:RatingExtension
This extension point is executed by the OCS immediately following the "charge" calculation for a usage request. Operators can implement this method to effect the "charge" calculation.- Specified by:
handlePostApplyCharge
in interfaceRatingExtension
- Parameters:
extensionContext
- the available context data that can be accessed during the post apply charge rating flow.- Throws:
ExtensionException
- if a non-recoverable error occurs during extension execution.
-
handlePostApplyAlteration
public void handlePostApplyAlteration(RatingExtensionContext extensionContext) throws ExtensionException Description copied from interface:RatingExtension
This extension point is executed by the OCS immediately following the "alteration" calculation for a usage request. Operators can implement this method to effect the "alteration" calculation.- Specified by:
handlePostApplyAlteration
in interfaceRatingExtension
- Parameters:
extensionContext
- the available context data that can be accessed during the post apply alteration rating flow.- Throws:
ExtensionException
- if a non-recoverable error occurs during extension execution.
-
handlePostApplyDistribution
public void handlePostApplyDistribution(RatingExtensionContext extensionContext) throws ExtensionException Description copied from interface:RatingExtension
This extension point is executed by the OCS immediately following the "distribution" calculation for a usage request. Operators can implement this method to effect the "distribution" calculation.- Specified by:
handlePostApplyDistribution
in interfaceRatingExtension
- Parameters:
extensionContext
- the available context data that can be accessed during the post apply distribution rating flow.- Throws:
ExtensionException
- if a non-recoverable error occurs during extension execution.
-
handlePostApplyTaxation
public void handlePostApplyTaxation(RatingExtensionContext extensionContext) throws ExtensionException Description copied from interface:RatingExtension
This extension point is executed by the OCS immediately following the "taxation" calculation for a usage request. Operators can implement this method to effect the "taxation" calculation.- Specified by:
handlePostApplyTaxation
in interfaceRatingExtension
- Parameters:
extensionContext
- the available context data that can be accessed during the post apply taxation rating flow.- Throws:
ExtensionException
- if a non-recoverable error occurs during extension execution.
-
shutdown
Description copied from interface:oracle.communication.brm.charging.extensions.framework.ExtensionCallback
method is invoked once at ECS Node shutdown time to allow integrators a spot to release any resources that were acquired by the Extension.- Specified by:
shutdown
in interfaceoracle.communication.brm.charging.extensions.framework.ExtensionCallback<RatingExtensionContext>
- Specified by:
shutdown
in interfaceRatingExtension
- Parameters:
extensionContext
- the context which exposes objects that are needed at shutdown time.- Throws:
ExtensionException
- if a non-recoverable error occurs during shutdown.
-