|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.snmpadaptor4j.core.JvmSnmpMib
public class JvmSnmpMib
Object representing the Management Information Base (MIB) for attributes of JVM.
Constructor Summary | |
---|---|
JvmSnmpMib(SnmpMib other)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the connection with the JMX agent. |
AttributeAccessor |
find(SnmpOid oid)
Finds a AttributeAccessor by its 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 |
void |
open(MBeanServer server)
Opens the connection with the JMX agent. |
void |
putAttribute(MBeanServer server,
String oidAsStr,
SnmpDataType snmpDataType,
String mBeanName,
String attributeName,
Class<?> jmxDataType,
boolean readonly)
Adds a new JVM attribute. |
void |
putCompositeDataAttribute(MBeanServer server,
String oidAsStr,
String mBeanName,
String attributeName,
String attributeKey,
SnmpDataType snmpDataType,
Class<?> jmxDataType)
Adds a new JVM attribute to CompositeData . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JvmSnmpMib(SnmpMib other)
other
- Other object representing the MIB.Method Detail |
---|
public void open(MBeanServer server) throws Exception
server
- JMX agent.
Exception
- Exception if an error occurred.public void close()
public final void putAttribute(MBeanServer server, String oidAsStr, SnmpDataType snmpDataType, String mBeanName, String attributeName, Class<?> jmxDataType, boolean readonly) throws Exception
server
- JMX agent.oidAsStr
- Object Identifier of attribute as String
.snmpDataType
- SNMP data type of MIB node.mBeanName
- MBean name.attributeName
- Attribute name.jmxDataType
- Data type of JMX attribute.readonly
- TRUE
if the attribute is read only.
Exception
- Exception if an error occurred.public final void putCompositeDataAttribute(MBeanServer server, String oidAsStr, String mBeanName, String attributeName, String attributeKey, SnmpDataType snmpDataType, Class<?> jmxDataType) throws Exception
CompositeData
.
server
- JMX agent.oidAsStr
- Object Identifier of attribute as String
.mBeanName
- MBean name.attributeName
- Attribute name of CompositeData
.attributeKey
- Attribute key of value.snmpDataType
- SNMP data type of MIB node.jmxDataType
- Data type of JMX attribute.
Exception
- Exception if an error occurred.public final AttributeAccessor find(SnmpOid oid)
SnmpMib
AttributeAccessor
by its OID.
find
in interface SnmpMib
oid
- OID of AttributeAccessor
to find.
AttributeAccessor
found or NULL
if not found.public final AttributeAccessor next(SnmpOid oid)
SnmpMib
AttributeAccessor
from an OID
next
in interface SnmpMib
oid
- 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)
SnmpMib
AttributeAccessor
from an OID
nextSet
in interface SnmpMib
oid
- OID not included in the research but from which it begins.
AttributeAccessor
found (never NULL
).public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |