public class PortableRemoteObject
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
PortableRemoteObject()
This constructor is called by the derived implementation class to initialize the
base class state
|
| Modifier and Type | Method and Description |
|---|---|
static void |
connect(java.rmi.Remote target,
java.rmi.Remote source)
This method makes the remote object target ready for remote communication using the
same communications runtime as source.
|
static void |
exportObject(java.rmi.Remote obj)
A call to this method with no objects exported creates a non-daemon thread wich keeps the
java virtual machine alive until all exported objects have been unexported by calling
unexportObject.
|
static java.lang.Object |
narrow(java.lang.Object obj,
java.lang.Class newClass)
This method takes an object reference or an object of an RMI/IDL abstract interface type
and attemps to narrow it to conform to the given newClass RMI/IDL type.
|
static java.rmi.Remote |
toStub(java.rmi.Remote obj)
This method takes a server implementation object and returns a stubobject that can
be used to access that server object.
|
static void |
unexportObject(java.rmi.Remote obj)
This method is used to deregister a currently exported server object from the ORB
runtimes, allowing the object to become available for garbage collection.
|
protected PortableRemoteObject()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic static void exportObject(java.rmi.Remote obj)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic static java.rmi.Remote toStub(java.rmi.Remote obj)
throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectExceptionpublic static void unexportObject(java.rmi.Remote obj)
throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectExceptionpublic static java.lang.Object narrow(java.lang.Object obj,
java.lang.Class newClass)
throws java.lang.ClassCastException
java.lang.ClassCastExceptionpublic static void connect(java.rmi.Remote target,
java.rmi.Remote source)
throws java.rmi.RemoteException
java.rmi.RemoteException