⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rmiconnection.java

📁 JAVA的一些源码 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
	IOException;    /**     * Handles the method {@link     * javax.management.MBeanServerConnection#createMBean(String,     * ObjectName, ObjectName, Object[], String[])}.  The     * <code>Object[]</code> parameter is wrapped in a     * <code>MarshalledObject</code>.     *     * @param className The class name of the MBean to be instantiated.     * @param name The object name of the MBean. May be null.     * @param loaderName The object name of the class loader to be used.     * @param params An array containing the parameters of the     * constructor to be 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     * constructor to be 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 An <code>ObjectInstance</code>, containing the     * <code>ObjectName</code> and the Java class name of the newly     * instantiated MBean.  If the contained <code>ObjectName</code>     * is <code>n</code>, the contained Java class name is     * <code>{@link #getMBeanInfo getMBeanInfo(n)}.getClassName()</code>.     *     * @throws ReflectionException Wraps a     * <code>java.lang.ClassNotFoundException</code> or a     * <code>java.lang.Exception</code> that occurred when trying to     * invoke the MBean's constructor.     * @throws InstanceAlreadyExistsException The MBean is already     * under the control of the MBean server.     * @throws MBeanRegistrationException The     * <code>preRegister</code> (<code>MBeanRegistration</code>     * interface) method of the MBean has thrown an exception. The     * MBean will not be registered.     * @throws MBeanException The constructor of the MBean has     * thrown an exception.     * @throws NotCompliantMBeanException This class is not a JMX     * compliant MBean.     * @throws InstanceNotFoundException The specified class loader     * is not registered in the MBean server.     * @throws RuntimeOperationsException Wraps a     * <code>java.lang.IllegalArgumentException</code>: The className     * passed in parameter is null, the <code>ObjectName</code> passed     * in parameter contains a pattern, or no <code>ObjectName</code>     * is specified for the 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.     */    public ObjectInstance createMBean(String className,                                      ObjectName name,                                      ObjectName loaderName,                                      MarshalledObject params,                                      String signature[],				      Subject delegationSubject)	throws	ReflectionException,	InstanceAlreadyExistsException,	MBeanRegistrationException,	MBeanException,	NotCompliantMBeanException,	InstanceNotFoundException,	IOException;    /**     * Handles the method     * {@link javax.management.MBeanServerConnection#unregisterMBean(ObjectName)}.     *     * @param name The object name of the MBean to be unregistered.     * @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 MBeanRegistrationException The preDeregister     * ((<code>MBeanRegistration</code> interface) method of the MBean     * has thrown an exception.     * @throws RuntimeOperationsException Wraps a     * <code>java.lang.IllegalArgumentException</code>: The object     * name in parameter is null or the MBean you are when trying to     * unregister is the {@link javax.management.MBeanServerDelegate     * MBeanServerDelegate} 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.     */    public void unregisterMBean(ObjectName name, Subject delegationSubject)	throws	InstanceNotFoundException,	MBeanRegistrationException,	IOException;    /**     * Handles the method     * {@link javax.management.MBeanServerConnection#getObjectInstance(ObjectName)}.     *     * @param name The object name of the MBean.     * @param delegationSubject The <code>Subject</code> containing the     * delegation principals or <code>null</code> if the authentication     * principal is used instead.     *     * @return The <code>ObjectInstance</code> associated with the MBean     * specified by <var>name</var>.  The contained <code>ObjectName</code>     * is <code>name</code> and the contained class name is     * <code>{@link #getMBeanInfo getMBeanInfo(name)}.getClassName()</code>.     *     * @throws InstanceNotFoundException The MBean specified is not     * registered in the MBean server.     * @throws RuntimeOperationsException Wraps a     * <code>java.lang.IllegalArgumentException</code>: The object     * name 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.     */    public ObjectInstance getObjectInstance(ObjectName name,					    Subject delegationSubject)	throws InstanceNotFoundException, IOException;    /**     * Handles the method {@link     * javax.management.MBeanServerConnection#queryMBeans(ObjectName,     * QueryExp)}.  The <code>QueryExp</code> is wrapped in a     * <code>MarshalledObject</code>.     *     * @param name The object name pattern identifying the MBeans to     * be retrieved. If null or no domain and key properties are     * specified, all the MBeans registered will be retrieved.     * @param query The query expression to be applied for selecting     * MBeans, encapsulated into a <code>MarshalledObject</code>. If     * the <code>MarshalledObject</code> encapsulates a null value no     * query expression will be applied for selecting MBeans.     * @param delegationSubject The <code>Subject</code> containing the     * delegation principals or <code>null</code> if the authentication     * principal is used instead.     *     * @return A set containing the <code>ObjectInstance</code>     * objects for the selected MBeans.  If no MBean satisfies the     * query an empty list is returned.     *     * @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 Set<ObjectInstance>	queryMBeans(ObjectName name,		    MarshalledObject query,		    Subject delegationSubject)	throws IOException;    /**     * Handles the method {@link     * javax.management.MBeanServerConnection#queryNames(ObjectName,     * QueryExp)}.  The <code>QueryExp</code> is wrapped in a     * <code>MarshalledObject</code>.     *     * @param name The object name pattern identifying the MBean names     * to be retrieved. If null or no domain and key properties are     * specified, the name of all registered MBeans will be retrieved.     * @param query The query expression to be applied for selecting     * MBeans, encapsulated into a <code>MarshalledObject</code>. If     * the <code>MarshalledObject</code> encapsulates a null value no     * query expression will be applied for selecting MBeans.     * @param delegationSubject The <code>Subject</code> containing the     * delegation principals or <code>null</code> if the authentication     * principal is used instead.     *     * @return A set containing the ObjectNames for the MBeans     * selected.  If no MBean satisfies the query, an empty list is     * returned.     *     * @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 Set<ObjectName>	queryNames(ObjectName name,		   MarshalledObject query,		   Subject delegationSubject)	throws IOException;    /**     * Handles the method     * {@link javax.management.MBeanServerConnection#isRegistered(ObjectName)}.     *     * @param name The object name of the MBean to be checked.     * @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 is already registered in the MBean     * server, false otherwise.     *     * @throws RuntimeOperationsException Wraps a     * <code>java.lang.IllegalArgumentException</code>: The object     * name 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.     */    public boolean isRegistered(ObjectName name, Subject delegationSubject)	throws IOException;    /**     * Handles the method     * {@link javax.management.MBeanServerConnection#getMBeanCount()}.     *     * @param delegationSubject The <code>Subject</code> containing the     * delegation principals or <code>null</code> if the authentication     * principal is used instead.     *     * @return the number of MBeans registered.     *     * @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 Integer getMBeanCount(Subject delegationSubject)	throws IOException;    /**     * Handles the method {@link     * javax.management.MBeanServerConnection#getAttribute(ObjectName,     * String)}.     *     * @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.     * @param delegationSubject The <code>Subject</code> containing the     * delegation principals or <code>null</code> if the authentication     * principal is used instead.     *     * @return	The value of the retrieved attribute.     *     * @throws AttributeNotFoundException The attribute specified     * is not accessible in the MBean.     * @throws MBeanException Wraps an exception thrown by the     * MBean's getter.     * @throws InstanceNotFoundException The MBean specified is not     * registered in the MBean server.     * @throws ReflectionException Wraps a     * <code>java.lang.Exception</code> thrown when trying to invoke     * the getter.     * @throws RuntimeOperationsException Wraps a     * <code>java.lang.IllegalArgumentException</code>: The object     * name in parameter is null or the attribute in parameter is     * null.     * @throws RuntimeMBeanException Wraps a runtime exception thrown     * by the MBean's getter.     * @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 #setAttribute     */    public Object getAttribute(ObjectName name,                               String attribute,			       Subject delegationSubject)	throws	MBeanException,	AttributeNotFoundException,	InstanceNotFoundException,	ReflectionException,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -