This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
java.rmi.server
interface ServerRef
- All Superinterfaces:
- Externalizable, RemoteRef, Serializable
public interface ServerRef
extends RemoteRef
A ServerRef represents the server-side handle for a remote object
implementation.
Field Summary |
static long |
serialVersionUID
indicate compatibility with JDK 1.1.x version of class. |
Method Summary |
RemoteStub |
Creates a client stub object for the supplied Remote object.
|
String |
Returns the hostname of the current client.
|
serialVersionUID
public static final long serialVersionUID
-
indicate compatibility with JDK 1.1.x version of class.
exportObject
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.
- Parameters:
obj
- the remote object implementation
data
- information necessary to export the object
- Returns:
- the stub for the remote object
- Throws:
RemoteException
- if an exception occurs attempting
to export the object (e.g., stub class could not be found)
getClientHost
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.
- Returns:
- the client's host name
- Throws:
ServerNotActiveException
- if called outside of servicing
a remote method invocation
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.