APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.management.remote.rmi

public Class RMIConnectionImpl

extends Object
implements RMIConnection, Unreferenced
Class Inheritance
All Implemented Interfaces
java.rmi.server.Unreferenced, javax.management.remote.rmi.RMIConnection, java.rmi.Remote, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.IOException, java.rmi.MarshalledObject, .UnmarshalException, java.rmi.server.Unreferenced, java.util.Arrays, .Collections, .Map, .Set, java.util.concurrent.CompletionException, javax.management.*, javax.management.remote.JMXServerErrorException, .NotificationResult, javax.security.auth.Subject, com.sun.jmx.remote.internal.ServerCommunicatorAdmin, .ServerNotifForwarder, com.sun.jmx.remote.util.ClassLoaderWithRepository, .ClassLogger, .EnvHelp, .OrderClassLoaders, javax.management.loading.ClassLoaderRepository

Implementation of the RMIConnection interface. User code will not usually reference this class.

Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private final ClassLoaderWithRepository
private final String
private static final int
private static final int
private static final int
private static final int
private final ClassLoader
private final ClassLoader
private Map<String, ?>
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final ClassLogger
private final MBeanServer
private static final Object[]
private static final String[]
private static final int
private static final int
private static final int
private static final int
private static final int
private final RMIServerImpl
private final ServerCommunicatorAdmin
private ServerNotifForwarder
private static final int
private static final int
private final Subject
private boolean
private static final int

Constructor Summary

AccessConstructor and Description
public
RMIConnectionImpl(RMIServerImpl
The RMIServerImpl object for which this connection is created. The behavior is unspecified if this parameter is null.
rmiServer
,
String
The ID for this connection. The behavior is unspecified if this parameter is null.
connectionId
,
ClassLoader
The default ClassLoader to be used when deserializing marshalled objects. Can be null, to signify the bootstrap class loader.
defaultClassLoader
,
Subject
the authenticated subject to be used for authorization. Can be null, to signify that no subject has been authenticated.
subject
,
Map<String, ?>
the environment containing attributes for the new RMIServerImpl. Can be null, equivalent to an empty map.
env
)

Constructs a new RMIConnection.

Method Summary

Modifier and TypeMethod and Description
public void
public Integer[]
private static void
public void
close()

Implements javax.management.remote.rmi.RMIConnection.close.

Closes this connection.

public ObjectInstance
public ObjectInstance
public ObjectInstance
public ObjectInstance
private Object
doOperation(final int operation, final Object[] params, final Subject delegationSubject)

private Object
doOperationInner(int operation, Object[] params)

public NotificationResult
fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout)

Implements javax.management.remote.rmi.RMIConnection.fetchNotifications.

Retrieves notifications from the connector server.

public Object
public AttributeList
private ClassLoader
public String
getConnectionId()

Implements javax.management.remote.rmi.RMIConnection.getConnectionId.

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

public String
public String[]
public Integer
public MBeanInfo
public ObjectInstance
private synchronized ServerNotifForwarder
public Object
public boolean
public boolean
private static Object[]
private static String[]
private static String
objects(final Object[] objs)

public Set<ObjectInstance>
public Set<ObjectName>
public void
public void
public void
public void
public AttributeList
private static ClassLoader
setCcl(ClassLoader classLoader)

private static String
strings(final String[] strs)

public String

Returns:

a String representation of this object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this object.

public void
unreferenced()

Implements java.rmi.server.Unreferenced.unreferenced.

Called by the RMI runtime sometime after the runtime determines that the reference list, the list of clients referencing the remote object, becomes empty.

public void
private <T> T
unwrap(final MarshalledObject<?> mo, final ClassLoader cl, final Class<T> wrappedClass, Subject delegationSubject)

private <T> T
unwrap(final MarshalledObject<?> mo, final ClassLoader cl1, final ClassLoader cl2, final Class<T> wrappedClass, Subject delegationSubject)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait