|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.carol.rmi.multi.MultiPRODelegate
Class MultiPRODelegate
This is a proxy for multi orb portable remote object delegate reference this
class with the systeme property : java
-Djavax.rmi.CORBA.PortableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate
... for the moment this class is only for one orb
| Constructor Summary | |
MultiPRODelegate()
constructor for this PortableRemoteObjectDelegateProxy |
|
| 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 MultiPRODelegate()
| Method Detail |
public void exportObject(java.rmi.Remote obj)
throws java.rmi.RemoteException
exportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - 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.PortableRemoteObjectDelegateobj - 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
connect in interface javax.rmi.CORBA.PortableRemoteObjectDelegatetarget - 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.PortableRemoteObjectDelegatenarrowFrom - 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.PortableRemoteObjectDelegateobj - 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 | ||||||||||