net.sf.snmpadaptor4j.core
Class JmxSnmpMib

java.lang.Object
  extended by net.sf.snmpadaptor4j.core.JmxSnmpMib
All Implemented Interfaces:
SnmpMib

public class JmxSnmpMib
extends Object
implements SnmpMib

Object representing the Management Information Base (MIB) for access to JMX attributes.

Author:
Jean-Philippe MINETTI

Field Summary
protected  org.apache.log4j.Logger logger
          Logger.
 
Constructor Summary
JmxSnmpMib(SnmpMib other)
          Constructor.
 
Method Summary
protected static void checkDataType(SnmpDataType snmpDataType, Class<?> jmxDataType)
          Checks the consistency between the data types SNMP and Java.
 AttributeAccessor find(SnmpOid oid)
          Finds a AttributeAccessor by its OID.
protected  SortedMap<SnmpOid,AttributeAccessor> getMib()
          Returns the Management Information Base (MIB).
 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
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final org.apache.log4j.Logger logger
Logger.

Constructor Detail

JmxSnmpMib

public JmxSnmpMib(SnmpMib other)
Constructor.

Parameters:
other - Other object representing the MIB.
Method Detail

getMib

protected final SortedMap<SnmpOid,AttributeAccessor> getMib()
Returns the Management Information Base (MIB).

Returns:
Management Information Base (MIB).

checkDataType

protected static final void checkDataType(SnmpDataType snmpDataType,
                                          Class<?> jmxDataType)
                                   throws Exception
Checks the consistency between the data types SNMP and Java.

Parameters:
snmpDataType - SNMP data type of MIB node.
jmxDataType - Data type of JMX attribute.
Throws:
Exception - Exception if an error occurred.

find

public final AttributeAccessor find(SnmpOid oid)
Description copied from interface: SnmpMib
Finds a AttributeAccessor by its OID.

Specified by:
find in interface SnmpMib
Parameters:
oid - OID of AttributeAccessor to find.
Returns:
AttributeAccessor found or NULL if not found.

next

public final AttributeAccessor next(SnmpOid oid)
Description copied from interface: SnmpMib
Finds the next AttributeAccessor from an OID

Specified by:
next in interface SnmpMib
Parameters:
oid - OID not included in the research but from which it begins.
Returns:
AttributeAccessor found or NULL if not found.

nextSet

public final SortedMap<SnmpOid,AttributeAccessor> nextSet(SnmpOid oid)
Description copied from interface: SnmpMib
Finds the list of next AttributeAccessor from an OID

Specified by:
nextSet in interface SnmpMib
Parameters:
oid - OID not included in the research but from which it begins.
Returns:
List of AttributeAccessor found (never NULL).

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.