ibis.rmi.server
Interface RemoteRef

All Superinterfaces:
Externalizable, Serializable
All Known Subinterfaces:
ServerRef

public interface RemoteRef
extends Externalizable

A RemoteRef represents the handle for a remote object. A RemoteStub uses a remote reference for remote method invocation.


Method Summary
 String getRefClass(ObjectOutput out)
          Returns the class name of the reference type to be serialized to the specified stream.
 boolean remoteEquals(RemoteRef obj)
          Compares to remote objects for equality.
 int remoteHashCode()
          Returns a hashcode for a remote object.
 String remoteToString()
          Returns a string representing this remote object reference.
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

getRefClass

String getRefClass(ObjectOutput out)
Returns the class name of the reference type to be serialized to the specified stream.

Parameters:
out - the output stream to which the reference will be serialized
Returns:
the class name of the reference type

remoteHashCode

int remoteHashCode()
Returns a hashcode for a remote object. Two stubs that refer to the same remote object will have the same hash code.

Returns:
the remote object hashcode

remoteEquals

boolean remoteEquals(RemoteRef obj)
Compares to remote objects for equality.

Parameters:
obj - a reference to the remote object to compare with.
Returns:
the result of the comparison.

remoteToString

String remoteToString()
Returns a string representing this remote object reference.

Returns:
a string representing this remote object reference


The Ibis project