Class SamplePostRatingMidSessionExtension
java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SamplePostRatingMidSessionExtension
- All Implemented Interfaces:
PostRatingMidSessionExtension
,oracle.communication.brm.charging.extensions.framework.ExtensionCallback<PostRatingMidSessionExtensionContext>
public class SamplePostRatingMidSessionExtension
extends Object
implements PostRatingMidSessionExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(PostRatingMidSessionExtensionContext extensionContext) This execute method is specific to a PreRatingExtension hook.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
-
SamplePostRatingMidSessionExtension
public SamplePostRatingMidSessionExtension()
-
-
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<PostRatingMidSessionExtensionContext>
- Specified by:
initialize
in interfacePostRatingMidSessionExtension
- Parameters:
extensionContext
- the context which exposes objects that are needed at initialization time.- Throws:
ExtensionException
- if a non-recoverable error occurs during initialization.
-
execute
public void execute(PostRatingMidSessionExtensionContext extensionContext) throws ExtensionException Description copied from interface:PostRatingMidSessionExtension
This execute method is specific to a PreRatingExtension hook. Operator should implement this method to perform their custom logic that is specific to their Pret OCS Rating needs.- Specified by:
execute
in interfacePostRatingMidSessionExtension
- Parameters:
extensionContext
- context information pertaining to Pre OCS Rating.- Throws:
ExtensionException
- throw and exception if a non-recoverable error occurs. This exception will be logged and a EXTENSION_ERROR ServiceEvent will be set into the UsageResponse.
-
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<PostRatingMidSessionExtensionContext>
- Specified by:
shutdown
in interfacePostRatingMidSessionExtension
- Parameters:
extensionContext
- the context which exposes objects that are needed at shutdown time.- Throws:
ExtensionException
- if a non-recoverable error occurs during shutdown.
-