javax.management.remote.rmi
Interface RMIConnection

All Superinterfaces:
Remote sample code for java.rmi.Remote definition code for java.rmi.Remote
All Known Implementing Classes:
RMIConnectionImpl sample code for javax.management.remote.rmi.RMIConnectionImpl definition code for javax.management.remote.rmi.RMIConnectionImpl , RMIConnectionImpl_Stub sample code for javax.management.remote.rmi.RMIConnectionImpl_Stub definition code for javax.management.remote.rmi.RMIConnectionImpl_Stub

public interface RMIConnection
extends Remote sample code for java.rmi.Remote definition code for java.rmi.Remote

RMI object used to forward an MBeanServer request from a client to its MBeanServer implementation on the server side. There is one Remote object implementing this interface for each remote client connected to an RMI connector.

User code does not usually refer to this interface. It is specified as part of the public API so that different implementations of that API will interoperate.

To ensure that client parameters will be deserialized at the server side with the correct classloader, client parameters such as parameters used to invoke a method are wrapped in a MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject . An implementation of this interface must first get the appropriate class loader for the operation and its target, then deserialize the marshalled parameters with this classloader. Except as noted, a parameter that is a MarshalledObject or MarshalledObject[] must not be null; the behavior is unspecified if it is.

Class loading aspects are detailed in the companion document JMX Remote API, which completes this documentation. It should be available as a PDF document in the same place as this Javadoc specification.

Since:
1.5

