|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteRef
Represents a handler to the remote object. Each instance of the
RemoteStub contains such handler and uses it to invoke remote
methods via invoke(Remote, Method, Object[], long).
| Field Summary | |
|---|---|
static String |
packagePrefix
For binary compatibility with the JDK, the string "sun.rmi.server". |
static long |
serialVersionUID
Indicates compatibility with JDK 1.1 |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Field Detail |
|---|
static final long serialVersionUID
static final String packagePrefix
| Method Detail |
|---|
void invoke(RemoteCall call)
throws Exception
invoke(Remote, Method, Object[], long) instead.
Exception
Object 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
method
RemoteException - if the remote call has failed
Exception - if one is raised at the application level
RemoteCall newCall(RemoteObject obj,
Operation[] op,
int opnum,
long hash)
throws RemoteException
invoke(Remote, Method, Object[], long) instead.
RemoteException
void 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 written
String remoteToString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||