📄 mbeanserverinterceptor.java
字号:
* @exception InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @exception ReflectionException An exception occurred when * trying to invoke the getAttributes method of a Dynamic MBean. * @exception RuntimeOperationsException Wrap a * <CODE>java.lang.IllegalArgumentException</CODE>: The object * name in parameter is null or attributes in parameter is null. */ public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException; /** * 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 a * <CODE>java.lang.Exception</CODE> thrown when trying to invoke * the setter. * @exception RuntimeOperationsException Wraps a * <CODE>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; /** * Sets the values of several attributes of a named MBean. The MBean is * identified by its object name. * * @param name The object name of the MBean within which the * attributes are to be set. * @param attributes A list of attributes: The identification of * the attributes to be set and the values they are to be set to. * * @return The list of attributes that were set, with their new * values. * * @exception InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @exception ReflectionException An exception occurred when * trying to invoke the getAttributes method of a Dynamic MBean. * @exception RuntimeOperationsException Wraps a * <CODE>java.lang.IllegalArgumentException</CODE>: The object * name in parameter is null or attributes in parameter is null. */ public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException; /** * Invokes an operation on an MBean. * * @param name The object name of the MBean on which the method is * to be invoked. * @param operationName The name of the operation to be invoked. * @param params An array containing the parameters to be set when * the operation is invoked * @param signature An array containing the signature of the * operation. The class objects will be loaded using the same * class loader as the one used for loading the MBean on which the * operation was invoked. * * @return The object returned by the operation, which represents * the result ofinvoking the operation on the MBean specified. * * @exception InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @exception MBeanException Wraps an exception thrown by the * MBean's invoked method. * @exception ReflectionException Wraps a * <CODE>java.lang.Exception</CODE> thrown while trying to invoke * the method. */ public Object invoke(ObjectName name, String operationName, Object params[], String signature[]) throws InstanceNotFoundException, MBeanException, ReflectionException; /** * Returns the default domain used for naming the MBean. * The default domain name is used as the domain part in the ObjectName * of MBeans if no domain is specified by the user. */ public String getDefaultDomain(); /** * Returns the list of domains in which any MBean is currently * registered. */ public String[] getDomains(); /** * <p>Adds a listener to a registered MBean.</p> * * <P> A notification emitted by an MBean will be forwarded by the * MBeanServer to the listener. If the source of the notification * is a reference to an MBean object, the MBean server will replace it * by that MBean's ObjectName. Otherwise the source is unchanged. * * @param name The name of the MBean on which the listener should * be added. * @param listener The listener object which will handle the * notifications emitted by the registered MBean. * @param filter The filter object. If filter is null, no * filtering will be performed before handling notifications. * @param handback The context to be sent to the listener when a * notification is emitted. * * @exception InstanceNotFoundException The MBean name provided * does not match any of the registered MBeans. */ public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException; /** * <p>Adds a listener to a registered MBean.</p> * * <p>A notification emitted by an MBean will be forwarded by the * MBeanServer to the listener. If the source of the notification * is a reference to an MBean object, the MBean server will * replace it by that MBean's ObjectName. Otherwise the source is * unchanged.</p> * * <p>The listener object that receives notifications is the one * that is registered with the given name at the time this method * is called. Even if it is subsequently unregistered, it will * continue to receive notifications.</p> * * @param name The name of the MBean on which the listener should * be added. * @param listener The object name of the listener which will * handle the notifications emitted by the registered MBean. * @param filter The filter object. If filter is null, no * filtering will be performed before handling notifications. * @param handback The context to be sent to the listener when a * notification is emitted. * * @exception InstanceNotFoundException The MBean name of the * notification listener or of the notification broadcaster does * not match any of the registered MBeans. * @exception RuntimeOperationsException Wraps an {@link * IllegalArgumentException}. The MBean named by * <code>listener</code> exists but does not implement the {@link * NotificationListener} interface. * @exception IOException A communication problem occurred when * talking to the MBean server. */ public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException; /** * Removes a listener from a registered MBean. * * <P> If the listener is registered more than once, perhaps with * different filters or callbacks, this method will remove all * those registrations. * * @param name The name of the MBean on which the listener should * be removed. * @param listener The object name of the listener to be removed. * * @exception InstanceNotFoundException The MBean name provided * does not match any of the registered MBeans. * @exception ListenerNotFoundException The listener is not * registered in the MBean. */ public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException; /** * <p>Removes a listener from a registered MBean.</p> * * <p>The MBean must have a listener that exactly matches the * given <code>listener</code>, <code>filter</code>, and * <code>handback</code> parameters. If there is more than one * such listener, only one is removed.</p> * * <p>The <code>filter</code> and <code>handback</code> parameters * may be null if and only if they are null in a listener to be * removed.</p> * * @param name The name of the MBean on which the listener should * be removed. * @param listener A listener that was previously added to this * MBean. * @param filter The filter that was specified when the listener * was added. * @param handback The handback that was specified when the * listener was added. * * @exception InstanceNotFoundException The MBean name provided * does not match any of the registered MBeans. * @exception ListenerNotFoundException The listener is not * registered in the MBean, or it is not registered with the given * filter and handback. */ public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException; /** * <p>Removes a listener from a registered MBean.</p> * * <P> If the listener is registered more than once, perhaps with * different filters or callbacks, this method will remove all * those registrations. * * @param name The name of the MBean on which the listener should * be removed. * @param listener The listener object which will handle the * notifications emitted by the registered MBean. * * @exception InstanceNotFoundException The MBean name provided * does not match any of the registered MBeans. * @exception ListenerNotFoundException The listener is not * registered in the MBean. */ public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException; /** * <p>Removes a listener from a registered MBean.</p> * * <p>The MBean must have a listener that exactly matches the * given <code>listener</code>, <code>filter</code>, and * <code>handback</code> parameters. If there is more than one * such listener, only one is removed.</p> * * <p>The <code>filter</code> and <code>handback</code> parameters * may be null if and only if they are null in a listener to be * removed.</p> * * @param name The name of the MBean on which the listener should * be removed. * @param listener A listener that was previously added to this * MBean. * @param filter The filter that was specified when the listener * was added. * @param handback The handback that was specified when the * listener was added. * * @exception InstanceNotFoundException The MBean name provided * does not match any of the registered MBeans. * @exception ListenerNotFoundException The listener is not * registered in the MBean, or it is not registered with the given * filter and handback. */ public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException; /** * This method discovers the attributes and operations that an * MBean exposes for management. * * @param name The name of the MBean to analyze * * @return An instance of <CODE>MBeanInfo</CODE> allowing the * retrieval of all attributes and operations of this MBean. * * @exception IntrospectionException An exception occurred during * introspection. * @exception InstanceNotFoundException The MBean specified was * not found. * @exception ReflectionException An exception occurred when * trying to invoke the getMBeanInfo of a Dynamic MBean. */ public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException; /** * Returns true if the MBean specified is an instance of the * specified class, false otherwise. * * @param name The <CODE>ObjectName</CODE> of the MBean. * @param className The name of the class. * * @return true if the MBean specified is an instance of the * specified class, false otherwise. * * @exception InstanceNotFoundException The MBean specified is not * registered in the MBean server. */ public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException; /** * <p>Return the {@link java.lang.ClassLoader} that was used for * loading the class of the named MBean. * @param mbeanName The ObjectName of the MBean. * @return The ClassLoader used for that MBean. * @exception InstanceNotFoundException if the named MBean is not found. */ public ClassLoader getClassLoaderFor(ObjectName mbeanName) throws InstanceNotFoundException; /** * <p>Return the named {@link java.lang.ClassLoader}. * @param loaderName The ObjectName of the ClassLoader. * @return The named ClassLoader. * @exception InstanceNotFoundException if the named ClassLoader is * not found. */ public ClassLoader getClassLoader(ObjectName loaderName) throws InstanceNotFoundException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -