public interface RemoteRef
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.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
done
(
RemoteCall
call) 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
out) Returns the class name of the ref type to be serialized onto the stream 'out'. |
void |
invoke
(
RemoteCall
call) 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
obj,
Method
method,
Object
[] params, long opnum) Invoke a method. |
RemoteCall |
newCall
(
RemoteObject
obj,
Operation
[] op, int opnum, long hash) 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
obj) 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. |
Methods inherited from interface java.io. Externalizable |
---|
readExternal , writeExternal |
Field Detail |
---|
static final long serialVersionUID
static final String packagePrefix
Method Detail |
---|
Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception
@Deprecated RemoteCallnewCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException
@Deprecated void invoke(RemoteCall call) throws Exception
@Deprecated void done(RemoteCall call) throws RemoteException
String getRefClass(ObjectOutput out)
int remoteHashCode()
boolean remoteEquals(RemoteRef obj)
String remoteToString()