com.sun.management.snmp.usm.usmmib
Class SNMP_USER_BASED_SM_MIBImpl
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
com.sun.management.snmp.usm.usmmib.SNMP_USER_BASED_SM_MIBImpl
- All Implemented Interfaces:
- SnmpMibAgentMBean, Serializable, MBeanRegistration
public class SNMP_USER_BASED_SM_MIBImpl
- extends SNMP_USER_BASED_SM_MIB
This is a RFC 2574 MIB implementation.
If the MIB is registered within an MBeanServer
, a JMX naming default naming schema is applied. JMX object name : /SNMP_USER_BASED_SM_MIB:name=Usm-MIB-RFC2574.
Having the engine Id in the domain allows to register multiple MIB (one for each SnmpAdaptorServer
) within the same MBeanServer.
If you want to change the domain, extends SNMP_USER_BASED_SM_MIBImpl
and set mibName
attribute to your own domain.
- Since:
- Java DMK 5.1
- See Also:
- Serialized Form
Fields inherited from class com.sun.management.snmp.agent.SnmpMib |
root |
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 |
SNMP_USER_BASED_SM_MIBImpl
public SNMP_USER_BASED_SM_MIBImpl(SnmpEngine engine,
SnmpUsmLcd lcd,
SnmpUsm model)
- Constructor.
- Parameters:
engine
- The local engine.lcd
- The Usm Lcd to get and store configuration from.model
- The Usm implementation.
createUsmStatsMBean
protected Object createUsmStatsMBean(String groupName,
String groupOid,
ObjectName groupObjname,
MBeanServer server)
- Description copied from class:
SNMP_USER_BASED_SM_MIB
- Factory method for "UsmStats" group MBean.
You can redefine this method if you need to replace the default
generated MBean class with your own customized class.
- Overrides:
createUsmStatsMBean
in class SNMP_USER_BASED_SM_MIB
- Parameters:
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)
- Returns:
- An instance of the MBean class generated for the
"UsmStats" group (UsmStats)
Note that when using standard metadata,
the returned object must implement the "UsmStatsMBean"
interface.
createUsmUserMetaNode
protected UsmUserMeta createUsmUserMetaNode(String groupName,
String groupOid,
ObjectName groupObjname,
MBeanServer server)
- Description copied from class:
SNMP_USER_BASED_SM_MIB
- Factory method for "UsmUser" group metadata class.
You can redefine this method if you need to replace the default
generated metadata class with your own customized class.
- Overrides:
createUsmUserMetaNode
in class SNMP_USER_BASED_SM_MIB
- Parameters:
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)
- Returns:
- An instance of the metadata class generated for the
"UsmUser" group (UsmUserMeta)
createUsmUserMBean
protected Object createUsmUserMBean(String groupName,
String groupOid,
ObjectName groupObjname,
MBeanServer server)
- Factory method for "UsmUser" group MBean.
You can redefine this method if you need to replace the default
class
UsmUserImpl
with your own customized class.
UsmUserImpl
creates a TableUsmUserTableImpl
in its constructor.
- Overrides:
createUsmUserMBean
in class SNMP_USER_BASED_SM_MIB
- Parameters:
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)
- Returns:
- An instance of the MBean class generated for the
"UsmUser" group (UsmUser)
Note that when using standard metadata,
the returned object must implement the "UsmUserMBean"
interface.
Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.