org.snmp4j.agent.mo.jmx
Class MBeanMultiAttributeMOInfo

java.lang.Object
  extended by org.snmp4j.agent.mo.jmx.MBeanMOInfo
      extended by org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo
          extended by org.snmp4j.agent.mo.jmx.MBeanMultiAttributeMOInfo

public class MBeanMultiAttributeMOInfo
extends MBeanAttributeMOInfo

There are cases where a single SNMP variable is mapped to several MBean attributes. MBeanMultiAttributeMOInfo provides means for such a mapping.

Version:
1.0
Author:
Frank Fock

Field Summary
 
Fields inherited from class org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo
attribute
 
Constructor Summary
MBeanMultiAttributeMOInfo(javax.management.ObjectName name, CombinedTypedAttribute attributes)
           
 
Method Summary
 java.lang.Object getAttribute(javax.management.MBeanServerConnection server)
           
static java.lang.Object getAttribute(javax.management.MBeanServerConnection server, javax.management.ObjectName name, CombinedTypedAttribute attributes)
           
 CombinedTypedAttribute getAttributes()
           
 void setAttribute(javax.management.MBeanServerConnection server, java.lang.Object value)
           
static void setAttribute(javax.management.MBeanServerConnection server, javax.management.ObjectName name, CombinedTypedAttribute attributes, java.lang.Object value)
           
 
Methods inherited from class org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo
getAttribute, getAttribute, getAttributeName, getAttributeType, setAttribute
 
Methods inherited from class org.snmp4j.agent.mo.jmx.MBeanMOInfo
getMBeanNames, getObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanMultiAttributeMOInfo

public MBeanMultiAttributeMOInfo(javax.management.ObjectName name,
                                 CombinedTypedAttribute attributes)
Method Detail

getAttributes

public CombinedTypedAttribute getAttributes()

getAttribute

public java.lang.Object getAttribute(javax.management.MBeanServerConnection server)
                              throws javax.management.ReflectionException,
                                     javax.management.InstanceNotFoundException,
                                     javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException,
                                     java.io.IOException
Overrides:
getAttribute in class MBeanAttributeMOInfo
Throws:
javax.management.ReflectionException
javax.management.InstanceNotFoundException
javax.management.AttributeNotFoundException
javax.management.MBeanException
java.io.IOException

getAttribute

public static java.lang.Object getAttribute(javax.management.MBeanServerConnection server,
                                            javax.management.ObjectName name,
                                            CombinedTypedAttribute attributes)
                                     throws javax.management.ReflectionException,
                                            javax.management.InstanceNotFoundException,
                                            javax.management.AttributeNotFoundException,
                                            javax.management.MBeanException,
                                            java.io.IOException
Throws:
javax.management.ReflectionException
javax.management.InstanceNotFoundException
javax.management.AttributeNotFoundException
javax.management.MBeanException
java.io.IOException

setAttribute

public void setAttribute(javax.management.MBeanServerConnection server,
                         java.lang.Object value)
                  throws javax.management.ReflectionException,
                         javax.management.MBeanException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.AttributeNotFoundException,
                         javax.management.InstanceNotFoundException,
                         java.io.IOException
Overrides:
setAttribute in class MBeanAttributeMOInfo
Throws:
javax.management.ReflectionException
javax.management.MBeanException
javax.management.InvalidAttributeValueException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
java.io.IOException

setAttribute

public static void setAttribute(javax.management.MBeanServerConnection server,
                                javax.management.ObjectName name,
                                CombinedTypedAttribute attributes,
                                java.lang.Object value)
                         throws javax.management.ReflectionException,
                                javax.management.MBeanException,
                                javax.management.InvalidAttributeValueException,
                                javax.management.AttributeNotFoundException,
                                javax.management.InstanceNotFoundException,
                                java.io.IOException
Throws:
javax.management.ReflectionException
javax.management.MBeanException
javax.management.InvalidAttributeValueException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
java.io.IOException

Copyright 2006-2007 Frank Fock (SNMP4J.org)