/** * Gets the value of a specific attribute of a named MBean. The MBean is identified by its object * name. * * @param name The object name of the MBean from which the attribute is to be retrieved. * @param attribute A String specifying the name of the attribute to be retrieved. * @return The value of the retrieved attribute. * @exception AttributeNotFoundException The attribute specified is not accessible in the MBean. * @exception MBeanException Wraps an exception thrown by the MBean's getter. * @exception InstanceNotFoundException The MBean specified is not registered in the MBean server. * @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 Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException { return interceptor.getAttribute(name, attribute); }