Interface java.rmi.server.RemoteRef
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.rmi.server.RemoteRef

public interface RemoteRef
extends Object
Used solely by the implementation.


Method Index

 o done(RemoteCall)
Allows the remote reference to clean up (or reuse) the connection.
 o getClientRef()
Returns the client remote reference for this remote reference.
 o invoke(RemoteCall, Operation[], int)
Executes the remote call.
 o newCall(RemoteObject, Operation[], int)
Creates an appropriate call object for a new call on this object.
 o remoteEquals(RemoteRef)
Compares two remote objects for equality.
 o remoteHashCode()
Returns a hashcode for a remote object.
 o remoteToString()
Returns a String that represents the value of this remote object.

Methods

 o newCall
  public abstract RemoteCall newCall(RemoteObject remote,
                                     Operation op[],
                                     int opnum) throws RemoteException
Creates an appropriate call object for a new call on this object. Passing operation array and index, allows the stubs generator to assign the operation indexes and interpret them. The remote reference may need the operation to encode in the call.
 o invoke
  public abstract void invoke(RemoteCall call,
                              Operation op[],
                              int opnum) throws Exception
Executes the remote call. Invoke will raise any "user" exceptions which should pass through and not be caught by the stub. If any exception is raised during the remote invocation, invoke should take care of cleaning up the connection before raising the "user" or remote exception.
 o done
  public abstract void done(RemoteCall call) throws RemoteException
Allows the remote reference to clean up (or reuse) the connection. Done should only be called if the invoke returns successfully (non-exceptionally) to the stub.
 o getClientRef
  public abstract RemoteRef getClientRef()
Returns the client remote reference for this remote reference. In the case of a client remote reference, "this" is the return value. For a server remote reference, a client side one will have to be found or created.
 o remoteHashCode
  public abstract int remoteHashCode()
Returns a hashcode for a remote object. Two remote object stubs that refer to the same remote object will have the same hash code (in order to support remote objects as keys in hash tables).
See Also:
Hashtable
 o remoteEquals
  public abstract boolean remoteEquals(RemoteRef obj)
Compares two remote objects for equality. Returns a boolean that indicates whether this remote object is equivalent to the specified Object. This method is used when a remote object is stored in a hashtable.
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
See Also:
Hashtable
 o remoteToString
  public abstract String remoteToString()
Returns a String that represents the value of this remote object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index