com.sun.management.snmp.usm.usmmib
Class SNMP_USER_BASED_SM_MIBImpl

java.lang.Object
  extended by com.sun.management.snmp.agent.SnmpMibAgent
      extended by com.sun.management.snmp.agent.SnmpMib
          extended by com.sun.management.snmp.usm.usmmib.SNMP_USER_BASED_SM_MIB
              extended by 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

Field Summary
 
Fields inherited from class com.sun.management.snmp.usm.usmmib.SNMP_USER_BASED_SM_MIB
metadatas, 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_MIBImpl(SnmpEngine engine, SnmpUsmLcd lcd, SnmpUsm model)
          Constructor.
 
Method Summary
protected  Object createUsmStatsMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
          Factory method for "UsmStats" group MBean.
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.
 
Methods inherited from class com.sun.management.snmp.usm.usmmib.SNMP_USER_BASED_SM_MIB
createUsmStatsMetaNode, getRegisteredTableMeta, getStandardObjectServer, init, initUsmStats, initUsmUser, populate, preRegister, registerTableMeta
 
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
 

Constructor Detail

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.
Method Detail

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 group
groupObjname - 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 group
groupObjname - 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 group
groupObjname - 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.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.