mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
6717257: MBeanServer doesn't describe RuntimeException for methods inherited from MBeanServerConnection
Reviewed-by: dfuchs
This commit is contained in:
parent
a1269f9d94
commit
fe12d75a7a
1 changed files with 31 additions and 3 deletions
|
@ -50,8 +50,8 @@ import javax.management.loading.ClassLoaderRepository;
|
||||||
* server. A Java object cannot be registered in the MBean server
|
* server. A Java object cannot be registered in the MBean server
|
||||||
* unless it is a JMX compliant MBean.</p>
|
* unless it is a JMX compliant MBean.</p>
|
||||||
*
|
*
|
||||||
* <p id="notif">When an MBean is registered or unregistered in the MBean server
|
* <p id="notif">When an MBean is registered or unregistered in the
|
||||||
* a {@link javax.management.MBeanServerNotification
|
* MBean server a {@link javax.management.MBeanServerNotification
|
||||||
* MBeanServerNotification} Notification is emitted. To register an
|
* MBeanServerNotification} Notification is emitted. To register an
|
||||||
* object as listener to MBeanServerNotifications you should call the
|
* object as listener to MBeanServerNotifications you should call the
|
||||||
* MBean server method {@link #addNotificationListener
|
* MBean server method {@link #addNotificationListener
|
||||||
|
@ -262,6 +262,8 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
* <p>If this method successfully creates an MBean, a notification
|
* <p>If this method successfully creates an MBean, a notification
|
||||||
* is sent as described <a href="#notif">above</a>.</p>
|
* is sent as described <a href="#notif">above</a>.</p>
|
||||||
|
*
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public ObjectInstance createMBean(String className, ObjectName name)
|
public ObjectInstance createMBean(String className, ObjectName name)
|
||||||
throws ReflectionException, InstanceAlreadyExistsException,
|
throws ReflectionException, InstanceAlreadyExistsException,
|
||||||
|
@ -272,6 +274,8 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
* <p>If this method successfully creates an MBean, a notification
|
* <p>If this method successfully creates an MBean, a notification
|
||||||
* is sent as described <a href="#notif">above</a>.</p>
|
* is sent as described <a href="#notif">above</a>.</p>
|
||||||
|
*
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public ObjectInstance createMBean(String className, ObjectName name,
|
public ObjectInstance createMBean(String className, ObjectName name,
|
||||||
ObjectName loaderName)
|
ObjectName loaderName)
|
||||||
|
@ -283,6 +287,8 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
* <p>If this method successfully creates an MBean, a notification
|
* <p>If this method successfully creates an MBean, a notification
|
||||||
* is sent as described <a href="#notif">above</a>.</p>
|
* is sent as described <a href="#notif">above</a>.</p>
|
||||||
|
*
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public ObjectInstance createMBean(String className, ObjectName name,
|
public ObjectInstance createMBean(String className, ObjectName name,
|
||||||
Object params[], String signature[])
|
Object params[], String signature[])
|
||||||
|
@ -294,6 +300,8 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
* <p>If this method successfully creates an MBean, a notification
|
* <p>If this method successfully creates an MBean, a notification
|
||||||
* is sent as described <a href="#notif">above</a>.</p>
|
* is sent as described <a href="#notif">above</a>.</p>
|
||||||
|
*
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public ObjectInstance createMBean(String className, ObjectName name,
|
public ObjectInstance createMBean(String className, ObjectName name,
|
||||||
ObjectName loaderName, Object params[],
|
ObjectName loaderName, Object params[],
|
||||||
|
@ -362,6 +370,8 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
*
|
*
|
||||||
* <p>If this method successfully unregisters an MBean, a notification
|
* <p>If this method successfully unregisters an MBean, a notification
|
||||||
* is sent as described <a href="#notif">above</a>.</p>
|
* is sent as described <a href="#notif">above</a>.</p>
|
||||||
|
*
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public void unregisterMBean(ObjectName name)
|
public void unregisterMBean(ObjectName name)
|
||||||
throws InstanceNotFoundException, MBeanRegistrationException;
|
throws InstanceNotFoundException, MBeanRegistrationException;
|
||||||
|
@ -377,6 +387,9 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
public Set<ObjectName> queryNames(ObjectName name, QueryExp query);
|
public Set<ObjectName> queryNames(ObjectName name, QueryExp query);
|
||||||
|
|
||||||
// doc comment inherited from MBeanServerConnection
|
// doc comment inherited from MBeanServerConnection
|
||||||
|
/**
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
|
*/
|
||||||
public boolean isRegistered(ObjectName name);
|
public boolean isRegistered(ObjectName name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -389,21 +402,33 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
public Integer getMBeanCount();
|
public Integer getMBeanCount();
|
||||||
|
|
||||||
// doc comment inherited from MBeanServerConnection
|
// doc comment inherited from MBeanServerConnection
|
||||||
|
/**
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
|
*/
|
||||||
public Object getAttribute(ObjectName name, String attribute)
|
public Object getAttribute(ObjectName name, String attribute)
|
||||||
throws MBeanException, AttributeNotFoundException,
|
throws MBeanException, AttributeNotFoundException,
|
||||||
InstanceNotFoundException, ReflectionException;
|
InstanceNotFoundException, ReflectionException;
|
||||||
|
|
||||||
// doc comment inherited from MBeanServerConnection
|
// doc comment inherited from MBeanServerConnection
|
||||||
|
/**
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
|
*/
|
||||||
public AttributeList getAttributes(ObjectName name, String[] attributes)
|
public AttributeList getAttributes(ObjectName name, String[] attributes)
|
||||||
throws InstanceNotFoundException, ReflectionException;
|
throws InstanceNotFoundException, ReflectionException;
|
||||||
|
|
||||||
// doc comment inherited from MBeanServerConnection
|
// doc comment inherited from MBeanServerConnection
|
||||||
|
/**
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
|
*/
|
||||||
public void setAttribute(ObjectName name, Attribute attribute)
|
public void setAttribute(ObjectName name, Attribute attribute)
|
||||||
throws InstanceNotFoundException, AttributeNotFoundException,
|
throws InstanceNotFoundException, AttributeNotFoundException,
|
||||||
InvalidAttributeValueException, MBeanException,
|
InvalidAttributeValueException, MBeanException,
|
||||||
ReflectionException;
|
ReflectionException;
|
||||||
|
|
||||||
// doc comment inherited from MBeanServerConnection
|
// doc comment inherited from MBeanServerConnection
|
||||||
|
/**
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
|
*/
|
||||||
public AttributeList setAttributes(ObjectName name,
|
public AttributeList setAttributes(ObjectName name,
|
||||||
AttributeList attributes)
|
AttributeList attributes)
|
||||||
throws InstanceNotFoundException, ReflectionException;
|
throws InstanceNotFoundException, ReflectionException;
|
||||||
|
@ -433,7 +458,10 @@ public interface MBeanServer extends MBeanServerConnection {
|
||||||
Object handback)
|
Object handback)
|
||||||
throws InstanceNotFoundException;
|
throws InstanceNotFoundException;
|
||||||
|
|
||||||
// doc comment inherited from MBeanServerConnection
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @throws RuntimeOperationsException {@inheritDoc}
|
||||||
|
*/
|
||||||
public void addNotificationListener(ObjectName name,
|
public void addNotificationListener(ObjectName name,
|
||||||
ObjectName listener,
|
ObjectName listener,
|
||||||
NotificationFilter filter,
|
NotificationFilter filter,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue