|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.rmi.multi.JeremiePRODelegate
public class JeremiePRODelegate
class JeremiePRODelegate
for the mapping between Jeremie
UnicastRemoteObject and PortableRemoteObject
Constructor Summary | |
---|---|
JeremiePRODelegate()
Empty constructor for instanciate this class |
Method Summary | |
---|---|
void |
connect(java.rmi.Remote target,
java.rmi.Remote source)
Makes a Remote object ready for remote communication. |
void |
exportObject(java.rmi.Remote obj)
Makes a server object ready to receive remote calls. |
java.lang.Object |
narrow(java.lang.Object narrowFrom,
java.lang.Class narrowTo)
Checks to ensure that an object of a remote or abstract interface type can be cast to a desired type. |
java.rmi.Remote |
toStub(java.rmi.Remote obj)
Returns a stub for the given server object. |
void |
unexportObject(java.rmi.Remote obj)
Deregisters a server object from the runtime, 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 |
---|
public JeremiePRODelegate() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- if the class JEREMIE_UNICAST_CLASS cannot be loadedMethod Detail |
---|
public void exportObject(java.rmi.Remote obj) throws java.rmi.RemoteException
exportObject
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
obj
- the server object to export.
java.rmi.RemoteException
- if export fails.public void unexportObject(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
unexportObject
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
obj
- the object to unexport.
java.rmi.NoSuchObjectException
- if the remote object is not
currently exported.public void connect(java.rmi.Remote target, java.rmi.Remote source) throws java.rmi.RemoteException
Stub#connect
method for more information.
connect
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
target
- the object to connect.source
- a previously connected object.
java.rmi.RemoteException
- if source
is not connected
or if target
is already connected to a different ORB than
source
.public java.lang.Object narrow(java.lang.Object narrowFrom, java.lang.Class narrowTo) throws java.lang.ClassCastException
narrow
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
narrowFrom
- the object to check.narrowTo
- the desired type.
java.lang.ClassCastException
- if narrowFrom cannot be cast to narrowTo.public java.rmi.Remote toStub(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
toStub
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
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)
.
java.rmi.NoSuchObjectException
- if a stub cannot be located for the given server object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |