📄 rmiconnection.java
字号:
IOException; /** * Handles the method {@link * javax.management.MBeanServerConnection#getAttributes(ObjectName, * String[])}. * * @param name The object name of the MBean from which the * attributes are retrieved. * @param attributes A list of the attributes to be retrieved. * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @return The list of the retrieved attributes. * * @throws InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @throws ReflectionException An exception occurred when * trying to invoke the getAttributes method of a Dynamic MBean. * @throws RuntimeOperationsException Wrap a * <code>java.lang.IllegalArgumentException</code>: The object * name in parameter is null or attributes in parameter is null. * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. * * @see #setAttributes */ public AttributeList getAttributes(ObjectName name, String[] attributes, Subject delegationSubject) throws InstanceNotFoundException, ReflectionException, IOException; /** * Handles the method {@link * javax.management.MBeanServerConnection#setAttribute(ObjectName, * Attribute)}. The <code>Attribute</code> parameter is wrapped * in a <code>MarshalledObject</code>. * * @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, encapsulated into a * <code>MarshalledObject</code>. * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @throws InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @throws AttributeNotFoundException The attribute specified * is not accessible in the MBean. * @throws InvalidAttributeValueException The value specified * for the attribute is not valid. * @throws MBeanException Wraps an exception thrown by the * MBean's setter. * @throws ReflectionException Wraps a * <code>java.lang.Exception</code> thrown when trying to invoke * the setter. * @throws RuntimeOperationsException Wraps a * <code>java.lang.IllegalArgumentException</code>: The object * name in parameter is null or the attribute in parameter is * null. * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. * * @see #getAttribute */ public void setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException; /** * Handles the method {@link * javax.management.MBeanServerConnection#setAttributes(ObjectName, * AttributeList)}. The <code>AttributeList</code> parameter is * wrapped in a <code>MarshalledObject</code>. * * @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, * encapsulated into a <code>MarshalledObject</code>. * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @return The list of attributes that were set, with their new * values. * * @throws InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @throws ReflectionException An exception occurred when * trying to invoke the getAttributes method of a Dynamic MBean. * @throws RuntimeOperationsException Wraps a * <code>java.lang.IllegalArgumentException</code>: The object * name in parameter is null or attributes in parameter is null. * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. * * @see #getAttributes */ public AttributeList setAttributes(ObjectName name, MarshalledObject attributes, Subject delegationSubject) throws InstanceNotFoundException, ReflectionException, IOException; /** * Handles the method {@link * javax.management.MBeanServerConnection#invoke(ObjectName, * String, Object[], String[])}. The <code>Object[]</code> * parameter is wrapped in a <code>MarshalledObject</code>. * * @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, encapsulated into a * <code>MarshalledObject</code>. The encapsulated array can be * null, equivalent to an empty array. * @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. Can be null, equivalent to an empty * array. * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @return The object returned by the operation, which represents * the result of invoking the operation on the MBean specified. * * @throws InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @throws MBeanException Wraps an exception thrown by the * MBean's invoked method. * @throws ReflectionException Wraps a * <code>java.lang.Exception</code> thrown while trying to invoke * the method. * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. * @throws RuntimeOperationsException Wraps an {@link * IllegalArgumentException} when <code>name</code> or * <code>operationName</code> is null. */ public Object invoke(ObjectName name, String operationName, MarshalledObject params, String signature[], Subject delegationSubject) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException; /** * Handles the method * {@link javax.management.MBeanServerConnection#getDefaultDomain()}. * * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @return the default domain. * * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. */ public String getDefaultDomain(Subject delegationSubject) throws IOException; /** * Handles the method * {@link javax.management.MBeanServerConnection#getDomains()}. * * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @return the list of domains. * * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. */ public String[] getDomains(Subject delegationSubject) throws IOException; /** * Handles the method * {@link javax.management.MBeanServerConnection#getMBeanInfo(ObjectName)}. * * @param name The name of the MBean to analyze * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @return An instance of <code>MBeanInfo</code> allowing the * retrieval of all attributes and operations of this MBean. * * @throws IntrospectionException An exception occured during * introspection. * @throws InstanceNotFoundException The MBean specified was * not found. * @throws ReflectionException An exception occurred when * trying to invoke the getMBeanInfo of a Dynamic MBean. * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. * @throws RuntimeOperationsException Wraps a * <code>java.lang.IllegalArgumentException</code>: The object * name in parameter is null. */ public MBeanInfo getMBeanInfo(ObjectName name, Subject delegationSubject) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException; /** * Handles the method {@link * javax.management.MBeanServerConnection#isInstanceOf(ObjectName, * String)}. * * @param name The <code>ObjectName</code> of the MBean. * @param className The name of the class. * @param delegationSubject The <code>Subject</code> containing the * delegation principals or <code>null</code> if the authentication * principal is used instead. * * @return true if the MBean specified is an instance of the * specified class according to the rules above, false otherwise. * * @throws InstanceNotFoundException The MBean specified is not * registered in the MBean server. * @throws SecurityException if the client, or the delegated Subject * if any, does not have permission to perform this operation. * @throws IOException if a general communication exception occurred. * @throws RuntimeOperationsException Wraps a * <code>java.lang.IllegalArgumentException</code>: The object * name in parameter is null. */ public boolean isInstanceOf(ObjectName name, String className, Subject delegationSubject) throws InstanceNotFoundException, IOException; /** * Handles the method {@link * javax.management.MBeanServerConnection#addNotificationListener(ObjectName,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -