|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rmi.PortableRemoteObject
public class PortableRemoteObject
This class is intended to act as a base class for RMI/IDL server implementation classes.
Constructor Summary | |
---|---|
protected |
PortableRemoteObject()
This constructor is called by the derived implementation class to initialize the base class state |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PortableRemoteObject() throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public static void exportObject(java.rmi.Remote obj) throws java.rmi.RemoteException
java.rmi.RemoteException
public static java.rmi.Remote toStub(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException
public static void unexportObject(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException
public static java.lang.Object narrow(java.lang.Object obj, java.lang.Class newClass) throws java.lang.ClassCastException
java.lang.ClassCastException
public static void connect(java.rmi.Remote target, java.rmi.Remote source) throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |