|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--snmp.mbean.MBeanMeta | +--snmp.mbean.DefaultMBeanMeta
This class uses JMX MBean server as a default implementation in getting and setting the MBean attribut. You can extend this class to override the mechanism in getting and setting the MBean attribute.
Field Summary |
Fields inherited from class snmp.mbean.MBeanMeta |
mbean |
Fields inherited from interface snmp.mbean.SnmpMBean |
ACCESS_BY_ATTR_NAME, ACCESS_BY_OID |
Constructor Summary | |
protected |
DefaultMBeanMeta()
The default constructor. |
Method Summary | |
protected MBeanAttribute |
getAttrByName(java.lang.String attr)
Gets the MBeanAttribute object that matches to the attribute name in the MBean. |
protected MBeanAttribute |
getAttrByOid(java.lang.String oid)
Gets the MBeanAttribute object that matches to the object identifier string in the MBean. |
private static MBeanAttribute |
getMBeanAttribute(java.lang.String attr,
DefaultMBeanMeta meta)
Gets the MBean attribute value that matches to the attribute name in the MBean. |
protected MBeanAttribute |
setAttrByName(java.lang.String name,
MBeanAttribute attr)
Sets the MBeanAttribute object that matches to the attribute name in the MBean. |
protected MBeanAttribute |
setAttrByOid(java.lang.String oid,
MBeanAttribute attr)
Sets the MBeanAttribute object that matches to the object identifier string into the MBean. |
private static MBeanAttribute |
setMBeanAttribute(MBeanAttribute attr,
DefaultMBeanMeta meta)
Sets the MBean attribute value that matches to the attribute name into the MBean. |
Methods inherited from class snmp.mbean.MBeanMeta |
get, getMBeanClassName, getMBeanMeta, getMBeanObjectName, set, setupMBeanMeta |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DefaultMBeanMeta() throws SnmpException
SnmpException
- Thrown when the instance of the
DefaultMBeanMeta cannot be constructed correctly.Method Detail |
protected MBeanAttribute getAttrByOid(java.lang.String oid) throws SnmpException
getAttrByOid
in class MBeanMeta
oid
- The string represents the object identifier.
SnmpException
- Thrown when any error occurs.protected MBeanAttribute getAttrByName(java.lang.String attr) throws SnmpException
getAttrByName
in class MBeanMeta
attr
- The string represents the attribute name.
SnmpException
- Thrown when any error occurs.protected MBeanAttribute setAttrByOid(java.lang.String oid, MBeanAttribute attr) throws SnmpException
setAttrByOid
in class MBeanMeta
oid
- The string represents the object identifier.attr
- The MBeanAttribute object that contains the
data to be set into the MBean object.
SnmpException
- Thrown when any error occurs.protected MBeanAttribute setAttrByName(java.lang.String name, MBeanAttribute attr) throws SnmpException
setAttrByName
in class MBeanMeta
name
- The name of the attribute.attr
- The MBeanAttribute object that contains the
data to set into the MBean object.
SnmpException
- Thrown when any error occurs.private static MBeanAttribute getMBeanAttribute(java.lang.String attr, DefaultMBeanMeta meta) throws SnmpException
attr
- The string represents the attribute name.
SnmpException
- Thrown when any error occurs.private static MBeanAttribute setMBeanAttribute(MBeanAttribute attr, DefaultMBeanMeta meta) throws SnmpException
attr
- The MBeanAttribute object that contains the
data to be set into the MBean object.
SnmpException
- Thrown when any error occurs.
|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |