Package org.opends.server.snmp
Class DIRECTORY_SERVER_MIB
- java.lang.Object
-
- com.sun.management.snmp.agent.SnmpMibAgent
-
- com.sun.management.snmp.agent.SnmpMib
-
- org.opends.server.snmp.DIRECTORY_SERVER_MIB
-
- All Implemented Interfaces:
com.sun.management.snmp.agent.SnmpMibAgentMBean,Serializable,MBeanRegistration
- Direct Known Subclasses:
DIRECTORY_SERVER_MIBImpl
public class DIRECTORY_SERVER_MIB extends com.sun.management.snmp.agent.SnmpMib implements Serializable
The class is used for representing "DIRECTORY-SERVER-MIB". You can edit the file if you want to modify the behavior of the MIB.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Hashtablemetadatasprotected com.sun.management.snmp.agent.SnmpStandardObjectServerobjectserver
-
Constructor Summary
Constructors Constructor Description DIRECTORY_SERVER_MIB()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectcreateDsMIBMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)Factory method for "DsMIB" group MBean.protected DsMIBMetacreateDsMIBMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)Factory method for "DsMIB" group metadata class.com.sun.management.snmp.agent.SnmpMibTablegetRegisteredTableMeta(String name)com.sun.management.snmp.agent.SnmpStandardObjectServergetStandardObjectServer()voidinit()Initialization of the MIB with no registration in Java DMK.protected voidinitDsMIB(MBeanServer server)Initialization of the "DsMIB" group.voidpopulate(MBeanServer server, ObjectName name)Initialization of the MIB with no registration in Java DMK.ObjectNamepreRegister(MBeanServer server, ObjectName name)Initialization of the MIB with AUTOMATIC REGISTRATION in Java DMK.voidregisterTableMeta(String name, com.sun.management.snmp.agent.SnmpMibTable meta)-
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
-
-
-
-
Field Detail
-
objectserver
protected com.sun.management.snmp.agent.SnmpStandardObjectServer objectserver
-
metadatas
protected final Hashtable metadatas
-
-
Method Detail
-
init
public void init() throws IllegalAccessExceptionInitialization of the MIB with no registration in Java DMK.- Specified by:
initin classcom.sun.management.snmp.agent.SnmpMibAgent- Throws:
IllegalAccessException
-
preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
Initialization of the MIB with AUTOMATIC REGISTRATION in Java DMK.- Specified by:
preRegisterin interfaceMBeanRegistration- Specified by:
preRegisterin classcom.sun.management.snmp.agent.SnmpMibAgent- Throws:
Exception
-
populate
public void populate(MBeanServer server, ObjectName name) throws Exception
Initialization of the MIB with no registration in Java DMK.- Throws:
Exception
-
initDsMIB
protected void initDsMIB(MBeanServer server) throws Exception
Initialization of the "DsMIB" group. To disable support of this group, redefine the "createDsMIBMetaNode()" factory method, and make it return "null"- Parameters:
server- MBeanServer for this group (may be null)- Throws:
Exception
-
createDsMIBMetaNode
protected DsMIBMeta createDsMIBMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "DsMIB" group metadata class. You can redefine this method if you need to replace the default generated metadata class with your own customized class.- Parameters:
groupName- Name of the group ("DsMIB")groupOid- OID of this groupgroupObjname- ObjectName for this group (may be null)server- MBeanServer for this group (may be null)- Returns:
- An instance of the metadata class generated for the "DsMIB" group (DsMIBMeta)
-
createDsMIBMBean
protected Object createDsMIBMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "DsMIB" group MBean. You can redefine this method if you need to replace the default generated MBean class with your own customized class.- Parameters:
groupName- Name of the group ("DsMIB")groupOid- OID of this groupgroupObjname- ObjectName for this group (may be null)server- MBeanServer for this group (may be null)- Returns:
- An instance of the MBean class generated for the "DsMIB" group (DsMIB) Note that when using standard metadata, the returned object must implement the "DsMIBMBean" interface.
-
registerTableMeta
public void registerTableMeta(String name, com.sun.management.snmp.agent.SnmpMibTable meta)
- Specified by:
registerTableMetain classcom.sun.management.snmp.agent.SnmpMib
-
getRegisteredTableMeta
public com.sun.management.snmp.agent.SnmpMibTable getRegisteredTableMeta(String name)
- Specified by:
getRegisteredTableMetain classcom.sun.management.snmp.agent.SnmpMib
-
getStandardObjectServer
public com.sun.management.snmp.agent.SnmpStandardObjectServer getStandardObjectServer()
-
-