|
||||||||||
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.binding.soa.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. |
protected |
UnicastRemoteObject(int port,
boolean daemon)
Creates a UnicastRemoteObject and exports it with the given port. |
Method Summary | |
static RemoteStub |
export(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 RemoteStub |
exportObject(Remote impl)
Exports the given remote object. |
static RemoteStub |
exportObject(Remote impl,
int port)
Exports the given remote object with a given port. |
static RemoteStub |
exportObject(Remote impl,
int port,
boolean daemon)
Exports the given remote object with a given port. |
int |
hashCode()
|
static Remote |
toStub(Remote impl)
Returns the Jeremie stub for the given remote object. |
static boolean |
unexportObject(Remote impl,
boolean force)
Unexports the specified remote object. |
static void |
unexportObject(Remote impl,
JRMIBFactory binder)
Unexports the given remote object from the object adapter and the given binding factory. |
protected 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 RemoteException
RemoteException
- if something goes wrong.protected UnicastRemoteObject(int port) throws RemoteException
port
- the port number on which to export this UnicastRemoteObject.
RemoteException
- if something goes wrong.protected UnicastRemoteObject(int port, boolean daemon) throws RemoteException
port
- the port number on which to export this UnicastRemoteObject.daemon
- indicates that only daemon threads should be created by the export process.
RemoteException
- if something goes wrong.Method Detail |
public int hashCode()
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if something goes wrong.public static RemoteStub exportObject(Remote impl) throws RemoteException
impl
- the remote object to export.
RemoteException
- if something goes wrong.public static RemoteStub exportObject(Remote impl, int port) throws RemoteException
impl
- the remote object to export;port
- the port number with which to export the remote object.
RemoteException
- if something goes wrong.public static RemoteStub exportObject(Remote impl, int port, boolean daemon) throws RemoteException
impl
- the remote object to export;port
- the port number with which to export the remote object.daemon
- indicates that only daemon threads should be created by the export process.
RemoteException
- if something goes wrong.public static RemoteStub export(Remote impl, org.objectweb.jonathan.apis.kernel.Context hints, JRMIBFactory binder) throws 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.
RemoteException
public static boolean unexportObject(Remote impl, boolean force)
The force mechanism is not implemented yet.
force
- whether the object should be forcibly unexported or not.
public static void unexportObject(Remote impl, JRMIBFactory binder)
impl
- the remote object to unexport;binder
- a binding factory.public static Remote toStub(Remote impl) throws NoSuchObjectException
impl
- the remote object whose stub is required
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 |