Modifier and Type | Field and Description |
---|---|
protected RemoteRef | |
private static final long |
Modifier and Type | Method and Description |
---|---|
public void | done(RemoteCall
object representing remote call call)Implements java.
Deprecated
Allows the remote reference to clean up (or reuse) the connection.
|
public String | getRefClass(ObjectOutput
the output stream to which the reference will be serialized out)Implements java. |
public void | invoke(RemoteCall
object representing remote call call)Implements java.
Deprecated
Executes the remote call.
|
public Object | invoke(Remote
the object that contains the RemoteRef (e.g., the
RemoteStub for the object. obj, Method the method to be invoked method, Object[] the parameter list params, long a hash that may be used to represent the method opnum)Implements java. |
public RemoteCall | newCall(RemoteObject
remote stub through which to make call obj, Operation[] array of stub operations op, int operation number opnum, long stub/skeleton interface hash hash)Implements java.
Deprecated
Creates an appropriate call object for a new remote method
invocation on this object.
|
public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. |
public boolean | remoteEquals(RemoteRef
the Object to compare with obj)Implements java. |
public int | remoteHashCode()
Implements java. |
public String | remoteToString()
Implements java. |
public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. |
ref | back to summary |
---|---|
protected RemoteRef ref |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
ProxyRef | back to summary |
---|---|
public ProxyRef(RemoteRef ref) |
done | back to summary |
---|---|
public void done(RemoteCall call) throws RemoteException Implements java. Doc from java. Deprecated
Allows the remote reference to clean up (or reuse) the connection. Done should only be called if the invoke returns successfully (non-exceptionally) to the stub.
|
getRefClass | back to summary |
---|---|
public String getRefClass(ObjectOutput out) Implements java. Doc from java. Returns the class name of the ref type to be serialized onto the stream 'out'.
|
invoke | back to summary |
---|---|
public void invoke(RemoteCall call) throws Exception Implements java. Doc from java. Deprecated
Executes the remote call. Invoke will raise any "user" exceptions which should pass through and not be caught by the stub. If any exception is raised during the remote invocation, invoke should take care of cleaning up the connection before raising the "user" or remote exception.
|
invoke | back to summary |
---|---|
public Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception Implements java. Doc from java. Invoke a method. This form of delegating method invocation to the reference allows the reference to take care of setting up the connection to the remote host, marshaling some representation for the method and parameters, then communicating the method invocation to the remote host. This method either returns the result of a method invocation on the remote object which resides on the remote host or throws a RemoteException if the call failed or an application-level exception if the remote invocation throws an exception. |
newCall | back to summary |
---|---|
public RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException Implements java. Doc from java. Deprecated
Creates an appropriate call object for a new remote method invocation on this object. Passing operation array and index, allows the stubs generator to assign the operation indexes and interpret them. The remote reference may need the operation to encode in the call.
|
readExternal | back to summary |
---|---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
|
remoteEquals | back to summary |
---|---|
public boolean remoteEquals(RemoteRef obj) Implements java. Doc from java. Compares two remote objects for equality. Returns a boolean that indicates whether this remote object is equivalent to the specified Object. This method is used when a remote object is stored in a hashtable.
|
remoteHashCode | back to summary |
---|---|
public int remoteHashCode() Implements java. Doc from java. Returns a hashcode for a remote object. Two remote object stubs that refer to the same remote object will have the same hash code (in order to support remote objects as keys in hash tables).
|
remoteToString | back to summary |
---|---|
public String remoteToString() Implements java. Doc from java. Returns a String that represents the reference of this remote object.
|
writeExternal | back to summary |
---|---|
public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
|