If a resource adaptor defines a parameter set type, assign a base OID to it. This base OID forms part of the OIDs registered for that resource adaptor’s statistics. A resource adaptor may also have a MIB alias assigned to it.

The following example shows the Java annotation @ResourceAdaptorStatsPresentation defining a base OID and a MIB alias for a resource adaptor.

@OcResourceAdaptor(
    statsPresentation=@ResourceAdaptorStatsPresentation(
        alias="CQLRA",
        baseOid="@oid.products.resource-adaptors.cassandra-cql@")
)

From the annotation in this example, the compile-time annotation processor generates the corresponding entry in an extension deployment descriptor, as shown below:

<oc-resource-adaptor-jar>
    <resource-adaptor id="CQLRA">
        <stats-presentation alias="CQLRA" base-oid="${oid.products.resource-adaptors.cassandra-cql}"/>
    </resource-adaptor>
</oc-resource-adaptor-jar>

The Java annotation and the extension deployment descriptor above are equivalent.

Previous page Next page