If a parameter set is used for statistics, assign an OID suffix to it.
The following example shows a Java annotation, which specifies a non-singleton parameter set type’s statistic presentation of three parameter sets for a resource adaptor.
@OcResourceAdaptor(
statsPresentation=@ResourceAdaptorStatsPresentation( // this can also be @SBBStatsPresentation, @ProfileStatsPresentation for their corresponding component types.
alias = "OCSIP",
baseOid = "@oid.products.resource-adaptors.sip@",
usageParametersInterfaceTypeOidMappings = {
@UsageParametersInterfaceTypeOidMapping(interfaceTypeName="TransportStats", oidSuffix="@oid.products.resource-adaptors.sip.parameter-set-types.TransportStats@",
parameterSetNameMappings={
@UsageParameterSetNameOidMapping(name="Transport", oidSuffix="@oid.products.resource-adaptors.sip.parameter-set-types.TransportStats.parameter-sets.Transport@"),
@UsageParameterSetNameOidMapping(name="Transport.UDP", oidSuffix="@oid.products.resource-adaptors.sip.parameter-set-types.TransportStats.parameter-sets.TransportUDP@"),
@UsageParameterSetNameOidMapping(name="Transport.UDP", oidSuffix="@oid.products.resource-adaptors.sip.parameter-set-types.TransportStats.parameter-sets.TransportTCP@")
}
)
)
)
From the annotation in this example, the compile-time annotation processor generates the corresponding entries in an extension deployment descriptor, as shown below:
<oc-resource-adaptor-jar>
<resource-adaptor id="OCSIP">
<stats-presentation alias="OCSIP" base-oid="${oid.products.resource-adaptors.sip}">
<usage-parameters-interface-type-oid-mapping usage-parameters-interface-type-name="TransportStats" oid-suffix="${oid.products.resource-adaptors.sip.parameter-set-types.TransportStats}">
<usage-parameter-set-name-oid-mapping name="Transport" oid-suffix="${oid.products.resource-adaptors.sip.parameter-set-types.TransportStats.parameter-sets.Transport}"/>
<usage-parameter-set-name-oid-mapping name="Transport.UDP" oid-suffix="${oid.products.resource-adaptors.sip.parameter-set-types.TransportStats.parameter-sets.TransportUDP}"/>
<usage-parameter-set-name-oid-mapping name="Transport.TCP" oid-suffix="${oid.products.resource-adaptors.sip.parameter-set-types.TransportStats.parameter-sets.TransportTCP}"/>
</usage-parameters-interface-type-oid-mapping>
</stats-presentation>
</resource-adaptor>
</oc-resource-adaptor-jar>
The Java annotation and the extension deployment descriptor above are equivalent.