A connection to a remote RMI connector. Usually, such
connections are made using JMXConnectorFactory.
However, specialized applications can use this class directly, for
example with an RMIServer stub obtained without going
through JNDI.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | |
| private class | |
| private class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | base64ToInt
This array is a lookup table that translates unicode characters drawn from the "Base64 Alphabet" (as specified in Table 1 of RFC 2045) into their 6-bit positive integer equivalents. |
| private transient long | |
| private transient long | |
| private transient Exception | |
| private transient ClientCommunicatorAdmin | |
| private transient boolean | |
| private transient RMIConnection | |
| private transient NotificationBroadcasterSupport | |
| private transient String | |
| private transient ClassLoader | |
| private transient Map | |
| private final JMXServiceURL | |
| private static final ClassLogger | |
| private transient WeakReference | |
| private static final String | |
| private static final Constructor | |
| private static final Class | |
| private static final String | |
| private transient RMIConnector. | |
| private final RMIServer | |
| private static final Class | |
| private static final String | |
| private static final long | |
| private transient boolean |
| Access | Constructor and Description |
|---|---|
| private | |
| public | RMIConnector(JMXServiceURL
the address of the RMI connector server. url, Map<String, ?> additional attributes specifying how to make
the connection. For JNDI-based addresses, these attributes can
usefully include JNDI attributes recognized by environment)InitialContext. This
parameter can be null, which is equivalent to an empty Map.Constructs an |
| public | RMIConnector(RMIServer
an RMI stub representing the RMI connector server. rmiServer, Map<String, ?> additional attributes specifying how to make
the connection. This parameter can be null, which is
equivalent to an empty Map. environment)Constructs an |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
Implements javax. Adds a listener to be informed of changes in connection status. |
| private Integer[] | addListenersWithSubjects(ObjectName[] names, MarshalledObject<NotificationFilter>[] filters, Subject[] delegationSubjects, boolean reconnect)
|
| private Integer | addListenerWithSubject(ObjectName name, MarshalledObject<NotificationFilter> filter, Subject delegationSubject, boolean reconnect)
|
| private static byte[] | |
| private static int | base64toInt(char c)
Translates the specified character, which is assumed to be in the "Base 64 Alphabet" into its equivalent 6-bit positive integer. |
| private static void | |
| public synchronized void | close()
Implements javax. Closes the client connection to its server. |
| private synchronized void | |
| public void | connect()
Implements javax. Establishes the connection to the connector server. |
| public synchronized void | connect(Map<String, ?> environment)
Implements javax. Establishes the connection to the connector server. |
| private RMIServer | |
| private RMIServer | Returns: The retrieved RMIServer stub.A JNDI URL indicating the location of the Stub
(see jndiURL, Map<String, ?> javax.), e.g.:
the environment Map passed to the connector. env)Lookup the RMIServer stub in a directory. |
| private RMIServer | |
| public JMXServiceURL | Returns: the address of this connector, or null if it does not have one.Implements javax. The address of this connector. |
| pack-priv static String | |
| private MBeanServerConnection | |
| private static RMIConnection | |
| public synchronized String | getConnectionId()
Implements javax. Gets this connection's ID from the connector server. |
| public synchronized MBeanServerConnection | getMBeanServerConnection()
Implements javax. Returns an |
| private void | |
| private static RMIServer | |
| private static String | |
| private static String | |
| private void | |
| private ClassLoader | |
| private void | readObject(ObjectInputStream
The ObjectInputStream to read from. s)Read RMIConnector fields from an |
| public void | removeConnectionNotificationListener(NotificationListener listener)
Implements javax. Removes a listener from the list to be informed of changes in status. |
| public void | removeConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
Implements javax. Removes a listener from the list to be informed of changes in status. |
| private void | |
| private static RMIConnection | |
| private static String | |
| public String | Returns: a String representation of this object.Overrides java. Returns a string representation of this object. |
| private void | writeObject(ObjectOutputStream
The ObjectOutputStream to write to. s)Writes the RMIConnector fields to an |