If a profile specification defines a parameter set type, assign a base OID to it. The base OID forms part of the OIDs registered for that profile specification’s statistics. A profile specification can also have a MIB alias assigned to it.

The example below shows a Java annotation @ProfileStatsPresentation defining a base OID and a MIB alias for a profile specification.

@OcProfile(
    statsPresentation=@ProfileStatsPresentation(
        baseOid="@oid.products.sentinel.core.profile-specs.FeatureExecutionScriptProfile@",
        alias="FeatureExecutionScript"
    )
)

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

<oc-profile-spec-jar>
    <profile-spec id="FeatureExecutionScript">
        <stats-presentation alias="FeatureExecutionScript" base-oid="${oid.products.sentinel.core.profile-specs.FeatureExecutionScriptProfile}"/>
    </profile-spec>
</oc-profile-spec-jar>

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

Previous page Next page