Externalizable
, Serializable
ServerRef
public interface RemoteRef extends Externalizable
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.Modifier and Type | Field | Description |
---|---|---|
static final 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 final long |
serialVersionUID |
Deprecated. |
Modifier and Type | Method | Description |
---|---|---|
void |
done |
Deprecated. 1.2 style stubs no longer use this method. |
String |
getRefClass |
Returns the class name of the ref type to be serialized onto the stream 'out'. |
Object |
invoke |
Invoke a method. |
void |
invoke |
Deprecated. 1.2 style stubs no longer use this method. |
RemoteCall |
newCall |
Deprecated. 1.2 style stubs no longer use this method. |
boolean |
remoteEquals |
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. |
readExternal, writeExternal
@Deprecated static final long serialVersionUID
serialVersionUID
field in an interface is ineffectual. Do not use; no replacement.static final String packagePrefix
Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception
obj
- the object that contains the RemoteRef (e.g., the RemoteStub for the object.method
- the method to be invokedparams
- the parameter listopnum
- a hash that may be used to represent the methodException
- if any exception occurs during remote method invocation@Deprecated RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException
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.obj
- remote stub through which to make callop
- array of stub operationsopnum
- operation numberhash
- stub/skeleton interface hashRemoteException
- if failed to initiate new remote call@Deprecated void invoke(RemoteCall call) throws Exception
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.call
- object representing remote callException
- if any exception occurs during remote method@Deprecated void done(RemoteCall call) throws RemoteException
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.call
- object representing remote callRemoteException
- if remote error occurs during call cleanupString getRefClass(ObjectOutput out)
out
- the output stream to which the reference will be serializedint remoteHashCode()
boolean remoteEquals(RemoteRef obj)
obj
- the Object to compare withString remoteToString()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.rmi/java/rmi/server/RemoteRef.html
serialVersionUID
field in an interface is ineffectual.