Method Summary
 void addNotificationListener sample code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  listener, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  filter, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  handback, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) .
 Integer sample code for java.lang.Integer definition code for java.lang.Integer [] addNotificationListeners sample code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[]) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[]) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName [] names, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject [] filters, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject [] delegationSubjects)
          Handles the method MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) .
 void close sample code for javax.management.remote.rmi.RMIConnection.close() definition code for javax.management.remote.rmi.RMIConnection.close() ()
          Closes this connection.
 ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) (String sample code for java.lang.String definition code for java.lang.String  className, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  params, String sample code for java.lang.String definition code for java.lang.String [] signature, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.createMBean(String, ObjectName, Object[], String[]) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) .
 ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) (String sample code for java.lang.String definition code for java.lang.String  className, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  loaderName, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  params, String sample code for java.lang.String definition code for java.lang.String [] signature, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.createMBean(String, ObjectName, ObjectName, Object[], String[]) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) .
 ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) (String sample code for java.lang.String definition code for java.lang.String  className, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  loaderName, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.createMBean(String, ObjectName, ObjectName) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName) .
 ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.security.auth.Subject) (String sample code for java.lang.String definition code for java.lang.String  className, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.createMBean(String, ObjectName) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName) .
 NotificationResult sample code for javax.management.remote.NotificationResult definition code for javax.management.remote.NotificationResult fetchNotifications sample code for javax.management.remote.rmi.RMIConnection.fetchNotifications(long, int, long) definition code for javax.management.remote.rmi.RMIConnection.fetchNotifications(long, int, long) (long clientSequenceNumber, int maxNotifications, long timeout)
          Retrieves notifications from the connector server.
 Object sample code for java.lang.Object definition code for java.lang.Object getAttribute sample code for javax.management.remote.rmi.RMIConnection.getAttribute(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getAttribute(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, String sample code for java.lang.String definition code for java.lang.String  attribute, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.getAttribute(ObjectName, String) sample code for javax.management.MBeanServerConnection.getAttribute(javax.management.ObjectName, java.lang.String) definition code for javax.management.MBeanServerConnection.getAttribute(javax.management.ObjectName, java.lang.String) .
 AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList getAttributes sample code for javax.management.remote.rmi.RMIConnection.getAttributes(javax.management.ObjectName, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getAttributes(javax.management.ObjectName, java.lang.String[], javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, String sample code for java.lang.String definition code for java.lang.String [] attributes, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.getAttributes(ObjectName, String[]) sample code for javax.management.MBeanServerConnection.getAttributes(javax.management.ObjectName, java.lang.String[]) definition code for javax.management.MBeanServerConnection.getAttributes(javax.management.ObjectName, java.lang.String[]) .
 String sample code for java.lang.String definition code for java.lang.String getConnectionId sample code for javax.management.remote.rmi.RMIConnection.getConnectionId() definition code for javax.management.remote.rmi.RMIConnection.getConnectionId() ()
          Returns the connection ID.
 String sample code for java.lang.String definition code for java.lang.String getDefaultDomain sample code for javax.management.remote.rmi.RMIConnection.getDefaultDomain(javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getDefaultDomain(javax.security.auth.Subject) (Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.getDefaultDomain() sample code for javax.management.MBeanServerConnection.getDefaultDomain() definition code for javax.management.MBeanServerConnection.getDefaultDomain() .
 String sample code for java.lang.String definition code for java.lang.String [] getDomains sample code for javax.management.remote.rmi.RMIConnection.getDomains(javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getDomains(javax.security.auth.Subject) (Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.getDomains() sample code for javax.management.MBeanServerConnection.getDomains() definition code for javax.management.MBeanServerConnection.getDomains() .
 Integer sample code for java.lang.Integer definition code for java.lang.Integer getMBeanCount sample code for javax.management.remote.rmi.RMIConnection.getMBeanCount(javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanCount(javax.security.auth.Subject) (Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.getMBeanCount() sample code for javax.management.MBeanServerConnection.getMBeanCount() definition code for javax.management.MBeanServerConnection.getMBeanCount() .
 MBeanInfo sample code for javax.management.MBeanInfo definition code for javax.management.MBeanInfo getMBeanInfo sample code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.getMBeanInfo(ObjectName) sample code for javax.management.MBeanServerConnection.getMBeanInfo(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.getMBeanInfo(javax.management.ObjectName) .
 ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance getObjectInstance sample code for javax.management.remote.rmi.RMIConnection.getObjectInstance(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getObjectInstance(javax.management.ObjectName, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.getObjectInstance(ObjectName) sample code for javax.management.MBeanServerConnection.getObjectInstance(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.getObjectInstance(javax.management.ObjectName) .
 Object sample code for java.lang.Object definition code for java.lang.Object invoke sample code for javax.management.remote.rmi.RMIConnection.invoke(javax.management.ObjectName, java.lang.String, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.invoke(javax.management.ObjectName, java.lang.String, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, String sample code for java.lang.String definition code for java.lang.String  operationName, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  params, String sample code for java.lang.String definition code for java.lang.String [] signature, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.invoke(ObjectName, String, Object[], String[]) sample code for javax.management.MBeanServerConnection.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[]) definition code for javax.management.MBeanServerConnection.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[]) .
 boolean isInstanceOf sample code for javax.management.remote.rmi.RMIConnection.isInstanceOf(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.isInstanceOf(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, String sample code for java.lang.String definition code for java.lang.String  className, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.isInstanceOf(ObjectName, String) sample code for javax.management.MBeanServerConnection.isInstanceOf(javax.management.ObjectName, java.lang.String) definition code for javax.management.MBeanServerConnection.isInstanceOf(javax.management.ObjectName, java.lang.String) .
 boolean isRegistered sample code for javax.management.remote.rmi.RMIConnection.isRegistered(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.isRegistered(javax.management.ObjectName, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.isRegistered(ObjectName) sample code for javax.management.MBeanServerConnection.isRegistered(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.isRegistered(javax.management.ObjectName) .
 Set sample code for java.util.Set definition code for java.util.Set <ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance > queryMBeans sample code for javax.management.remote.rmi.RMIConnection.queryMBeans(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.queryMBeans(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  query, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.queryMBeans(ObjectName, QueryExp) sample code for javax.management.MBeanServerConnection.queryMBeans(javax.management.ObjectName, javax.management.QueryExp) definition code for javax.management.MBeanServerConnection.queryMBeans(javax.management.ObjectName, javax.management.QueryExp) .
 Set sample code for java.util.Set definition code for java.util.Set <ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName > queryNames sample code for javax.management.remote.rmi.RMIConnection.queryNames(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.queryNames(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  query, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.queryNames(ObjectName, QueryExp) sample code for javax.management.MBeanServerConnection.queryNames(javax.management.ObjectName, javax.management.QueryExp) definition code for javax.management.MBeanServerConnection.queryNames(javax.management.ObjectName, javax.management.QueryExp) .
 void removeNotificationListener sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  listener, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  filter, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  handback, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) .
 void removeNotificationListener sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  listener, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName) .
 void removeNotificationListeners sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListeners(javax.management.ObjectName, java.lang.Integer[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListeners(javax.management.ObjectName, java.lang.Integer[], javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, Integer sample code for java.lang.Integer definition code for java.lang.Integer [] listenerIDs, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the removeNotificationListener(ObjectName, NotificationListener) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener) and removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) methods.
 void setAttribute sample code for javax.management.remote.rmi.RMIConnection.setAttribute(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.setAttribute(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  attribute, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.setAttribute(ObjectName, Attribute) sample code for javax.management.MBeanServerConnection.setAttribute(javax.management.ObjectName, javax.management.Attribute) definition code for javax.management.MBeanServerConnection.setAttribute(javax.management.ObjectName, javax.management.Attribute) .
 AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList setAttributes sample code for javax.management.remote.rmi.RMIConnection.setAttributes(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.setAttributes(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  attributes, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.setAttributes(ObjectName, AttributeList) sample code for javax.management.MBeanServerConnection.setAttributes(javax.management.ObjectName, javax.management.AttributeList) definition code for javax.management.MBeanServerConnection.setAttributes(javax.management.ObjectName, javax.management.AttributeList) .
 void unregisterMBean sample code for javax.management.remote.rmi.RMIConnection.unregisterMBean(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.unregisterMBean(javax.management.ObjectName, javax.security.auth.Subject) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name, Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
          Handles the method MBeanServerConnection.unregisterMBean(ObjectName) sample code for javax.management.MBeanServerConnection.unregisterMBean(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.unregisterMBean(javax.management.ObjectName) .
 

Method Detail

getConnectionId sample code for javax.management.remote.rmi.RMIConnection.getConnectionId() definition code for javax.management.remote.rmi.RMIConnection.getConnectionId()

String sample code for java.lang.String definition code for java.lang.String  getConnectionId()
                       throws IOException sample code for java.io.IOException definition code for java.io.IOException 

Returns the connection ID. This string is different for every open connection to a given RMI connector server.

Returns:
the connection ID
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
See Also:
RMIConnector.connect sample code for javax.management.remote.rmi.RMIConnector.connect() definition code for javax.management.remote.rmi.RMIConnector.connect()

close sample code for javax.management.remote.rmi.RMIConnection.close() definition code for javax.management.remote.rmi.RMIConnection.close()

void close()
           throws IOException sample code for java.io.IOException definition code for java.io.IOException 

Closes this connection. On return from this method, the RMI object implementing this interface is unexported, so further remote calls to it will fail.

Throws:
IOException sample code for java.io.IOException definition code for java.io.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.

createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.security.auth.Subject)

ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance  createMBean(String sample code for java.lang.String definition code for java.lang.String  className,
                           ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                           Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                           throws ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                                  InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException ,
                                  MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException ,
                                  MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                                  NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException ,
                                  IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.createMBean(String, ObjectName) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName) .

Parameters:
className - The class name of the MBean to be instantiated.
name - The object name of the MBean. May be null.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
An ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean. If the contained ObjectName is n, the contained Java class name is getMBeanInfo(n) sample code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) .getClassName().
Throws:
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a java.lang.Exception that occurred when trying to invoke the MBean's constructor.
InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException - The MBean is already under the control of the MBean server.
MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - The constructor of the MBean has thrown an exception.
NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException - This class is not a JMX compliant MBean.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern or no ObjectName is specified for the MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject)

ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance  createMBean(String sample code for java.lang.String definition code for java.lang.String  className,
                           ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                           ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  loaderName,
                           Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                           throws ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                                  InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException ,
                                  MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException ,
                                  MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                                  NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException ,
                                  InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                  IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.createMBean(String, ObjectName, ObjectName) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName) .

Parameters:
className - The class name of the MBean to be instantiated.
name - The object name of the MBean. May be null.
loaderName - The object name of the class loader to be used.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
An ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean. If the contained ObjectName is n, the contained Java class name is getMBeanInfo(n) sample code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) .getClassName().
Throws:
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a java.lang.Exception that occurred when trying to invoke the MBean's constructor.
InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException - The MBean is already under the control of the MBean server.
MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - The constructor of the MBean has thrown an exception.
NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException - This class is not a JMX compliant MBean.
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The specified class loader is not registered in the MBean server.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern or no ObjectName is specified for the MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject)

ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance  createMBean(String sample code for java.lang.String definition code for java.lang.String  className,
                           ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                           MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  params,
                           String sample code for java.lang.String definition code for java.lang.String [] signature,
                           Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                           throws ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                                  InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException ,
                                  MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException ,
                                  MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                                  NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException ,
                                  IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.createMBean(String, ObjectName, Object[], String[]) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) . The Object[] parameter is wrapped in a MarshalledObject.

Parameters:
className - The class name of the MBean to be instantiated.
name - The object name of the MBean. May be null.
params - 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.
signature - An array containing the signature of the constructor to be invoked. Can be null, equivalent to an empty array.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
An ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean. If the contained ObjectName is n, the contained Java class name is getMBeanInfo(n) sample code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) .getClassName().
Throws:
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a java.lang.Exception that occurred when trying to invoke the MBean's constructor.
InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException - The MBean is already under the control of the MBean server.
MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - The constructor of the MBean has thrown an exception.
NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException - This class is not a JMX compliant MBean.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern, or no ObjectName is specified for the MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

createMBean sample code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject)

ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance  createMBean(String sample code for java.lang.String definition code for java.lang.String  className,
                           ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                           ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  loaderName,
                           MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  params,
                           String sample code for java.lang.String definition code for java.lang.String [] signature,
                           Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                           throws ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                                  InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException ,
                                  MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException ,
                                  MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                                  NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException ,
                                  InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                  IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.createMBean(String, ObjectName, ObjectName, Object[], String[]) sample code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) definition code for javax.management.MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.lang.Object[], java.lang.String[]) . The Object[] parameter is wrapped in a MarshalledObject.

Parameters:
className - The class name of the MBean to be instantiated.
name - The object name of the MBean. May be null.
loaderName - The object name of the class loader to be used.
params - 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.
signature - An array containing the signature of the constructor to be invoked. Can be null, equivalent to an empty array.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
An ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean. If the contained ObjectName is n, the contained Java class name is getMBeanInfo(n) sample code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) .getClassName().
Throws:
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a java.lang.Exception that occurred when trying to invoke the MBean's constructor.
InstanceAlreadyExistsException sample code for javax.management.InstanceAlreadyExistsException definition code for javax.management.InstanceAlreadyExistsException - The MBean is already under the control of the MBean server.
MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - The constructor of the MBean has thrown an exception.
NotCompliantMBeanException sample code for javax.management.NotCompliantMBeanException definition code for javax.management.NotCompliantMBeanException - This class is not a JMX compliant MBean.
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The specified class loader is not registered in the MBean server.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern, or no ObjectName is specified for the MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

unregisterMBean sample code for javax.management.remote.rmi.RMIConnection.unregisterMBean(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.unregisterMBean(javax.management.ObjectName, javax.security.auth.Subject)

void unregisterMBean(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                     Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                     throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                            MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException ,
                            IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.unregisterMBean(ObjectName) sample code for javax.management.MBeanServerConnection.unregisterMBean(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.unregisterMBean(javax.management.ObjectName) .

Parameters:
name - The object name of the MBean to be unregistered.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
MBeanRegistrationException sample code for javax.management.MBeanRegistrationException definition code for javax.management.MBeanRegistrationException - The preDeregister ((MBeanRegistration interface) method of the MBean has thrown an exception.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or the MBean you are when trying to unregister is the MBeanServerDelegate sample code for javax.management.MBeanServerDelegate definition code for javax.management.MBeanServerDelegate MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

getObjectInstance sample code for javax.management.remote.rmi.RMIConnection.getObjectInstance(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getObjectInstance(javax.management.ObjectName, javax.security.auth.Subject)

ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance  getObjectInstance(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                                 Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                                 throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.getObjectInstance(ObjectName) sample code for javax.management.MBeanServerConnection.getObjectInstance(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.getObjectInstance(javax.management.ObjectName) .

Parameters:
name - The object name of the MBean.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
The ObjectInstance associated with the MBean specified by name. The contained ObjectName is name and the contained class name is getMBeanInfo(name) sample code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) .getClassName().
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

queryMBeans sample code for javax.management.remote.rmi.RMIConnection.queryMBeans(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.queryMBeans(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject)

Set sample code for java.util.Set definition code for java.util.Set <ObjectInstance sample code for javax.management.ObjectInstance definition code for javax.management.ObjectInstance > queryMBeans(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                                MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  query,
                                Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                                throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.queryMBeans(ObjectName, QueryExp) sample code for javax.management.MBeanServerConnection.queryMBeans(javax.management.ObjectName, javax.management.QueryExp) definition code for javax.management.MBeanServerConnection.queryMBeans(javax.management.ObjectName, javax.management.QueryExp) . The QueryExp is wrapped in a MarshalledObject.

Parameters:
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.
query - The query expression to be applied for selecting MBeans, encapsulated into a MarshalledObject. If the MarshalledObject encapsulates a null value no query expression will be applied for selecting MBeans.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
A set containing the ObjectInstance objects for the selected MBeans. If no MBean satisfies the query an empty list is returned.
Throws:
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

queryNames sample code for javax.management.remote.rmi.RMIConnection.queryNames(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.queryNames(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject)

Set sample code for java.util.Set definition code for java.util.Set <ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName > queryNames(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                           MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  query,
                           Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                           throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.queryNames(ObjectName, QueryExp) sample code for javax.management.MBeanServerConnection.queryNames(javax.management.ObjectName, javax.management.QueryExp) definition code for javax.management.MBeanServerConnection.queryNames(javax.management.ObjectName, javax.management.QueryExp) . The QueryExp is wrapped in a MarshalledObject.

Parameters:
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.
query - The query expression to be applied for selecting MBeans, encapsulated into a MarshalledObject. If the MarshalledObject encapsulates a null value no query expression will be applied for selecting MBeans.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
A set containing the ObjectNames for the MBeans selected. If no MBean satisfies the query, an empty list is returned.
Throws:
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

isRegistered sample code for javax.management.remote.rmi.RMIConnection.isRegistered(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.isRegistered(javax.management.ObjectName, javax.security.auth.Subject)

boolean isRegistered(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                     Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                     throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.isRegistered(ObjectName) sample code for javax.management.MBeanServerConnection.isRegistered(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.isRegistered(javax.management.ObjectName) .

Parameters:
name - The object name of the MBean to be checked.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
True if the MBean is already registered in the MBean server, false otherwise.
Throws:
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

getMBeanCount sample code for javax.management.remote.rmi.RMIConnection.getMBeanCount(javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanCount(javax.security.auth.Subject)

Integer sample code for java.lang.Integer definition code for java.lang.Integer  getMBeanCount(Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                      throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.getMBeanCount() sample code for javax.management.MBeanServerConnection.getMBeanCount() definition code for javax.management.MBeanServerConnection.getMBeanCount() .

Parameters:
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
the number of MBeans registered.
Throws:
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

getAttribute sample code for javax.management.remote.rmi.RMIConnection.getAttribute(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getAttribute(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject)

Object sample code for java.lang.Object definition code for java.lang.Object  getAttribute(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                    String sample code for java.lang.String definition code for java.lang.String  attribute,
                    Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                    throws MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                           AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException ,
                           InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                           ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                           IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.getAttribute(ObjectName, String) sample code for javax.management.MBeanServerConnection.getAttribute(javax.management.ObjectName, java.lang.String) definition code for javax.management.MBeanServerConnection.getAttribute(javax.management.ObjectName, java.lang.String) .

Parameters:
name - The object name of the MBean from which the attribute is to be retrieved.
attribute - A String specifying the name of the attribute to be retrieved.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
The value of the retrieved attribute.
Throws:
AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException - The attribute specified is not accessible in the MBean.
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps an exception thrown by the MBean's getter.
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.Exception thrown when trying to invoke the getter.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or the attribute in parameter is null.
RuntimeMBeanException - Wraps a runtime exception thrown by the MBean's getter.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
See Also:
setAttribute(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) sample code for javax.management.remote.rmi.RMIConnection.setAttribute(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.setAttribute(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject)

getAttributes sample code for javax.management.remote.rmi.RMIConnection.getAttributes(javax.management.ObjectName, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getAttributes(javax.management.ObjectName, java.lang.String[], javax.security.auth.Subject)

AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  getAttributes(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                            String sample code for java.lang.String definition code for java.lang.String [] attributes,
                            Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                            throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                   ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                                   IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.getAttributes(ObjectName, String[]) sample code for javax.management.MBeanServerConnection.getAttributes(javax.management.ObjectName, java.lang.String[]) definition code for javax.management.MBeanServerConnection.getAttributes(javax.management.ObjectName, java.lang.String[]) .

Parameters:
name - The object name of the MBean from which the attributes are retrieved.
attributes - A list of the attributes to be retrieved.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
The list of the retrieved attributes.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wrap a java.lang.IllegalArgumentException: The object name in parameter is null or attributes in parameter is null.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
See Also:
setAttributes(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) sample code for javax.management.remote.rmi.RMIConnection.setAttributes(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.setAttributes(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject)

setAttribute sample code for javax.management.remote.rmi.RMIConnection.setAttribute(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.setAttribute(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject)

void setAttribute(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                  MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  attribute,
                  Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                  throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                         AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException ,
                         InvalidAttributeValueException sample code for javax.management.InvalidAttributeValueException definition code for javax.management.InvalidAttributeValueException ,
                         MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                         ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                         IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.setAttribute(ObjectName, Attribute) sample code for javax.management.MBeanServerConnection.setAttribute(javax.management.ObjectName, javax.management.Attribute) definition code for javax.management.MBeanServerConnection.setAttribute(javax.management.ObjectName, javax.management.Attribute) . The Attribute parameter is wrapped in a MarshalledObject.

Parameters:
name - The name of the MBean within which the attribute is to be set.
attribute - The identification of the attribute to be set and the value it is to be set to, encapsulated into a MarshalledObject.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException - The attribute specified is not accessible in the MBean.
InvalidAttributeValueException sample code for javax.management.InvalidAttributeValueException definition code for javax.management.InvalidAttributeValueException - The value specified for the attribute is not valid.
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps an exception thrown by the MBean's setter.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.Exception thrown when trying to invoke the setter.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or the attribute in parameter is null.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
See Also:
getAttribute(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) sample code for javax.management.remote.rmi.RMIConnection.getAttribute(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getAttribute(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject)

setAttributes sample code for javax.management.remote.rmi.RMIConnection.setAttributes(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.setAttributes(javax.management.ObjectName, java.rmi.MarshalledObject, javax.security.auth.Subject)

AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  setAttributes(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                            MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  attributes,
                            Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                            throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                   ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                                   IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.setAttributes(ObjectName, AttributeList) sample code for javax.management.MBeanServerConnection.setAttributes(javax.management.ObjectName, javax.management.AttributeList) definition code for javax.management.MBeanServerConnection.setAttributes(javax.management.ObjectName, javax.management.AttributeList) . The AttributeList parameter is wrapped in a MarshalledObject.

Parameters:
name - The object name of the MBean within which the attributes are to be set.
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 MarshalledObject.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
The list of attributes that were set, with their new values.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or attributes in parameter is null.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
See Also:
getAttributes(javax.management.ObjectName, java.lang.String[], javax.security.auth.Subject) sample code for javax.management.remote.rmi.RMIConnection.getAttributes(javax.management.ObjectName, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getAttributes(javax.management.ObjectName, java.lang.String[], javax.security.auth.Subject)

invoke sample code for javax.management.remote.rmi.RMIConnection.invoke(javax.management.ObjectName, java.lang.String, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.invoke(javax.management.ObjectName, java.lang.String, java.rmi.MarshalledObject, java.lang.String[], javax.security.auth.Subject)

Object sample code for java.lang.Object definition code for java.lang.Object  invoke(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
              String sample code for java.lang.String definition code for java.lang.String  operationName,
              MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  params,
              String sample code for java.lang.String definition code for java.lang.String [] signature,
              Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
              throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                     MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                     ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                     IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.invoke(ObjectName, String, Object[], String[]) sample code for javax.management.MBeanServerConnection.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[]) definition code for javax.management.MBeanServerConnection.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[]) . The Object[] parameter is wrapped in a MarshalledObject.

Parameters:
name - The object name of the MBean on which the method is to be invoked.
operationName - The name of the operation to be invoked.
params - 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.
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.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
The object returned by the operation, which represents the result of invoking the operation on the MBean specified.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps an exception thrown by the MBean's invoked method.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps an IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException when name or operationName is null.

getDefaultDomain sample code for javax.management.remote.rmi.RMIConnection.getDefaultDomain(javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getDefaultDomain(javax.security.auth.Subject)

String sample code for java.lang.String definition code for java.lang.String  getDefaultDomain(Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                        throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.getDefaultDomain() sample code for javax.management.MBeanServerConnection.getDefaultDomain() definition code for javax.management.MBeanServerConnection.getDefaultDomain() .

Parameters:
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
the default domain.
Throws:
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

getDomains sample code for javax.management.remote.rmi.RMIConnection.getDomains(javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getDomains(javax.security.auth.Subject)

String sample code for java.lang.String definition code for java.lang.String [] getDomains(Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                    throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.getDomains() sample code for javax.management.MBeanServerConnection.getDomains() definition code for javax.management.MBeanServerConnection.getDomains() .

Parameters:
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
the list of domains.
Throws:
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

getMBeanInfo sample code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.getMBeanInfo(javax.management.ObjectName, javax.security.auth.Subject)

MBeanInfo sample code for javax.management.MBeanInfo definition code for javax.management.MBeanInfo  getMBeanInfo(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                       Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                       throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                              IntrospectionException sample code for javax.management.IntrospectionException definition code for javax.management.IntrospectionException ,
                              ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException ,
                              IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.getMBeanInfo(ObjectName) sample code for javax.management.MBeanServerConnection.getMBeanInfo(javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.getMBeanInfo(javax.management.ObjectName) .

Parameters:
name - The name of the MBean to analyze
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
An instance of MBeanInfo allowing the retrieval of all attributes and operations of this MBean.
Throws:
IntrospectionException sample code for javax.management.IntrospectionException definition code for javax.management.IntrospectionException - An exception occured during introspection.
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified was not found.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - An exception occurred when trying to invoke the getMBeanInfo of a Dynamic MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null.

isInstanceOf sample code for javax.management.remote.rmi.RMIConnection.isInstanceOf(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.isInstanceOf(javax.management.ObjectName, java.lang.String, javax.security.auth.Subject)

boolean isInstanceOf(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                     String sample code for java.lang.String definition code for java.lang.String  className,
                     Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                     throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                            IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.isInstanceOf(ObjectName, String) sample code for javax.management.MBeanServerConnection.isInstanceOf(javax.management.ObjectName, java.lang.String) definition code for javax.management.MBeanServerConnection.isInstanceOf(javax.management.ObjectName, java.lang.String) .

Parameters:
name - The ObjectName of the MBean.
className - The name of the class.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Returns:
true if the MBean specified is an instance of the specified class according to the rules above, false otherwise.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean specified is not registered in the MBean server.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null.

addNotificationListener sample code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject)

void addNotificationListener(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                             ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  listener,
                             MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  filter,
                             MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  handback,
                             Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                             throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                    IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) . The NotificationFilter parameter is wrapped in a MarshalledObject. The Object (handback) parameter is also wrapped in a MarshalledObject.

Parameters:
name - The name of the MBean on which the listener should be added.
listener - The object name of the listener which will handle the notifications emitted by the registered MBean.
filter - The filter object, encapsulated into a MarshalledObject. If filter encapsulated in the MarshalledObject has a null value, no filtering will be performed before handling notifications.
handback - The context to be sent to the listener when a notification is emitted, encapsulated into a MarshalledObject.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean name of the notification listener or of the notification broadcaster does not match any of the registered MBeans.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps an IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException . The MBean named by listener exists but does not implement the NotificationListener sample code for javax.management.NotificationListener definition code for javax.management.NotificationListener interface, or name or listener is null.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
See Also:
removeNotificationListener(ObjectName, ObjectName, Subject) sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) , removeNotificationListener(ObjectName, ObjectName, MarshalledObject, MarshalledObject, Subject) sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject)

removeNotificationListener sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.security.auth.Subject)

void removeNotificationListener(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                                ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  listener,
                                Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                                throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                       ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.ListenerNotFoundException ,
                                       IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName) .

Parameters:
name - The name of the MBean on which the listener should be removed.
listener - The object name of the listener to be removed.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean name provided does not match any of the registered MBeans.
ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.ListenerNotFoundException - The listener is not registered in the MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps an IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException when name or listener is null.
See Also:
addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) sample code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject)

removeNotificationListener sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject)

void removeNotificationListener(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                                ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  listener,
                                MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  filter,
                                MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject  handback,
                                Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                                throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                       ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.ListenerNotFoundException ,
                                       IOException sample code for java.io.IOException definition code for java.io.IOException 
Handles the method MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object) . The NotificationFilter parameter is wrapped in a MarshalledObject. The Object parameter is also wrapped in a MarshalledObject.

Parameters:
name - The name of the MBean on which the listener should be removed.
listener - A listener that was previously added to this MBean.
filter - The filter that was specified when the listener was added, encapsulated into a MarshalledObject.
handback - The handback that was specified when the listener was added, encapsulated into a MarshalledObject.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - The MBean name provided does not match any of the registered MBeans.
ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.ListenerNotFoundException - The listener is not registered in the MBean, or it is not registered with the given filter and handback.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to perform this operation.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
RuntimeOperationsException sample code for javax.management.RuntimeOperationsException definition code for javax.management.RuntimeOperationsException - Wraps an IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException when name or listener is null.
See Also:
addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) sample code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListener(javax.management.ObjectName, javax.management.ObjectName, java.rmi.MarshalledObject, java.rmi.MarshalledObject, javax.security.auth.Subject)

addNotificationListeners sample code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[]) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[])

Integer sample code for java.lang.Integer definition code for java.lang.Integer [] addNotificationListeners(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName [] names,
                                   MarshalledObject sample code for java.rmi.MarshalledObject definition code for java.rmi.MarshalledObject [] filters,
                                   Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject [] delegationSubjects)
                                   throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                          IOException sample code for java.io.IOException definition code for java.io.IOException 

Handles the method MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.addNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) .

Register for notifications from the given MBeans that match the given filters. The remote client can subsequently retrieve the notifications using the fetchNotifications sample code for javax.management.remote.rmi.RMIConnection.fetchNotifications(long, int, long) definition code for javax.management.remote.rmi.RMIConnection.fetchNotifications(long, int, long) method.

For each listener, the original NotificationListener and handback are kept on the client side; in order for the client to be able to identify them, the server generates and returns a unique listenerID. This listenerID is forwarded with the Notifications to 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.

Parameters:
names - the ObjectNames identifying the MBeans emitting the Notifications.
filters - an array of marshalled representations of the NotificationFilters. Elements of this array can be null.
delegationSubjects - the Subjects on behalf of which the listeners are being added. Elements of this array can be null. Also, the delegationSubjects parameter itself can be null, which is equivalent to an array of null values with the same size as the names and filters arrays.
Returns:
an array of listenerIDs identifying the local listeners. This array has the same number of elements as the parameters.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if names or filters is null, or if names contains a null element, or if the three arrays do not all have the same size.
ClassCastException sample code for java.lang.ClassCastException definition code for java.lang.ClassCastException - if one of the elements of filters unmarshalls as a non-null object that is not a NotificationFilter.
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - if one of the names does not correspond to any registered MBean.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if, for one of the MBeans, the client, or the delegated Subject if any, does not have permission to add a listener.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.

removeNotificationListeners sample code for javax.management.remote.rmi.RMIConnection.removeNotificationListeners(javax.management.ObjectName, java.lang.Integer[], javax.security.auth.Subject) definition code for javax.management.remote.rmi.RMIConnection.removeNotificationListeners(javax.management.ObjectName, java.lang.Integer[], javax.security.auth.Subject)

void removeNotificationListeners(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name,
                                 Integer sample code for java.lang.Integer definition code for java.lang.Integer [] listenerIDs,
                                 Subject sample code for javax.security.auth.Subject definition code for javax.security.auth.Subject  delegationSubject)
                                 throws InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException ,
                                        ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.ListenerNotFoundException ,
                                        IOException sample code for java.io.IOException definition code for java.io.IOException 

Handles the removeNotificationListener(ObjectName, NotificationListener) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener) and removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) sample code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) methods.

This method removes one or more NotificationListeners from a given MBean in the MBean server.

The NotificationListeners are identified by the IDs which were returned by the addNotificationListeners(ObjectName[], MarshalledObject[], Subject[]) sample code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[]) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[]) method.

Parameters:
name - the ObjectName identifying the MBean emitting the Notifications.
listenerIDs - the list of the IDs corresponding to the listeners to remove.
delegationSubject - The Subject containing the delegation principals or null if the authentication principal is used instead.
Throws:
InstanceNotFoundException sample code for javax.management.InstanceNotFoundException definition code for javax.management.InstanceNotFoundException - if the given name does not correspond to any registered MBean.
ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.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.
SecurityException sample code for java.lang.SecurityException definition code for java.lang.SecurityException - if the client, or the delegated Subject if any, does not have permission to remove the listeners.
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if ObjectName or listenerIds is null or if listenerIds contains a null element.

fetchNotifications sample code for javax.management.remote.rmi.RMIConnection.fetchNotifications(long, int, long) definition code for javax.management.remote.rmi.RMIConnection.fetchNotifications(long, int, long)

NotificationResult sample code for javax.management.remote.NotificationResult definition code for javax.management.remote.NotificationResult  fetchNotifications(long clientSequenceNumber,
                                      int maxNotifications,
                                      long timeout)
                                      throws IOException sample code for java.io.IOException definition code for java.io.IOException 

Retrieves 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 clientSequenceNumber and 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 by addNotificationListeners(ObjectName[], MarshalledObject[], Subject[]) sample code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[]) definition code for javax.management.remote.rmi.RMIConnection.addNotificationListeners(javax.management.ObjectName[], java.rmi.MarshalledObject[], javax.security.auth.Subject[]) .

Parameters:
clientSequenceNumber - 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.
maxNotifications - the maximum number of different notifications to return. The TargetedNotification array in the returned NotificationResult can have more elements than this if the same notification appears more than once. The behavior is unspecified if this parameter is negative.
timeout - 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_VALUE to indicate that there is no timeout. The behavior is unspecified if this parameter is negative.
Returns:
A NotificationResult.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if a general communication exception occurred.