FileDocCategorySizeDatePackage
ServerRef.javaAPI DocJava SE 5 API1593Fri Aug 26 14:57:12 BST 2005java.rmi.server

ServerRef

public interface ServerRef implements RemoteRef
A ServerRef represents the server-side handle for a remote object implementation.
version
1.16, 12/19/03
author
Ann Wollrath
since
JDK1.1

Fields Summary
static final long
serialVersionUID
indicate compatibility with JDK 1.1.x version of class.
Constructors Summary
Methods Summary
public java.rmi.server.RemoteStubexportObject(java.rmi.Remote obj, java.lang.Object data)
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.

param
obj the remote object implementation
param
data information necessary to export the object
return
the stub for the remote object
exception
RemoteException if an exception occurs attempting to export the object (e.g., stub class could not be found)
since
JDK1.1

public java.lang.StringgetClientHost()
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.

return
the client's host name
exception
ServerNotActiveException if called outside of servicing a remote method invocation
since
JDK1.1