All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.rmi.server.RemoteRef

public interface RemoteRef
extends Externalizable
RemoteRef represents the handle for a remote object.


Variable Index

 o packagePrefix
Find server package prefix: assumes that the implementation of server ref classes (e.g., UnicastRef, UnicastServerRef) are located in the package defined by the prefix.

Method Index

 o done(RemoteCall)
Allows the remote reference to clean up (or reuse) the connection.
 o getRefClass(ObjectOutput)
Returns the class name of the ref type to be serialized onto the stream 'out'.
 o invoke(RemoteCall)
Executes the remote call.
 o newCall(RemoteObject, Operation[], int, long)
Creates an appropriate call object for a new remote method invocation 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 reference of this remote object.

Variables

 o packagePrefix
Properties Public Constant 
    packagePrefix=String 
Find server package prefix: assumes that the implementation of server ref classes (e.g., UnicastRef, UnicastServerRef) are located in the package defined by the prefix.

Methods

 o newCall
    method newCall(obj=RemoteObject, -
                   op=Operation[], -
                   opnum=int, -
                   hash=long) returns RemoteCall public abstract    Signals RemoteException
Creates an appropriate call object for a new remote method invocation 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.

Throws: RemoteException
if registry could not be contacted.
 o invoke
    method invoke(call=RemoteCall)  public abstract    Signals 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.

Throws: Exception
if a general exception occurs.
 o done
    method done(call=RemoteCall)  public abstract    Signals 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.

Throws: RemoteException
if registry could not be contacted.
 o getRefClass
    method getRefClass(out=ObjectOutput) returns String public abstract    
Returns the class name of the ref type to be serialized onto the stream 'out'.

 o remoteHashCode
    method remoteHashCode() returns int public abstract    
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
    method remoteEquals(obj=RemoteRef) returns boolean public abstract    
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
    method remoteToString() returns String public abstract    
Returns a String that represents the reference of this remote object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index