| Modifier and Type | Field and Description |
|---|---|
| protected RemoteRef | |
| private static final long |
| Modifier and Type | Method and Description |
|---|---|
| public void | done(RemoteCall call)
Implements java.
Deprecated
Allows the remote reference to clean up (or reuse) the connection. |
| public String | getRefClass(ObjectOutput out)
Implements java. Returns the class name of the ref type to be serialized onto the stream 'out'. |
| public void | invoke(RemoteCall call)
Implements java.
Deprecated
Executes the remote call. |
| public Object | invoke(Remote obj, Method method, Object[] params, long opnum)
Implements java. Invoke a method. |
| public RemoteCall | newCall(RemoteObject obj, Operation[] op, int opnum, long hash)
Implements java.
Deprecated
Creates an appropriate call object for a new remote method invocation on this object. |
| public void | readExternal(ObjectInput in)
Implements 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. |
| public boolean | remoteEquals(RemoteRef obj)
Implements java. Compares two remote objects for equality. |
| public int | remoteHashCode()
Implements java. Returns a hashcode for a remote object. |
| public String | remoteToString()
Implements java. Returns a String that represents the reference of this remote object. |
| public void | writeExternal(ObjectOutput out)
Implements 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. |
| 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.
| |