|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.snmpadaptor4j.core.SystemSnmpMib
public class SystemSnmpMib
Object representing the Management Information Base (MIB) for system attributes.
| Nested Class Summary | |
|---|---|
protected class |
SystemSnmpMib.ExternalNode
External node of the SNMP Management Information Base (MIB). |
protected class |
SystemSnmpMib.SysObjectIDExternalNode
External node of the SNMP Management Information Base (MIB) for system.sysObjectID attribute. |
| Constructor Summary | |
|---|---|
|
SystemSnmpMib(SnmpAppContext mainAppContext,
Map<ClassLoader,SnmpAppContext> appContextMap,
SystemInfo systemInfo)
Constructor. |
protected |
SystemSnmpMib(SystemInfo systemInfo)
Constructor (only used by tests). |
| Method Summary | |
|---|---|
AttributeAccessor |
find(SnmpOid oid)
Finds a AttributeAccessor by its OID. |
protected Class<?> |
getJmxDataType(int index)
Returns the data type of JMX attribute. |
protected SortedMap<SnmpOid,AttributeAccessor> |
getMib()
Returns the Management Information Base (MIB). |
protected SnmpDataType |
getSnmpDataType(int index)
Returns the SNMP data type of attribute. |
Object |
getValue(int index)
Returns the value of attribute. |
void |
initSysObjectIDSet()
Initializes the set of system.sysObjectID values with their OID. |
AttributeAccessor |
next(SnmpOid oid)
Finds the next AttributeAccessor from an OID |
SortedMap<SnmpOid,AttributeAccessor> |
nextSet(SnmpOid oid)
Finds the list of next AttributeAccessor from an OID |
protected void |
putExternalNode(int index,
SnmpOid oid)
Puts an external node of an attribute in the MIB. |
protected void |
putExternalNode(SnmpOid oid,
SnmpOid value)
Puts an external node of an attribute in the MIB. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SystemSnmpMib(SystemInfo systemInfo)
systemInfo - Informations on the system.
public SystemSnmpMib(SnmpAppContext mainAppContext,
Map<ClassLoader,SnmpAppContext> appContextMap,
SystemInfo systemInfo)
mainAppContext - Context of main application (must not be NULL).appContextMap - Application context map.systemInfo - Informations on the system.| Method Detail |
|---|
protected final SortedMap<SnmpOid,AttributeAccessor> getMib()
public void initSysObjectIDSet()
system.sysObjectID values with their OID.
protected final void putExternalNode(int index,
SnmpOid oid)
index - Index of attribute.oid - Object IDentifier (OID) of MIB node.
protected final void putExternalNode(SnmpOid oid,
SnmpOid value)
oid - Object IDentifier (OID) of MIB node.value - Value of MIB node.public final AttributeAccessor find(SnmpOid oid)
SnmpMibAttributeAccessor by its OID.
find in interface SnmpMiboid - OID of AttributeAccessor to find.
AttributeAccessor found or NULL if not found.public final AttributeAccessor next(SnmpOid oid)
SnmpMibAttributeAccessor from an OID
next in interface SnmpMiboid - OID not included in the research but from which it begins.
AttributeAccessor found or NULL if not found.public final SortedMap<SnmpOid,AttributeAccessor> nextSet(SnmpOid oid)
SnmpMibAttributeAccessor from an OID
nextSet in interface SnmpMiboid - OID not included in the research but from which it begins.
AttributeAccessor found (never NULL).protected final SnmpDataType getSnmpDataType(int index)
index - Index of attribute.
protected final Class<?> getJmxDataType(int index)
index - Index of attribute.
public final Object getValue(int index)
index - Index of attribute.
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||