|
|||||||||
| Home >> All >> java >> rmi >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.rmi.server
Interface RemoteRef

- All Superinterfaces:
- java.io.Externalizable, java.io.Serializable
- All Known Subinterfaces:
- ServerRef
- public interface RemoteRef
- extends java.io.Externalizable
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) 55 .
| Field Summary | |
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.* |
| Method Summary | |
void |
done(RemoteCall call)
Deprecated. use invoke(Remote, Method, Object[], long) 55 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) 55 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) 55 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. |
| Methods inherited from interface java.io.Externalizable |
readExternal, writeExternal |
| Field Detail |
serialVersionUID
public static final long serialVersionUID
- Indicates compatibility with JDK 1.1.*
- See Also:
- Constant Field Values
packagePrefix
public static final java.lang.String packagePrefix
- For binary compatibility with the JDK, the string "sun.rmi.server".
Not actually used for anything.
- See Also:
- Constant Field Values
| Method Detail |
invoke
public void invoke(RemoteCall call) throws java.lang.Exception
- Deprecated. use
invoke(Remote, Method, Object[], long)55 instead.
invoke
public java.lang.Object invoke(java.rmi.Remote obj, java.lang.reflect.Method method, java.lang.Object[] params, long methodHash) throws java.lang.Exception
- Invoke a method. This method either returns the result of remote invocation
or throws RemoteException if the remote call failed. Other exceptions may
be thrown if some problem has occured in the application level.
newCall
public RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws java.rmi.RemoteException
- Deprecated. use
invoke(Remote, Method, Object[], long)55 instead.
done
public void done(RemoteCall call) throws java.rmi.RemoteException
- Deprecated. use
invoke(Remote, Method, Object[], long)55 instead.
remoteEquals
public boolean remoteEquals(RemoteRef ref)
- Compare two remote objects for equality. The references are equal if
they point to the same remote object.
remoteHashCode
public int remoteHashCode()
- Get the hashcode for a remote object. Two remote object stubs, referring
to the same remote object, have the same hash code.
getRefClass
public java.lang.String getRefClass(java.io.ObjectOutput out)
- Returns the class name of the reference type that must be written to the
given stream. When writing, this returned name is passed first, and
the reference.writeExternal(out) writes the reference specific data.
remoteToString
public java.lang.String remoteToString()
- Get the string representation of this remote reference.
|
|||||||||
| Home >> All >> java >> rmi >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC