public class PortableRemoteObject extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
PortableRemoteObject()
Initializes the object by calling
exportObject(this). |
| Modifier and Type | Method and Description |
|---|---|
static void |
connect(Remote target,
Remote source)
Makes a Remote object ready for remote communication.
|
static void |
exportObject(Remote obj)
Makes a server object ready to receive remote calls.
|
static Object |
narrow(Object narrowFrom,
Class narrowTo)
Checks to ensure that an object of a remote or abstract interface type
can be cast to a desired type.
|
static Remote |
toStub(Remote obj)
Returns a stub for the given server object.
|
static void |
unexportObject(Remote obj)
Deregisters a server object from the runtime, allowing the object to become
available for garbage collection.
|
protected PortableRemoteObject()
throws RemoteException
exportObject(this).RemoteException - if export fails.public static void exportObject(Remote obj) throws RemoteException
RemoteException - if export fails.obj - the server object to export.public static Remote toStub(Remote obj) throws NoSuchObjectException
NoSuchObjectException - if a stub cannot be located for the given server object.obj - the server object for which a stub is required. Must either be a subclass
of PortableRemoteObject or have been previously the target of a call to
exportObject(java.rmi.Remote).public static void unexportObject(Remote obj) throws NoSuchObjectException
NoSuchObjectException - if the remote object is not
currently exported.obj - the object to unexport.public static Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException
ClassCastException - if narrowFrom cannot be cast to narrowTo.narrowFrom - the object to check.narrowTo - the desired type.public static void connect(Remote target, Remote source) throws RemoteException
Stub.connect(org.omg.CORBA.ORB) method for more information.RemoteException - if source is not connected
or if target is already connected to a different ORB than
source.target - the object to connect.source - a previously connected object.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2016 aicas GmbH. All Rights Reserved.