A service requires a base OID assigned to it. This base OID forms part of the OIDs registered for that service’s statistics.

A service may also have a MIB alias assigned to it. The MIB alias of each deployed service must be unique among all deployed services.

The example below defines a base OID and a MIB alias for the SHCM service with the Java annotation @ServiceStatsPresentation:

@OcSleeService(
    statsPresentation=@ServiceStatsPresentation(alias="SHCM", baseOid="@oid.products.sentinel.shcm.services.sh-cache@")
)

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

<oc-service-xml>
    <service id="SHCM">
        <stats-presentation alias="SHCM" base-oid="${oid.products.sentinel.shcm.services.sh-cache}"/>
    </service>
</oc-service-xml>

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

Previous page Next page