Methods Summary |
---|
protected void | closeClient(javax.management.remote.rmi.RMIConnection client)
PortableRemoteObject.unexportObject(client);
|
protected void | closeServer()Called by {@link #close()} to close the connector server by
unexporting this object. After returning from this method, the
connector server must not accept any new connections.
PortableRemoteObject.unexportObject(this);
|
javax.management.remote.rmi.RMIConnection | doNewClient(java.lang.Object credentials)
if (callerACC == null) {
throw new SecurityException("AccessControlContext cannot be null");
}
try {
return AccessController.doPrivileged(
new PrivilegedExceptionAction<RMIConnection>() {
public RMIConnection run() throws IOException {
return superDoNewClient(credentials);
}
}, callerACC);
} catch (PrivilegedActionException pae) {
throw (IOException) pae.getCause();
}
|
protected void | export()
PortableRemoteObject.exportObject(this);
|
protected java.lang.String | getProtocol()
return "iiop";
|
protected javax.management.remote.rmi.RMIConnection | makeClient(java.lang.String connectionId, javax.security.auth.Subject subject)Creates a new client connection as an RMI object exported
through IIOP.
if (connectionId == null)
throw new NullPointerException("Null connectionId");
RMIConnection client =
new RMIConnectionImpl(this, connectionId, getDefaultClassLoader(),
subject, env);
PortableRemoteObject.exportObject(client);
return client;
|
javax.management.remote.rmi.RMIConnection | superDoNewClient(java.lang.Object credentials)
return super.doNewClient(credentials);
|
public java.rmi.Remote | toStub()Returns an IIOP stub.
The stub might not yet be connected to the ORB. The stub will
be serializable only if it is connected to the ORB.
// javax.rmi.CORBA.Stub stub =
// (javax.rmi.CORBA.Stub) PortableRemoteObject.toStub(this);
final Remote stub = PortableRemoteObject.toStub(this);
// java.lang.System.out.println("NON CONNECTED STUB " + stub);
// org.omg.CORBA.ORB orb =
// org.omg.CORBA.ORB.init((String[])null, (Properties)null);
// stub.connect(orb);
// java.lang.System.out.println("CONNECTED STUB " + stub);
return (Remote) stub;
|