|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteStub
org.objectweb.jeremie.libs.binding.moa.UnicastRemoteObject
Provides an implementation of UnicastRemoteObject, multiple instances of
which are managed together by an object adapter
.
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
protected |
UnicastRemoteObject()
Creates a UnicastRemoteObject and exports it. |
protected |
UnicastRemoteObject(int port)
Creates a UnicastRemoteObject and exports it with the given port. |
Method Summary | |
static java.rmi.server.RemoteStub |
export(java.rmi.Remote impl,
org.objectweb.jonathan.apis.kernel.Context hints,
JRMIBFactory binder)
Exports the given remote object to the object adapter, and then recursively to the given binding factory. |
static java.rmi.server.RemoteStub |
exportObject(java.rmi.Remote impl)
Exports the given remote object. |
static java.rmi.server.RemoteStub |
exportObject(java.rmi.Remote impl,
int port)
Exports the given remote object with a given port. |
int |
hashCode()
|
static java.rmi.Remote |
toStub(java.rmi.Remote impl)
Returns the Jeremie stub for the given remote object. |
static boolean |
unexportObject(java.rmi.Remote impl,
boolean force)
Unexports the specified remote object. |
static void |
unexportObject(java.rmi.Remote impl,
JRMIBFactory binder)
Unexports the given remote object from the object adapter and the given binding factory. |
protected java.lang.Object |
writeReplace()
Returns the stub object corresponding to this UnicastRemoteObject. |
Methods inherited from class java.rmi.server.RemoteStub |
setRef |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected UnicastRemoteObject() throws java.rmi.RemoteException
java.rmi.RemoteException
- if something goes wrong.protected UnicastRemoteObject(int port) throws java.rmi.RemoteException
port
- the port number on which to export this UnicastRemoteObject.
java.rmi.RemoteException
- if something goes wrong.Method Detail |
public int hashCode()
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
- if something goes wrong.public static java.rmi.server.RemoteStub exportObject(java.rmi.Remote impl) throws java.rmi.RemoteException
impl
- the remote object to export.
java.rmi.RemoteException
- if something goes wrong.public static java.rmi.server.RemoteStub exportObject(java.rmi.Remote impl, int port) throws java.rmi.RemoteException
impl
- the remote object to export;port
- the port number with which to export the remote object.
java.rmi.RemoteException
- if something goes wrong.public static java.rmi.server.RemoteStub export(java.rmi.Remote impl, org.objectweb.jonathan.apis.kernel.Context hints, JRMIBFactory binder) throws java.rmi.RemoteException
impl
- the remote object to be exported;hints
- other data that may be useful for the export;binder
- a binding factory.
java.rmi
- RemoteException if something goes wrong.
java.rmi.RemoteException
public static boolean unexportObject(java.rmi.Remote impl, boolean force) throws java.rmi.NoSuchObjectException
The force mechanism is not implemented yet.
force
- whether the object should be forcibly unexported or not.
java.rmi.NoSuchObjectException
public static void unexportObject(java.rmi.Remote impl, JRMIBFactory binder) throws java.rmi.NoSuchObjectException
impl
- the remote object to unexport;binder
- a binding factory.
java.rmi.NoSuchObjectException
public static java.rmi.Remote toStub(java.rmi.Remote impl) throws java.rmi.NoSuchObjectException
impl
- the remote object whose stub is required
java.rmi.NoSuchObjectException
- if the remote object had not
been previously exported to Jeremie.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |