Top Description Fields Methods
java.rmi.server

public Interface ServerRef

extends RemoteRef
Known Direct Implementers
sun.rmi.server.UnicastServerRef
Annotations
@Deprecated
Imports
java.rmi.*

Deprecated

No replacement. This interface is unused and is obsolete.

A ServerRef represents the server-side handle for a remote object implementation.
Author
Ann Wollrath
Since
1.1

Field Summary

Modifier and TypeField and Description
public static final long
serialVersionUID

Hides java.rmi.server.RemoteRef.serialVersionUID.

indicate compatibility with JDK 1.1.x version of class.
Inherited from java.rmi.server.RemoteRef:
packagePrefix

Method Summary

Modifier and TypeMethod and Description
public RemoteStub

Returns:

the stub for the remote object
exportObject
(Remote
the remote object implementation
obj
,
Object
information necessary to export the object
data
)

Deprecated as a consequence of RemoteStub being deprecated.
Creates a client stub object for the supplied Remote object.
public String

Returns:

the client's host name
getClientHost
()

Returns the hostname of the current client.

Inherited from java.rmi.server.RemoteRef:
donegetRefClassinvokeinvokenewCallremoteEqualsremoteHashCoderemoteToString

Field Detail

serialVersionUIDback to summary
public static final long serialVersionUID

Hides java.rmi.server.RemoteRef.serialVersionUID.

Deprecated

A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

indicate compatibility with JDK 1.1.x version of class.

Annotations
@Deprecated
@SuppressWarnings:serial

Method Detail

exportObjectback to summary
public RemoteStub exportObject(Remote obj, Object data) throws RemoteException

Deprecated

as a consequence of RemoteStub being deprecated. See corresponding docs for further information.

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:Remote

the remote object implementation

data:Object

information necessary to export the object

Returns:RemoteStub

the stub for the remote object

Exceptions
RemoteException:
if an exception occurs attempting to export the object (e.g., stub class could not be found)
Since
1.1
getClientHostback to summary
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:String

the client's host name

Exceptions
ServerNotActiveException:
if called outside of servicing a remote method invocation
Since
1.1