public interface RemoteRef extends java.io.Externalizable
RemoteStub contains such handler and uses it to invoke remote
methods via invoke(Remote, Method, Object[], long).| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
packagePrefix
For binary compatibility with the JDK, the string "sun.rmi.server".
|
static long |
serialVersionUID
Indicates compatibility with JDK 1.1
|
| Modifier and Type | Method and Description |
|---|---|
void |
done(RemoteCall call)
Deprecated.
use
invoke(Remote, Method, Object[], long) instead. |
java.lang.String |
getRefClass(java.io.ObjectOutput out)
Returns the class name of the reference type that must be written to the
given stream.
|
void |
invoke(RemoteCall call)
Deprecated.
use
invoke(Remote, Method, Object[], long) instead. |
java.lang.Object |
invoke(java.rmi.Remote obj,
java.lang.reflect.Method method,
java.lang.Object[] params,
long methodHash)
Invoke a method.
|
RemoteCall |
newCall(RemoteObject obj,
Operation[] op,
int opnum,
long hash)
Deprecated.
use
invoke(Remote, Method, Object[], long) instead. |
boolean |
remoteEquals(RemoteRef ref)
Compare two remote objects for equality.
|
int |
remoteHashCode()
Get the hashcode for a remote object.
|
java.lang.String |
remoteToString()
Get the string representation of this remote reference.
|
static final long serialVersionUID
static final java.lang.String packagePrefix
void invoke(RemoteCall call) throws java.lang.Exception
invoke(Remote, Method, Object[], long) instead.java.lang.Exceptionjava.lang.Object invoke(java.rmi.Remote obj, java.lang.reflect.Method method, java.lang.Object[] params, long methodHash) throws java.lang.Exception
obj - the object, containing the remote reference (for instance,
remote stub, generated by rmic).method - the method to invokeparams - the method parametersmethodHash - a persistent hash code that can be used to represent a
methodjava.rmi.RemoteException - if the remote call has failedjava.lang.Exception - if one is raised at the application levelRemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws java.rmi.RemoteException
invoke(Remote, Method, Object[], long) instead.java.rmi.RemoteExceptionvoid done(RemoteCall call) throws java.rmi.RemoteException
invoke(Remote, Method, Object[], long) instead.java.rmi.RemoteExceptionboolean remoteEquals(RemoteRef ref)
ref - the reference to compare.int remoteHashCode()
java.lang.String getRefClass(java.io.ObjectOutput out)
out - the stream, where the data must be writtenjava.lang.String remoteToString()