public interface RemoteRef extends 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 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. |
String |
getRefClass(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. |
Object |
invoke(Remote obj,
Method method,
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.
|
String |
remoteToString()
Get the string representation of this remote reference.
|
readExternal, writeExternalstatic final long serialVersionUID
static final String packagePrefix
void invoke(RemoteCall call) throws Exception
invoke(Remote, Method, Object[], long) instead.ExceptionObject invoke(Remote obj, Method method, Object[] params, long methodHash) throws 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
methodRemoteException - if the remote call has failedException - if one is raised at the application levelRemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException
invoke(Remote, Method, Object[], long) instead.RemoteExceptionvoid done(RemoteCall call) throws RemoteException
invoke(Remote, Method, Object[], long) instead.RemoteExceptionboolean remoteEquals(RemoteRef ref)
ref - the reference to compare.int remoteHashCode()
String getRefClass(ObjectOutput out)
out - the stream, where the data must be writtenString remoteToString()