|
Novell exteNd Messaging Platform 5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.rmi.PortableRemoteObject
The PortableRemoteObject (PRO) is intended to act as a base class for RMI/IDL server implementation classes. The server side implementation may either inherit from PRO, or they may simply implement an RMI/IDL interface and then use the exportObject method to register themselves as a server object.
Method Summary | |
static void |
connect(Remote target,
Remote source)
Makes a Remote object ready for remote communication. |
static void |
exportObject(Remote remote)
Register the Remote implementation as a server object. |
static Object |
narrow(Object obj,
Class cl)
Narrow the given object to the given type. |
static Remote |
toStub(Remote remote)
Get a Stub object that can be used to access the given Server object. |
static void |
unexportObject(Remote remote)
Unregister the Remote implementation as a server object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void exportObject(Remote remote) throws RemoteException
remote
- the remote implementation to export
RemoteException
- export failedpublic static void unexportObject(Remote remote) throws NoSuchObjectException
remote
- server object to unexport
NoSuchObjectException
public static Remote toStub(Remote remote) throws NoSuchObjectException
remote
- 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
PortableRemoteObject.exportObject. The server object must
also be ready for remote communication, which may require use
of the PortableRemoteObject.connect method if the object has
not yet been passed as an argument on a remote method call.
NoSuchObjectException
- can not instantiate the
stub for the given objectpublic static Object narrow(Object obj, Class cl) throws ClassCastException
obj
- the object to be narrowedcl
- the desired type
ClassCastException
public static void connect(Remote target, Remote source) throws RemoteException
target
- the object to connectsource
- a previously connected object
RemoteException
|
Novell exteNd Messaging Platform 5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |