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.jar
. It has a single dependency, on the Google Protobuf library. Protobuf deployable unit protobuf-library.du.jar
is delivered with the CDR resource adaptor package.
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. The basic procedure is:
-
Deploy the Protobuf library.
-
Deploy the CDR resource adaptor.
-
Create a CDR resource adaptor entity.
-
Bind the CDR resource adaptor entity to a link name expected by the service.
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 Protobuf definition The Protobuf definition can use tools and languages supported by the Protobuf project.
|
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 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. |