-
- All Superinterfaces:
MOFactory
- All Known Implementing Classes:
DefaultMOFactory,SimMOFactory
public interface LinkedMOFactory extends MOFactory
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetLink(org.snmp4j.smi.OID oid)Gets the link for the given object ID or any sub-OID prefix thereof.voidsetLink(org.snmp4j.smi.OID oid, Object instrumentationHelperObject)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
-
-
-
-
Method Detail
-
setLink
void setLink(org.snmp4j.smi.OID oid, Object instrumentationHelperObject)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(OID oid)
-
getLink
Object getLink(org.snmp4j.smi.OID oid)
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
nullif no such link exists.
-
-