ibis.rmi.server
Interface ServerRef
- All Superinterfaces:
- java.io.Externalizable, RemoteRef, java.io.Serializable
- public interface ServerRef
- extends RemoteRef
A ServerRef
represents the server side handle for a
remote object.
Method Summary |
RemoteStub |
exportObject(Remote obj,
java.lang.Object data)
Creates a stub object for the remote object specified. |
java.lang.String |
getClientHost()
Returns the hostname of the current client, but only when called
from a thread handling a remote method invocation. |
Methods inherited from interface java.io.Externalizable |
readExternal, writeExternal |
exportObject
public RemoteStub exportObject(Remote obj,
java.lang.Object data)
throws RemoteException
- Creates a stub object for the remote object specified.
- Parameters:
obj
- the remote object (implementation)data
- information for exporting the object
- Returns:
- a stub for the remote object
- Throws:
RemoteException
- if the export fails
getClientHost
public java.lang.String getClientHost()
throws ServerNotActiveException
- Returns the hostname of the current client, but only when called
from a thread handling a remote method invocation. If not, an
exception is thrown.
- Returns:
- the hostname of the client
- Throws:
ServerNotActiveException
- if not called from a thread that
is currently servicing a remote method invocation
The Ibis project