public interface RemoteRef extends Externalizable
RemoteRef represents the handle for a remote object. A
RemoteStub uses a remote reference to carry out a remote method invocation to a remote object.
RemoteStub
| Modifier and Type | Field and Description |
|---|---|
static String |
packagePrefix
Initialize the server package prefix: assumes that the implementation of server ref classes (e.g., UnicastRef, UnicastServerRef) are located in the package defined by the prefix.
|
static long |
serialVersionUID
indicate compatibility with JDK 1.1.x version of class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done(RemoteCall
Deprecated.
1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (
newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.
|
String |
getRefClass(ObjectOutput
Returns the class name of the ref type to be serialized onto the stream 'out'.
|
void |
invoke(RemoteCall
Deprecated.
1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (
newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.
|
Object |
invoke(Remote
Invoke a method.
|
RemoteCall |
newCall(RemoteObject
Deprecated.
1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (
newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.
|
boolean |
remoteEquals(RemoteRef
Compares two remote objects for equality.
|
int |
remoteHashCode()
Returns a hashcode for a remote object.
|
String |
remoteToString()
Returns a String that represents the reference of this remote object.
|
readExternal, writeExternalstatic final long serialVersionUID
static final StringpackagePrefix
Objectinvoke(Remote obj, Method method, Object [] params, long opnum) throws Exception
obj - the object that contains the RemoteRef (e.g., the RemoteStub for the object.
method - the method to be invoked
params - the parameter list
opnum - a hash that may be used to represent the method
Exception - if any exception occurs during remote method invocation
@Deprecated RemoteCallnewCall(RemoteObject obj, Operation [] op, int opnum, long hash) throws RemoteException
newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.
obj - remote stub through which to make call
op - array of stub operations
opnum - operation number
hash - stub/skeleton interface hash
RemoteException - if failed to initiate new remote call
invoke(Remote,java.lang.reflect.Method,Object[],long)
@Deprecated void invoke(RemoteCallcall) throws Exception
newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.
call - object representing remote call
Exception - if any exception occurs during remote method
invoke(Remote,java.lang.reflect.Method,Object[],long)
@Deprecated void done(RemoteCallcall) throws RemoteException
newCall, invoke, and done), a stub uses a single method, invoke(Remote, Method, Object[], int), on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.
call - object representing remote call
RemoteException - if remote error occurs during call cleanup
invoke(Remote,java.lang.reflect.Method,Object[],long)
StringgetRefClass(ObjectOutput out)
out - the output stream to which the reference will be serialized
int remoteHashCode()
Hashtable
boolean remoteEquals(RemoteRefobj)
obj - the Object to compare with
Hashtable
StringremoteToString()