snmp.mbean
Class MBeanChecker
java.lang.Object
|
+--snmp.mbean.MBeanChecker
- public class MBeanChecker
- extends java.lang.Object
This class checks if there is a required MBean class provided for
the OID group which is defiend in the MIB database. It also checks
if the object variable in the MIB database matches against the the
attribute defined in the MBean.
- Version:
- $Revision: 0.1 $ $Date: 2004/03/09 06:03:54 $
- Author:
- Scott Cheng
Method Summary |
void |
checkMBeanAttribute(OidRecord rec)
Checks if the existence, permission, and datatype of the OidRecord
object match against the corresponding attribute in the MBean class. |
void |
checkMBeanClass(OidRecord oidGroup)
Checks if the required MBean class existed in the system for the
passed OID group. |
static MBeanChecker |
getInstance()
Gets the singleton object of the MBeanChecker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static MBeanChecker instance
MBeanChecker
public MBeanChecker()
checkMBeanAttribute
public void checkMBeanAttribute(OidRecord rec)
throws SnmpException
- Checks if the existence, permission, and datatype of the OidRecord
object match against the corresponding attribute in the MBean class.
- Throws:
SnmpException
- Thrown when the MBean attribute does not exist,
has persmission error or dtatype error.
checkMBeanClass
public void checkMBeanClass(OidRecord oidGroup)
throws SnmpException
- Checks if the required MBean class existed in the system for the
passed OID group. If the MBean object has not been loaded to
the system, it will be instantiated and loaded to the system.
- Throws:
SnmpException
- Thrown when the MBean class does not exist,
or more than one MBean class is found for
the OID group.
getInstance
public static MBeanChecker getInstance()
- Gets the singleton object of the MBeanChecker.
- Returns:
- The singleton object of the MBeanChecker.