|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.cmi.rmi.DefaultCMIPRODelegate
public class DefaultCMIPRODelegate
Define a delegate for supporting multiprotocols based on the default PRODelegate of Sun.
com.sun.corba.se.impl.javax.rmi.PortableRemoteObject| Constructor Summary | |
|---|---|
DefaultCMIPRODelegate()
|
|
| 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 DefaultCMIPRODelegate()
| Method Detail |
|---|
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.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 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 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.
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||