Below are overviews of how to deploy the CDR Resource Adaptor, its output format, and how to force immediate deactivation of a CDR resource adaptor entity.
Deploying the CDR Resource Adaptor
The CDR Resource Adaptor comes packaged in a deployable unit, cdr-ra-du-VERSION.jar
.
The CDR resource adaptor type is packaged in cdr-ratype-VERSION.du.jar
The resource adaptor has two dependencies, both delivered as part of distribution package, in the du
subdirectory:
-
the CDR Stream Configuration profile, with profile deployable unit
cdr-profile-spec-VERSION.du.jar
-
the Google Protocol Buffers library, with protobuf deployable unit
protobuf-library-VERSION.du.jar
… where VERSION
represents the version of the CDR resource adaptor.
The CDR resource adaptor does not come with a deployment script. Instead, an example service, distributed as part of the CDR resource adaptor package, includes a script that installs and configures the resource adaptor for that example. Developers and administrators should refer to the example script for the exact steps and adjust them to their own needs.
Basic deployment procedure
Deploying the CDR Resource Adaptor includes these steps:
|
Output format
A CDR resource adaptor entity can be configured to produce either binary or text CDR files.
Binary output format | Text output format | ||
---|---|---|---|
Defined in the Google Protocol Buffers definition
|
The format of a text CDR file consists of:
All lines end with the platform-default line ending (LF The format of an individual CDR is controlled by the calling service. |
Immediate deactivation of a resource adaptor entity
When deactivated, a CDR resource adaptor entity remains in the STOPPING
state until all pending CDRs are written and
the CDR files are completed and archived.
If you need a faster shutdown, you can administratively remove the "CDR deactivation guard activities" (listed using
the findactivities
rhino-console command), to force the resource adaptor to transition to the INACTIVE
state
immediately.
If the node exits for any reason before the write/archive process completes, partial CDR files needing manual recovery may be left behind. |