|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.snmp.agent.SnmpMibAgent com.sun.management.snmp.agent.SnmpMib com.sun.management.snmp.usm.usmmib.SNMP_USER_BASED_SM_MIB
public class SNMP_USER_BASED_SM_MIB
The class is used for representing "SNMP-USER-BASED-SM-MIB". You can edit the file if you want to modify the behavior of the MIB.
Field Summary | |
---|---|
protected Hashtable |
metadatas
|
protected SnmpStandardObjectServer |
objectserver
|
Fields inherited from class com.sun.management.snmp.agent.SnmpMib |
---|
root |
Fields inherited from class com.sun.management.snmp.agent.SnmpMibAgent |
---|
mibName, server |
Constructor Summary | |
---|---|
SNMP_USER_BASED_SM_MIB()
Default constructor. |
Method Summary | |
---|---|
protected Object |
createUsmStatsMBean(String groupName,
String groupOid,
ObjectName groupObjname,
MBeanServer server)
Factory method for "UsmStats" group MBean. |
protected UsmStatsMeta |
createUsmStatsMetaNode(String groupName,
String groupOid,
ObjectName groupObjname,
MBeanServer server)
Factory method for "UsmStats" group metadata class. |
protected Object |
createUsmUserMBean(String groupName,
String groupOid,
ObjectName groupObjname,
MBeanServer server)
Factory method for "UsmUser" group MBean. |
protected UsmUserMeta |
createUsmUserMetaNode(String groupName,
String groupOid,
ObjectName groupObjname,
MBeanServer server)
Factory method for "UsmUser" group metadata class. |
SnmpMibTable |
getRegisteredTableMeta(String name)
Returns a registered SNMP Table metadata node. |
SnmpStandardObjectServer |
getStandardObjectServer()
|
void |
init()
Initialization of the MIB with no registration in Java DMK. |
protected void |
initUsmStats(MBeanServer server)
Initialization of the "UsmStats" group. |
protected void |
initUsmUser(MBeanServer server)
Initialization of the "UsmUser" group. |
void |
populate(MBeanServer server,
ObjectName name)
Initialization of the MIB with no registration in Java DMK. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Initialization of the MIB with AUTOMATIC REGISTRATION in Java DMK. |
void |
registerTableMeta(String name,
SnmpMibTable meta)
Register an SNMP Table metadata node in the MIB. |
Methods inherited from class com.sun.management.snmp.agent.SnmpMib |
---|
check, get, getBulk, getGroupObjectName, getGroupOid, getNext, getRootOid, registerGroupNode, set |
Methods inherited from class com.sun.management.snmp.agent.SnmpMibAgent |
---|
getBindingState, getMBeanServer, getMibName, getSnmpAdaptor, getSnmpAdaptorName, newMibRequest, newMibRequest, postDeregister, postRegister, preDeregister, setSnmpAdaptor, setSnmpAdaptor, setSnmpAdaptor, setSnmpAdaptor, setSnmpAdaptorName, setSnmpAdaptorName, setSnmpAdaptorName, setSnmpAdaptorName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SnmpStandardObjectServer objectserver
protected final Hashtable metadatas
Constructor Detail |
---|
public SNMP_USER_BASED_SM_MIB()
Method Detail |
---|
public void init() throws IllegalAccessException
init
in class SnmpMibAgent
IllegalAccessException
- The MIB can not be initialized.public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
preRegister
in class SnmpMibAgent
server
- The MBean server to register the service with.name
- The object name.
Exception
public void populate(MBeanServer server, ObjectName name) throws Exception
Exception
protected void initUsmUser(MBeanServer server) throws Exception
server
- MBeanServer for this group (may be null)
Exception
protected UsmUserMeta createUsmUserMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
groupName
- Name of the group ("UsmUser")groupOid
- OID of this groupgroupObjname
- ObjectName for this group (may be null)server
- MBeanServer for this group (may be null)
protected Object createUsmUserMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
groupName
- Name of the group ("UsmUser")groupOid
- OID of this groupgroupObjname
- ObjectName for this group (may be null)server
- MBeanServer for this group (may be null)
protected void initUsmStats(MBeanServer server) throws Exception
server
- MBeanServer for this group (may be null)
Exception
protected UsmStatsMeta createUsmStatsMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
groupName
- Name of the group ("UsmStats")groupOid
- OID of this groupgroupObjname
- ObjectName for this group (may be null)server
- MBeanServer for this group (may be null)
protected Object createUsmStatsMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
groupName
- Name of the group ("UsmStats")groupOid
- OID of this groupgroupObjname
- ObjectName for this group (may be null)server
- MBeanServer for this group (may be null)
public void registerTableMeta(String name, SnmpMibTable meta)
SnmpMib
Register an SNMP Table metadata node in the MIB.
This method is used internally and you should never need to
call it directly.
It is used to establish the link
between an SNMP table metadata node and its bean-like counterpart.
The group metadata nodes will create and register their
underlying table metadata nodes in the MIB using this
method.
The metadata nodes will be later retrieved from the MIB by the
bean-like table objects using the getRegisterTableMeta() method.
registerTableMeta
in class SnmpMib
name
- The java-ized name of the SNMP table.meta
- The SNMP table metadata node - usually this
corresponds to a mibgen
generated
object.public SnmpMibTable getRegisteredTableMeta(String name)
SnmpMib
This method is used internally and you should never need to call it directly.
getRegisteredTableMeta
in class SnmpMib
public SnmpStandardObjectServer getStandardObjectServer()
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |