Class RMIConnectionImpl_Stub
- All Implemented Interfaces:
- Closeable,- Serializable,- AutoCloseable,- Remote,- RMIConnection
- Since:
- 1.5
- See Also:
- 
Field SummaryFields declared in class java.rmi.server.RemoteObjectref
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) Integer[]addNotificationListeners(ObjectName[] $param_arrayOf_ObjectName_1, MarshalledObject[] $param_arrayOf_MarshalledObject_2, Subject[] $param_arrayOf_Subject_3) voidclose()Closes this connection.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) Handles the methodMBeanServerConnection.createMBean(String, ObjectName, Object[], String[]).createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, MarshalledObject $param_MarshalledObject_4, String[] $param_arrayOf_String_5, Subject $param_Subject_6) createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, Subject $param_Subject_4) Handles the methodMBeanServerConnection.createMBean(String, ObjectName, ObjectName).createMBean(String $param_String_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.createMBean(String, ObjectName).fetchNotifications(long $param_long_1, int $param_int_2, long $param_long_3) Retrieves notifications from the connector server.getAttribute(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.getAttribute(ObjectName, String).getAttributes(ObjectName $param_ObjectName_1, String[] $param_arrayOf_String_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.getAttributes(ObjectName, String[]).Returns the connection ID.getDefaultDomain(Subject $param_Subject_1) Handles the methodMBeanServerConnection.getDefaultDomain().String[]getDomains(Subject $param_Subject_1) Handles the methodMBeanServerConnection.getDomains().getMBeanCount(Subject $param_Subject_1) Handles the methodMBeanServerConnection.getMBeanCount().getMBeanInfo(ObjectName $param_ObjectName_1, Subject $param_Subject_2) Handles the methodMBeanServerConnection.getMBeanInfo(ObjectName).getObjectInstance(ObjectName $param_ObjectName_1, Subject $param_Subject_2) Handles the methodMBeanServerConnection.getObjectInstance(ObjectName).invoke(ObjectName $param_ObjectName_1, String $param_String_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) Handles the methodMBeanServerConnection.invoke(ObjectName, String, Object[], String[]).booleanisInstanceOf(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.isInstanceOf(ObjectName, String).booleanisRegistered(ObjectName $param_ObjectName_1, Subject $param_Subject_2) Handles the methodMBeanServerConnection.isRegistered(ObjectName).queryMBeans(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.queryMBeans(ObjectName, QueryExp).queryNames(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.queryNames(ObjectName, QueryExp).voidremoveNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) voidremoveNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.removeNotificationListener(ObjectName, ObjectName).voidremoveNotificationListeners(ObjectName $param_ObjectName_1, Integer[] $param_arrayOf_Integer_2, Subject $param_Subject_3) voidsetAttribute(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.setAttribute(ObjectName, Attribute).setAttributes(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) Handles the methodMBeanServerConnection.setAttributes(ObjectName, AttributeList).voidunregisterMBean(ObjectName $param_ObjectName_1, Subject $param_Subject_2) Handles the methodMBeanServerConnection.unregisterMBean(ObjectName).Methods declared in class java.rmi.server.RemoteStubsetRef
- 
Constructor Details- 
RMIConnectionImpl_Stub
 
- 
- 
Method Details- 
addNotificationListenerpublic void addNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) throws IOException, InstanceNotFoundException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object). TheNotificationFilterparameter is wrapped in aMarshalledObject. TheObject(handback) parameter is also wrapped in aMarshalledObject.- Specified by:
- addNotificationListenerin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The name of the MBean on which the listener should be added.
- $param_ObjectName_2- The object name of the listener which will handle the notifications emitted by the registered MBean.
- $param_MarshalledObject_3- The filter object, encapsulated into a- MarshalledObject. If filter encapsulated in the- MarshalledObjecthas a null value, no filtering will be performed before handling notifications.
- $param_MarshalledObject_4- The context to be sent to the listener when a notification is emitted, encapsulated into a- MarshalledObject.
- $param_Subject_5- must be- null.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean name of the notification listener or of the notification broadcaster does not match any of the registered MBeans.
- See Also:
 
- 
addNotificationListenerspublic Integer[] addNotificationListeners(ObjectName[] $param_arrayOf_ObjectName_1, MarshalledObject[] $param_arrayOf_MarshalledObject_2, Subject[] $param_arrayOf_Subject_3) throws IOException, InstanceNotFoundException Description copied from interface:RMIConnectionHandles the method MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object).Register for notifications from the given MBeans that match the given filters. The remote client can subsequently retrieve the notifications using the fetchNotificationsmethod.For each listener, the original NotificationListenerandhandbackare kept on the client side; in order for the client to be able to identify them, the server generates and returns a uniquelistenerID. ThislistenerIDis forwarded with theNotificationsto the remote client.If any one of the given (name, filter) pairs cannot be registered, then the operation fails with an exception, and no names or filters are registered. - Specified by:
- addNotificationListenersin interface- RMIConnection
- Parameters:
- $param_arrayOf_ObjectName_1- the- ObjectNamesidentifying the MBeans emitting the Notifications.
- $param_arrayOf_MarshalledObject_2- an array of marshalled representations of the- NotificationFilters. Elements of this array can be null.
- $param_arrayOf_Subject_3- must be- null, or an array which does not contain any non-null entries.
- Returns:
- an array of listenerIDsidentifying the local listeners. This array has the same number of elements as the parameters.
- Throws:
- UnsupportedOperationException- if- delegationSubjectsis non-null and contains any non-null entries.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- if one of the- namesdoes not correspond to any registered MBean.
 
- 
closeDescription copied from interface:RMIConnectionCloses this connection. On return from this method, the RMI object implementing this interface is unexported, so further remote calls to it will fail. - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- RMIConnection
- Throws:
- IOException- if the connection could not be closed, or the Remote object could not be unexported, or there was a communication failure when transmitting the remote close request.
 
- 
createMBeanpublic ObjectInstance createMBean(String $param_String_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) throws IOException, InstanceAlreadyExistsException, MBeanException, MBeanRegistrationException, NotCompliantMBeanException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.createMBean(String, ObjectName, Object[], String[]). TheObject[]parameter is wrapped in aMarshalledObject.- Specified by:
- createMBeanin interface- RMIConnection
- Parameters:
- $param_String_1- The class name of the MBean to be instantiated.
- $param_ObjectName_2- The object name of the MBean. May be null.
- $param_MarshalledObject_3- An array containing the parameters of the constructor to be invoked, encapsulated into a- MarshalledObject. The encapsulated array can be null, equivalent to an empty array.
- $param_arrayOf_String_4- An array containing the signature of the constructor to be invoked. Can be null, equivalent to an empty array.
- $param_Subject_5- must be- null.
- Returns:
- An ObjectInstance, containing theObjectNameand the Java class name of the newly instantiated MBean. If the containedObjectNameisn, the contained Java class name isgetMBeanInfo(n).getClassName()
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceAlreadyExistsException- The MBean is already under the control of the MBean server.
- MBeanException- The constructor of the MBean has thrown an exception.
- MBeanRegistrationException- The- preRegister(- MBeanRegistrationinterface) method of the MBean has thrown an exception. The MBean will not be registered.
- NotCompliantMBeanException- This class is not a JMX compliant MBean.
- ReflectionException- Wraps a- java.lang.ClassNotFoundExceptionor a- java.lang.Exceptionthat occurred when trying to invoke the MBean's constructor.
 
- 
createMBeanpublic ObjectInstance createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, MarshalledObject $param_MarshalledObject_4, String[] $param_arrayOf_String_5, Subject $param_Subject_6) throws IOException, InstanceAlreadyExistsException, InstanceNotFoundException, MBeanException, MBeanRegistrationException, NotCompliantMBeanException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.createMBean(String, ObjectName, ObjectName, Object[], String[]). TheObject[]parameter is wrapped in aMarshalledObject.- Specified by:
- createMBeanin interface- RMIConnection
- Parameters:
- $param_String_1- The class name of the MBean to be instantiated.
- $param_ObjectName_2- The object name of the MBean. May be null.
- $param_ObjectName_3- The object name of the class loader to be used.
- $param_MarshalledObject_4- An array containing the parameters of the constructor to be invoked, encapsulated into a- MarshalledObject. The encapsulated array can be null, equivalent to an empty array.
- $param_arrayOf_String_5- An array containing the signature of the constructor to be invoked. Can be null, equivalent to an empty array.
- $param_Subject_6- must be- null.
- Returns:
- An ObjectInstance, containing theObjectNameand the Java class name of the newly instantiated MBean. If the containedObjectNameisn, the contained Java class name isgetMBeanInfo(n).getClassName()
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceAlreadyExistsException- The MBean is already under the control of the MBean server.
- InstanceNotFoundException- The specified class loader is not registered in the MBean server.
- MBeanException- The constructor of the MBean has thrown an exception.
- MBeanRegistrationException- The- preRegister(- MBeanRegistrationinterface) method of the MBean has thrown an exception. The MBean will not be registered.
- NotCompliantMBeanException- This class is not a JMX compliant MBean.
- ReflectionException- Wraps a- java.lang.ClassNotFoundExceptionor a- java.lang.Exceptionthat occurred when trying to invoke the MBean's constructor.
 
- 
createMBeanpublic ObjectInstance createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, Subject $param_Subject_4) throws IOException, InstanceAlreadyExistsException, InstanceNotFoundException, MBeanException, MBeanRegistrationException, NotCompliantMBeanException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.createMBean(String, ObjectName, ObjectName).- Specified by:
- createMBeanin interface- RMIConnection
- Parameters:
- $param_String_1- The class name of the MBean to be instantiated.
- $param_ObjectName_2- The object name of the MBean. May be null.
- $param_ObjectName_3- The object name of the class loader to be used.
- $param_Subject_4- must be- null.
- Returns:
- An ObjectInstance, containing theObjectNameand the Java class name of the newly instantiated MBean. If the containedObjectNameisn, the contained Java class name isgetMBeanInfo(n).getClassName()
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceAlreadyExistsException- The MBean is already under the control of the MBean server.
- InstanceNotFoundException- The specified class loader is not registered in the MBean server.
- MBeanException- The constructor of the MBean has thrown an exception.
- MBeanRegistrationException- The- preRegister(- MBeanRegistrationinterface) method of the MBean has thrown an exception. The MBean will not be registered.
- NotCompliantMBeanException- This class is not a JMX compliant MBean.
- ReflectionException- Wraps a- java.lang.ClassNotFoundExceptionor a- java.lang.Exceptionthat occurred when trying to invoke the MBean's constructor.
 
- 
createMBeanpublic ObjectInstance createMBean(String $param_String_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) throws IOException, InstanceAlreadyExistsException, MBeanException, MBeanRegistrationException, NotCompliantMBeanException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.createMBean(String, ObjectName).- Specified by:
- createMBeanin interface- RMIConnection
- Parameters:
- $param_String_1- The class name of the MBean to be instantiated.
- $param_ObjectName_2- The object name of the MBean. May be null.
- $param_Subject_3- must be- null.
- Returns:
- An ObjectInstance, containing theObjectNameand the Java class name of the newly instantiated MBean. If the containedObjectNameisn, the contained Java class name isgetMBeanInfo(n).getClassName()
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceAlreadyExistsException- The MBean is already under the control of the MBean server.
- MBeanException- The constructor of the MBean has thrown an exception.
- MBeanRegistrationException- The- preRegister(- MBeanRegistrationinterface) method of the MBean has thrown an exception. The MBean will not be registered.
- NotCompliantMBeanException- This class is not a JMX compliant MBean.
- ReflectionException- Wraps a- java.lang.ClassNotFoundExceptionor a- java.lang.Exceptionthat occurred when trying to invoke the MBean's constructor.
 
- 
fetchNotificationspublic NotificationResult fetchNotifications(long $param_long_1, int $param_int_2, long $param_long_3) throws IOException Description copied from interface:RMIConnectionRetrieves notifications from the connector server. This method can block until there is at least one notification or until the specified timeout is reached. The method can also return at any time with zero notifications. A notification can be included in the result if its sequence number is no less than clientSequenceNumberand this client has registered at least one listener for the MBean generating the notification, with a filter that accepts the notification. Each listener that is interested in the notification is identified by an Integer ID that was returned byRMIConnection.addNotificationListeners(ObjectName[], MarshalledObject[], Subject[]).- Specified by:
- fetchNotificationsin interface- RMIConnection
- Parameters:
- $param_long_1- the first sequence number that the client is interested in. If negative, it is interpreted as meaning the sequence number that the next notification will have.
- $param_int_2- the maximum number of different notifications to return. The- TargetedNotificationarray in the returned- NotificationResultcan have more elements than this if the same notification appears more than once. The behavior is unspecified if this parameter is negative.
- $param_long_3- the maximum time in milliseconds to wait for a notification to arrive. This can be 0 to indicate that the method should not wait if there are no notifications, but should return at once. It can be- Long.MAX_VALUEto indicate that there is no timeout. The behavior is unspecified if this parameter is negative.
- Returns:
- A NotificationResult.
- Throws:
- IOException- if a general communication exception occurred.
 
- 
getAttributepublic Object getAttribute(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) throws IOException, AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.getAttribute(ObjectName, String).- Specified by:
- getAttributein interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The object name of the MBean from which the attribute is to be retrieved.
- $param_String_2- A String specifying the name of the attribute to be retrieved.
- $param_Subject_3- must be- null.
- Returns:
- The value of the retrieved attribute.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- AttributeNotFoundException- The attribute specified is not accessible in the MBean.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
- MBeanException- Wraps an exception thrown by the MBean's getter.
- ReflectionException- Wraps a- java.lang.Exceptionthrown when trying to invoke the getter.
- See Also:
 
- 
getAttributespublic AttributeList getAttributes(ObjectName $param_ObjectName_1, String[] $param_arrayOf_String_2, Subject $param_Subject_3) throws IOException, InstanceNotFoundException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.getAttributes(ObjectName, String[]).- Specified by:
- getAttributesin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The object name of the MBean from which the attributes are retrieved.
- $param_arrayOf_String_2- A list of the attributes to be retrieved.
- $param_Subject_3- must be- null.
- Returns:
- The list of the retrieved attributes.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
- ReflectionException- An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
- See Also:
 
- 
getConnectionIdDescription copied from interface:RMIConnectionReturns the connection ID. This string is different for every open connection to a given RMI connector server. - Specified by:
- getConnectionIdin interface- RMIConnection
- Returns:
- the connection ID
- Throws:
- IOException- if a general communication exception occurred.
- See Also:
 
- 
getDefaultDomainDescription copied from interface:RMIConnectionHandles the methodMBeanServerConnection.getDefaultDomain().- Specified by:
- getDefaultDomainin interface- RMIConnection
- Parameters:
- $param_Subject_1- must be- null.
- Returns:
- the default domain.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
 
- 
getDomainsDescription copied from interface:RMIConnectionHandles the methodMBeanServerConnection.getDomains().- Specified by:
- getDomainsin interface- RMIConnection
- Parameters:
- $param_Subject_1- must be- null.
- Returns:
- the list of domains.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
 
- 
getMBeanCountDescription copied from interface:RMIConnectionHandles the methodMBeanServerConnection.getMBeanCount().- Specified by:
- getMBeanCountin interface- RMIConnection
- Parameters:
- $param_Subject_1- must be- null.
- Returns:
- the number of MBeans registered.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
 
- 
getMBeanInfopublic MBeanInfo getMBeanInfo(ObjectName $param_ObjectName_1, Subject $param_Subject_2) throws IOException, InstanceNotFoundException, IntrospectionException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.getMBeanInfo(ObjectName).- Specified by:
- getMBeanInfoin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The name of the MBean to analyze
- $param_Subject_2- must be- null.
- Returns:
- An instance of MBeanInfoallowing the retrieval of all attributes and operations of this MBean.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean specified was not found.
- IntrospectionException- An exception occurred during introspection.
- ReflectionException- An exception occurred when trying to invoke the getMBeanInfo of a Dynamic MBean.
 
- 
getObjectInstancepublic ObjectInstance getObjectInstance(ObjectName $param_ObjectName_1, Subject $param_Subject_2) throws IOException, InstanceNotFoundException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.getObjectInstance(ObjectName).- Specified by:
- getObjectInstancein interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The object name of the MBean.
- $param_Subject_2- must be- null.
- Returns:
- The ObjectInstanceassociated with the MBean specified by name. The containedObjectNameisnameand the contained class name isgetMBeanInfo(name).getClassName()
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
 
- 
invokepublic Object invoke(ObjectName $param_ObjectName_1, String $param_String_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) throws IOException, InstanceNotFoundException, MBeanException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.invoke(ObjectName, String, Object[], String[]). TheObject[]parameter is wrapped in aMarshalledObject.- Specified by:
- invokein interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The object name of the MBean on which the method is to be invoked.
- $param_String_2- The name of the operation to be invoked.
- $param_MarshalledObject_3- An array containing the parameters to be set when the operation is invoked, encapsulated into a- MarshalledObject. The encapsulated array can be null, equivalent to an empty array.
- $param_arrayOf_String_4- 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_Subject_5- must be- null.
- Returns:
- The object returned by the operation, which represents the result of invoking the operation on the MBean specified.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
- MBeanException- Wraps an exception thrown by the MBean's invoked method.
- ReflectionException- Wraps a- java.lang.Exceptionthrown while trying to invoke the method.
 
- 
isInstanceOfpublic boolean isInstanceOf(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) throws IOException, InstanceNotFoundException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.isInstanceOf(ObjectName, String).- Specified by:
- isInstanceOfin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The- ObjectNameof the MBean.
- $param_String_2- The name of the class.
- $param_Subject_3- must be- null.
- Returns:
- true if the MBean specified is an instance of the specified class according to the rules above, false otherwise.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
 
- 
isRegisteredpublic boolean isRegistered(ObjectName $param_ObjectName_1, Subject $param_Subject_2) throws IOException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.isRegistered(ObjectName).- Specified by:
- isRegisteredin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The object name of the MBean to be checked.
- $param_Subject_2- must be- null.
- Returns:
- True if the MBean is already registered in the MBean server, false otherwise.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
 
- 
queryMBeanspublic Set queryMBeans(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) throws IOException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.queryMBeans(ObjectName, QueryExp). TheQueryExpis wrapped in aMarshalledObject.- Specified by:
- queryMBeansin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- 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_MarshalledObject_2- The query expression to be applied for selecting MBeans, encapsulated into a- MarshalledObject. If the- MarshalledObjectencapsulates a null value no query expression will be applied for selecting MBeans.
- $param_Subject_3- must be- null.
- Returns:
- A set containing the ObjectInstanceobjects for the selected MBeans. If no MBean satisfies the query an empty list is returned.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
 
- 
queryNamespublic Set queryNames(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) throws IOException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.queryNames(ObjectName, QueryExp). TheQueryExpis wrapped in aMarshalledObject.- Specified by:
- queryNamesin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- 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_MarshalledObject_2- The query expression to be applied for selecting MBeans, encapsulated into a- MarshalledObject. If the- MarshalledObjectencapsulates a null value no query expression will be applied for selecting MBeans.
- $param_Subject_3- must be- null.
- Returns:
- A set containing the ObjectNames for the MBeans selected. If no MBean satisfies the query, an empty list is returned.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
 
- 
removeNotificationListenerpublic void removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5) throws IOException, InstanceNotFoundException, ListenerNotFoundException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.removeNotificationListener(ObjectName, ObjectName, NotificationFilter, Object). TheNotificationFilterparameter is wrapped in aMarshalledObject. TheObjectparameter is also wrapped in aMarshalledObject.- Specified by:
- removeNotificationListenerin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The name of the MBean on which the listener should be removed.
- $param_ObjectName_2- A listener that was previously added to this MBean.
- $param_MarshalledObject_3- The filter that was specified when the listener was added, encapsulated into a- MarshalledObject.
- $param_MarshalledObject_4- The handback that was specified when the listener was added, encapsulated into a- MarshalledObject.
- $param_Subject_5- must be- null.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean name provided does not match any of the registered MBeans.
- ListenerNotFoundException- The listener is not registered in the MBean, or it is not registered with the given filter and handback.
- See Also:
 
- 
removeNotificationListenerpublic void removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) throws IOException, InstanceNotFoundException, ListenerNotFoundException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.removeNotificationListener(ObjectName, ObjectName).- Specified by:
- removeNotificationListenerin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The name of the MBean on which the listener should be removed.
- $param_ObjectName_2- The object name of the listener to be removed.
- $param_Subject_3- must be- null.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean name provided does not match any of the registered MBeans.
- ListenerNotFoundException- The listener is not registered in the MBean.
- See Also:
 
- 
removeNotificationListenerspublic void removeNotificationListeners(ObjectName $param_ObjectName_1, Integer[] $param_arrayOf_Integer_2, Subject $param_Subject_3) throws IOException, InstanceNotFoundException, ListenerNotFoundException Description copied from interface:RMIConnectionHandles the removeNotificationListener(ObjectName, NotificationListener)andremoveNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object)methods.This method removes one or more NotificationListeners from a given MBean in the MBean server.The NotificationListenersare identified by the IDs which were returned by theRMIConnection.addNotificationListeners(ObjectName[], MarshalledObject[], Subject[])method.- Specified by:
- removeNotificationListenersin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- the- ObjectNameidentifying the MBean emitting the Notifications.
- $param_arrayOf_Integer_2- the list of the IDs corresponding to the listeners to remove.
- $param_Subject_3- must be- null.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- if the given- namedoes not correspond to any registered MBean.
- ListenerNotFoundException- if one of the listeners was not found on the server side. This exception can happen if the MBean discarded a listener for some reason other than a call to- MBeanServer.removeNotificationListener.
 
