Class RMIConnectionImpl
- java.lang.Object
-
- javax.management.remote.rmi.RMIConnectionImpl
- All Implemented Interfaces:
-
Closeable
,AutoCloseable
,Remote
,Unreferenced
,RMIConnection
public class RMIConnectionImpl extends Object implements RMIConnection, Unreferenced
Implementation of the RMIConnection
interface. User code will not usually reference this class.
- Since:
- 1.5
Constructors
Constructor | Description |
---|---|
RMIConnectionImpl(RMIServerImpl rmiServer,
String connectionId,
ClassLoader defaultClassLoader,
Subject subject,
Map<String,?> env) | Constructs a new |
Methods
Modifier and Type | Method | Description |
---|---|---|
String | toString() | Returns a string representation of this object. |
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods declared in interface javax.management.remote.rmi.RMIConnection
addNotificationListener, addNotificationListeners, close, createMBean, createMBean, createMBean, createMBean, fetchNotifications, getAttribute, getAttributes, getConnectionId, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, removeNotificationListener, removeNotificationListener, removeNotificationListeners, setAttribute, setAttributes, unregisterMBean
Methods declared in interface java.rmi.server.Unreferenced
unreferenced
Constructors
RMIConnectionImpl
public RMIConnectionImpl(RMIServerImpl rmiServer, String connectionId, ClassLoader defaultClassLoader, Subject subject, Map<String,?> env)
Constructs a new RMIConnection
. This connection can be used with the JRMP transport. This object does not export itself: it is the responsibility of the caller to export it appropriately (see RMIJRMPServerImpl.makeClient(String,Subject)
).
- Parameters:
-
rmiServer
- The RMIServerImpl object for which this connection is created. The behavior is unspecified if this parameter is null. -
connectionId
- The ID for this connection. The behavior is unspecified if this parameter is null. -
defaultClassLoader
- The default ClassLoader to be used when deserializing marshalled objects. Can be null, to signify the bootstrap class loader. -
subject
- the authenticated subject to be used for authorization. Can be null, to signify that no subject has been authenticated. -
env
- the environment containing attributes for the newRMIServerImpl
. Can be null, equivalent to an empty map.
Methods
toString
public String toString()
Returns a string representation of this object. In general, the toString
method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read.
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.management.rmi/javax/management/remote/rmi/RMIConnectionImpl.html