java.rmi.server
public interface: ServerRef [javadoc |
source]
All Implemented Interfaces:
RemoteRef
A ServerRef represents the server-side handle for a remote object
implementation.
- author:
Ann
- Wollrath
- since:
JDK1.1
-
Field Summary |
---|
static final long | serialVersionUID | indicate compatibility with JDK 1.1.x version of class. |
Method from java.rmi.server.ServerRef Detail: |
public RemoteStub exportObject(Remote obj,
Object data) throws RemoteException
Creates a client stub object for the supplied Remote object.
If the call completes successfully, the remote object should
be able to accept incoming calls from clients. |
public String getClientHost() throws ServerNotActiveException
Returns the hostname of the current client. When called from a
thread actively handling a remote method invocation the
hostname of the client is returned. |