public class UnicastRemoteObject extends RemoteStub
object adapter
.ref
Modifier | Constructor and Description |
---|---|
protected |
UnicastRemoteObject()
Creates a UnicastRemoteObject and exports it.
|
protected |
UnicastRemoteObject(int port)
Creates a UnicastRemoteObject and exports it with the given port.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
setRef
equals, getRef, toString
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.public int hashCode()
hashCode
in class RemoteObject
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 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) throws NoSuchObjectException
The force mechanism is not implemented yet.
obj
- the remote object to be unexported;force
- whether the object should be forcibly unexported or not.NoSuchObjectException
public static void unexportObject(Remote impl, JRMIBFactory binder) throws NoSuchObjectException
impl
- the remote object to unexport;binder
- a binding factory.NoSuchObjectException
public static Remote toStub(Remote impl) throws NoSuchObjectException
impl
- the remote object whose stub is requiredNoSuchObjectException
- if the remote object had not
been previously exported to Jeremie.