com.adventnet.adaptors.snmp
Class VacmMibViews

java.lang.Object
  extended by com.adventnet.adaptors.snmp.VacmMibViews
All Implemented Interfaces:
javax.management.DynamicMBean

public class VacmMibViews
extends java.lang.Object
implements javax.management.DynamicMBean

This class acts as a mbean for the Snmp group counter values as specified in the RFC-1213 mib for the snmp agent. By default this gets instantiated and registered with the MBeanServer when the SnmpAdaptor gets registered with the server. Thus providing the snmp group instrumentation for the snmp agent. It gets registered with the server with the ObjectName as

  • SNMP:group=snmp,mib=RFC-1213,type=com.adventnet.adaptors.snmp.SnmpGroup

    See Also:
    SnmpGroup

    Constructor Summary
    VacmMibViews()
              The NoArg constructor
    VacmMibViews(SnmpAdaptor adaptor)
              The constructor which takes PropertyRegistrationListener as argument.
     
    Method Summary
     java.lang.Object getAttribute(java.lang.String attribute)
              Gets the value of a specific attribute of this MBean.
     javax.management.AttributeList getAttributes(java.lang.String[] attributes)
              Enables the values of several attributes of this MBean.
     javax.management.MBeanInfo getMBeanInfo()
              This method discovers the attributes and operations this MBean exposes for management.
     java.lang.Integer getVacmViewSpinLock()
              Handles the SNMP Get Request for snmpInPkts
     java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
              Invokes an action on this MBean.
     void setAttribute(javax.management.Attribute attribute)
              Sets the value of a specific attribute of this MBean.
     javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
              Sets the values of several attributes of this MBean.
     void setVacmViewSpinLock(java.lang.Integer val)
              Handles the SNMP Set Request for snmpEnableAuthenTraps
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    VacmMibViews

    public VacmMibViews()
    The NoArg constructor


    VacmMibViews

    public VacmMibViews(SnmpAdaptor adaptor)
    The constructor which takes PropertyRegistrationListener as argument.

    Method Detail

    getMBeanInfo

    public javax.management.MBeanInfo getMBeanInfo()
    This method discovers the attributes and operations this MBean exposes for management.

    Specified by:
    getMBeanInfo in interface javax.management.DynamicMBean
    Returns:
    An instance of MBeanInfo allowing to retrieve all attributes and operations of this MBean.

    getAttribute

    public java.lang.Object getAttribute(java.lang.String attribute)
                                  throws javax.management.AttributeNotFoundException,
                                         javax.management.MBeanException,
                                         javax.management.ReflectionException
    Gets the value of a specific attribute of this MBean.

    Specified by:
    getAttribute in interface javax.management.DynamicMBean
    Parameters:
    attribute - A String specifying the name of the attribute to be retrieved.
    Returns:
    The value of the retrieved attribute.
    Throws:
    javax.management.AttributeNotFoundException
    javax.management.MBeanException
    javax.management.ReflectionException

    getAttributes

    public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
    Enables the values of several attributes of this MBean.

    Specified by:
    getAttributes in interface javax.management.DynamicMBean
    Parameters:
    attributes - A list of attributes to be retrieved.
    Returns:
    The value of the retrieved attributes as attributeList.

    invoke

    public java.lang.Object invoke(java.lang.String actionName,
                                   java.lang.Object[] params,
                                   java.lang.String[] signature)
                            throws javax.management.MBeanException,
                                   javax.management.ReflectionException
    Invokes an action on this MBean.

    Specified by:
    invoke in interface javax.management.DynamicMBean
    Parameters:
    actionName - The name of the action to be invoked.
    params - An array containing the parameters to be set when the action is invoked
    signature - An array containing the signature of the action. The class objects will be loaded using the same class loader as the one used for loading the MBean on which the action was invoked.
    Returns:
    The object returned by the action, which represents the result ofinvoking the action on the specified MBean.
    Throws:
    javax.management.MBeanException
    javax.management.ReflectionException

    setAttribute

    public void setAttribute(javax.management.Attribute attribute)
                      throws javax.management.AttributeNotFoundException,
                             javax.management.InvalidAttributeValueException,
                             javax.management.MBeanException,
                             javax.management.ReflectionException
    Sets the value of a specific attribute of this MBean.

    Specified by:
    setAttribute in interface javax.management.DynamicMBean
    Parameters:
    attribute - The identification of the attribute to be set and the value it is to be set to.
    Throws:
    javax.management.AttributeNotFoundException
    javax.management.InvalidAttributeValueException
    javax.management.MBeanException
    javax.management.ReflectionException

    setAttributes

    public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
    Sets the values of several attributes of this MBean.

    Specified by:
    setAttributes in interface javax.management.DynamicMBean
    Parameters:
    attributes - A list of attributes: The identification of the attributes to be set and the values they are to be set to.
    Returns:
    The list of attributes that were set, with their new values.

    getVacmViewSpinLock

    public java.lang.Integer getVacmViewSpinLock()
    Handles the SNMP Get Request for snmpInPkts


    setVacmViewSpinLock

    public void setVacmViewSpinLock(java.lang.Integer val)
    Handles the SNMP Set Request for snmpEnableAuthenTraps

    Parameters:
    val - the value to be set