org.snmp4j.agent.mo
Interface LinkedMOFactory
- All Superinterfaces:
- MOFactory, MOTableRowFactory
- 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 |
java.lang.Object |
getLink(org.snmp4j.smi.OID oid)
Gets the link for the given object ID or any sub-OID prefix thereof. |
void |
setLink(org.snmp4j.smi.OID oid,
java.lang.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, getTextualConvention, removeTextualConvention |
setLink
void setLink(org.snmp4j.smi.OID oid,
java.lang.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
java.lang.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
null if no such link exists.
Copyright © 2011 SNMP4J.org. All Rights Reserved.