Package org.snmp4j.agent.mo
Interface LinkedMOFactory
- All Superinterfaces:
MOFactory
,MOTableRowFactory
- All Known Implementing Classes:
DefaultMOFactory
,SimMOFactory
The LinkedMOFactory extends the basic MOFactory interface by means
for associating managed objects with instrumentation helper objects.
For example, could the REFERENCE clause of a MIB module contain a machine
readable description of the value source (URI) of a particular managed
object. This factory could then provide that reference to the managed objects
created by this factory.
- Version:
- 1.2
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptiongetLink
(org.snmp4j.smi.OID oid) Gets the link for the given object ID or any sub-OID prefix thereof.void
Set a link between the supplied object ID of a managed object class (or a set of managed object classes if the OID refers to a MIB sub-tree) to the given helper object.Methods inherited from interface org.snmp4j.agent.mo.MOFactory
addTextualConvention, createAccess, createColumn, createColumn, createColumn, createColumn, createIndex, createIndex, createScalar, createScalar, createSubIndex, createSubIndex, createTable, createTable, createTableModel, createTableRelation, getSysUpTime, getTextualConvention, removeTextualConvention
Methods inherited from interface org.snmp4j.agent.mo.MOTableRowFactory
createRow, freeRow
-
Method Details
-
setLink
Set a link between the supplied object ID of a managed object class (or a set of managed object classes if the OID refers to a MIB sub-tree) to the given helper object.- Parameters:
oid
- an OID of a managed object class or sub-tree.instrumentationHelperObject
- an object that helps the factory or the objects created on its behalf to instrument the those objects.- See Also:
-
getLink
Gets the link for the given object ID or any sub-OID prefix thereof.- Parameters:
oid
- the oid of the managed object class (prefix) for which to returned the linked instrumentation helper class.- Returns:
- an instrumentation helper object (for example an URI) or
null
if no such link exists.
-