- 
setAttributepublic void setAttribute(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) throws IOException, AttributeNotFoundException, InstanceNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.setAttribute(ObjectName, Attribute). TheAttributeparameter is wrapped in aMarshalledObject.- Specified by:
- setAttributein interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The name of the MBean within which the attribute is to be set.
- $param_MarshalledObject_2- The identification of the attribute to be set and the value it is to be set to, encapsulated into a- MarshalledObject.
- $param_Subject_3- must be- null.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- AttributeNotFoundException- The attribute specified is not accessible in the MBean.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
- InvalidAttributeValueException- The value specified for the attribute is not valid.
- MBeanException- Wraps an exception thrown by the MBean's setter.
- ReflectionException- Wraps a- java.lang.Exceptionthrown when trying to invoke the setter.
- See Also:
 
- 
setAttributespublic AttributeList setAttributes(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) throws IOException, InstanceNotFoundException, ReflectionException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.setAttributes(ObjectName, AttributeList). TheAttributeListparameter is wrapped in aMarshalledObject.- Specified by:
- setAttributesin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The object name of the MBean within which the attributes are to be set.
- $param_MarshalledObject_2- A list of attributes: The identification of the attributes to be set and the values they are to be set to, encapsulated into a- MarshalledObject.
- $param_Subject_3- must be- null.
- Returns:
- The list of attributes that were set, with their new values.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
- ReflectionException- An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
- See Also:
 
- 
unregisterMBeanpublic void unregisterMBean(ObjectName $param_ObjectName_1, Subject $param_Subject_2) throws IOException, InstanceNotFoundException, MBeanRegistrationException Description copied from interface:RMIConnectionHandles the methodMBeanServerConnection.unregisterMBean(ObjectName).- Specified by:
- unregisterMBeanin interface- RMIConnection
- Parameters:
- $param_ObjectName_1- The object name of the MBean to be unregistered.
- $param_Subject_2- must be- null.
- Throws:
- UnsupportedOperationException- if- delegationSubjectis non-null.
- IOException- if a general communication exception occurred.
- InstanceNotFoundException- The MBean specified is not registered in the MBean server.
- MBeanRegistrationException- The preDeregister (- MBeanRegistrationinterface) method of the MBean has thrown an exception.
 
 
-