Ejemplo n.º 1
0
  /**
   * Sets the value of a specific attribute of a named MBean. The MBean is identified by its object
   * name.
   *
   * @param name The name of the MBean within which the attribute is to be set.
   * @param attribute The identification of the attribute to be set and the value it is to be set
   *     to.
   * @exception InstanceNotFoundException The MBean specified is not registered in the MBean server.
   * @exception AttributeNotFoundException The attribute specified is not accessible in the MBean.
   * @exception InvalidAttributeValueException The value specified for the attribute is not valid.
   * @exception MBeanException Wraps an exception thrown by the MBean's setter.
   * @exception ReflectionException Wraps an <CODE>{@link java.lang.Exception}</CODE> thrown when
   *     trying to invoke the setter.
   * @exception RuntimeOperationsException Wraps an <CODE>{@link java.lang.IllegalArgumentException}
   *     </CODE>: The object name in parameter is null or the attribute in parameter is null.
   */
  public void setAttribute(ObjectName name, Attribute attribute)
      throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException,
          MBeanException, ReflectionException {

    interceptor.setAttribute(name, attribute);
  }