📄 mejbwebservicebean.java
字号:
management.NotCompliantMBeanException, java.rmi.RemoteException; public javax.management.ObjectInstance createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MBeanException, javax.management.NotCompliantMBeanException, javax.management.InstanceNotFoundException, java.rmi.RemoteException; public javax.management.ObjectInstance registerMBean(java.lang.Object, javax.management.ObjectName) throws javax.management.InstanceAlreadyExistsException,javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException, java.rmi.RemoteException; public void unregisterMBean(javax.management.ObjectName) throws javax.management.InstanceNotFoundException, javax.management.MBeanRegistrationException, java.rmi.RemoteException; public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName) throws javax.management.InstanceNotFoundException, java.rmi.RemoteException; public java.util.Set queryMBeans(javax.management.ObjectName, javax.management.QueryExp) throws java.rmi.RemoteException; public void addNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) throws javax.management.InstanceNotFoundException, java.rmi.RemoteException; public void addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) throwsjavax.management.InstanceNotFoundException, java.rmi.RemoteException; public void removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException, java.rmi.RemoteException; public void removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException, java.rmi.RemoteException; public boolean isInstanceOf(javax.management.ObjectName, java.lang.String) throws javax.management.InstanceNotFoundException, java.rmi.RemoteException; static {};} **/ } // Additional MBeanServer interface implementation starts here /** * Instantiates an object using the list of all class loaders registered * in the MBean server ({ javax.management.loading.DefaultLoaderRepository Default Loader Repository}). * The object's class should have a public constructor. It returns a reference to the newly created object. * The newly created object is not registered in the MBean server. * @param className The class name of the object to be instantiated. * @return The newly instantiated object. * @exception ReflectionException Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or the * <CODE>java.lang.Exception</CODE> that occurred when trying to invoke the object's constructor. * @exception MBeanException The constructor of the object has thrown an exception * @exception RuntimeOperationsException Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The className * passed in parameter is null. */ public Object instantiate(String className) throws javax.management.ReflectionException, MBeanException, RemoteException { return this.mejbUtility.instantiate(className); } /** * Instantiates an object using the class Loader specified by its <CODE>ObjectName</CODE>. * If the loader name is null, the ClassLoader that loaded the MBean Server will be used. * The object's class should have a public constructor. It returns a reference to the newly created object. * The newly created object is not registered in the MBean server. * @param className The class name of the MBean to be instantiated. * @param loaderName The object name of the class loader to be used. * @return The newly instantiated object. * @exception ReflectionException Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or the * <CODE>java.lang.Exception</CODE> that occurred when trying to invoke the object's constructor. * @exception MBeanException The constructor of the object has thrown an exception. * @exception InstanceNotFoundException The specified class loader is not registered in the MBaenServer. * @exception RuntimeOperationsException Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The className * passed in parameter is null. */ public Object instantiate(String className, ObjectName loaderName) throws javax.management.ReflectionException, MBeanException, javax.management.InstanceNotFoundException, RemoteException { return this.mejbUtility.instantiate(className, loaderName); } /** * Instantiates an object using the list of all class loaders registered * in the MBean server ({ javax.management.loading.DefaultLoaderRepository Default Loader Repository}). * The object's class should have a public constructor. The call returns a reference to the newly created object. * The newly created object is not registered in the MBean server. * @param className The class name of the object to be instantiated. * @param params An array containing the parameters of the constructor to be invoked. * @param signature An array containing the signature of the constructor to be invoked. * @return The newly instantiated object. * @exception ReflectionException Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or the * <CODE>java.lang.Exception</CODE> that occurred when trying to invoke the object's constructor. * @exception MBeanException The constructor of the object has thrown an exception * @exception RuntimeOperationsException Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The className * passed in parameter is null. */ public Object instantiate(String className, Object[] params, String[] signature) throws javax.management.ReflectionException, MBeanException, RemoteException { return this.mejbUtility.instantiate(className, params, signature); } /** * Instantiates an object. The class loader to be used is identified by its object * name. If the object name of the loader is null, the ClassLoader that loaded the MBean server will be used. * The object's class should have a public constructor. The call returns a reference to the newly created object. * The newly created object is not registered in the MBean server. * @param className The class name of the object to be instantiated. * @param params An array containing the parameters of the constructor to be invoked. * @param signature An array containing the signature of the constructor to be invoked. * @param loaderName The object name of the class loader to be used. * @return The newly instantiated object. * @exception ReflectionException Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or the * <CODE>java.lang.Exception</CODE> that occurred when trying to invoke the object's constructor. * @exception MBeanException The constructor of the object has thrown an exception * @exception InstanceNotFoundException The specified class loader is not registered in the MBean server. * @exception RuntimeOperationsException Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The className * passed in parameter is null. */ public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws javax.management.ReflectionException, MBeanException, javax.management.InstanceNotFoundException, RemoteException { return this.mejbUtility.instantiate(className, loaderName, params, signature); } /** * Instantiates and registers an MBean in the MBean server. The MBean server will use the { * javax.management.loading.DefaultLoaderRepository Default Loader Repository} to load the class of the MBean. * An object name is associated to the MBean. If the object name given is null, the MBean can automatically provide its * own name by implementing the { javax.management.MBeanRegistration MBeanRegistration} interface. The call returns * an <CODE>ObjectInstance</CODE> object representing the newly created MBean. * @param className The class name of the MBean to be instantiated. * @param name The object name of the MBean. May be null. * @return An <CODE>ObjectInstance</CODE>, containing the <CODE>ObjectName</CODE> and the Java class name * of the newly instantiated MBean. * @exception ReflectionException Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or a * <CODE><CODE>java.lang.Exception</CODE></CODE> that occurred when trying to invoke the MBean's constructor. * @exception InstanceAlreadyExistsException The MBean is already under the control of the MBean server. * @exception MBeanRegistrationException The <CODE>preRegister</CODE> (<CODE>MBeanRegistration</CODE> interface) method of * the MBean has thrown an exception. The MBean will not be registered. * @exception MBeanException The constructor of the MBean has thrown an exception * @exception NotCompliantMBeanException This class is not a JMX compliant MBean * @exception 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. */ public ObjectInstance createMBean(String className, ObjectName name) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, RemoteException { return this.mejbUtility.createMBean(className, name); } /** * Instantiates and registers an MBean in the MBean server. The class loader to be used is identified by its object name. * An object name is associated to the MBean. If the object name of the loader is null, the ClassLoader that loaded the * MBean server will be used. If the MBean's object name given is null, the MBean can automatically provide its * own name by implementing the { javax.management.MBeanRegistration MBeanRegistration} interface. The call returns * an <CODE>ObjectInstance</CODE> object representing the newly created MBean. * @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. * @return An <CODE>ObjectInstance</CODE>, containing the <CODE>ObjectName</CODE> and the Java class name * of the newly instantiated MBean. * @exception 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. * @exception InstanceAlreadyExistsException The MBean is already under the control of the MBean server. * @exception MBeanRegistrationException The <CODE>preRegister</CODE> (<CODE>MBeanRegistration</CODE> interface) method * of the MBean has thrown an exception. The MBean will not be registered. * @exception MBeanException The constructor of the MBean has thrown an exception * @exception NotCompliantMBeanException This class is not a JMX compliant MBean * @exception InstanceNotFoundException The specified class loader is not registered in the MBean server. * @exception 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. */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, javax.management.InstanceNotFoundException, RemoteException { return this.mejbUtility.createMBean(className, name, loaderName); } /** * Instantiates and registers an MBean in the MBean server. * The MBean server will use the { javax.management.loading.DefaultLoaderRepository Default Loader Repository} * to load the class of the MBean. An object name is associated to the MBean. If the object name given is null, the MBean * can automatically provide its own name by implementing the { javax.management.MBeanRegistration MBeanRegistration} * interface. The call returns an <CODE>ObjectInstance</CODE> object representing the newly created MBean. * @param className The class name of the MBean to be instantiated. * @param name The object name of the MBean. May be null. * @param params An array containing the parameters of the constructor to be invoked. * @param signature An array containing the signature of the constructor to be invoked. * @return An <CODE>ObjectInstance</CODE>, containing the <CODE>ObjectName</CODE> and the Java class name * of the newly instantiated MBean. * @exception 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. * @exception InstanceAlreadyExistsException The MBean is already under the control of the MBean server. * @exception MBeanRegistrationException The <CODE>preRegister</CODE> (<CODE>MBeanRegistration</CODE> interface) method * of the MBean has thrown an exception. The MBean will not be registered. * @exception MBeanException The constructor of the MBean has thrown an exception * @exception 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. */ public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, RemoteException { return this.mejbUtility.createMBean(className, name, params, signature); } /**
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -