FileDocCategorySizeDatePackage
RemoteCall.javaAPI DocJava SE 6 API3392Tue Jun 10 00:25:44 BST 2008java.rmi.server

RemoteCall

public interface RemoteCall
RemoteCall is an abstraction used solely by the RMI runtime (in conjunction with stubs and skeletons of remote objects) to carry out a call to a remote object. The RemoteCall interface is deprecated because it is only used by deprecated methods of java.rmi.server.RemoteRef.
version
1.21, 07/17/06
since
JDK1.1
author
Ann Wollrath
author
Roger Riggs
see
java.rmi.server.RemoteRef
deprecated
no replacement.

Fields Summary
Constructors Summary
Methods Summary
public voiddone()
Allow cleanup after the remote call has completed.

exception
java.io.IOException if an I/O error occurs.
since
JDK1.1
deprecated
no replacement

public voidexecuteCall()
Do whatever it takes to execute the call.

exception
java.lang.Exception if a general exception occurs.
since
JDK1.1
deprecated
no replacement

public java.io.ObjectInputgetInputStream()
Get the InputStream that the stub/skeleton should get results/arguments from.

return
input stream for reading arguments/results
exception
java.io.IOException if an I/O error occurs.
since
JDK1.1
deprecated
no replacement

public java.io.ObjectOutputgetOutputStream()
Return the output stream the stub/skeleton should put arguments/results into.

return
output stream for arguments/results
exception
java.io.IOException if an I/O error occurs.
since
JDK1.1
deprecated
no replacement

public java.io.ObjectOutputgetResultStream(boolean success)
Returns an output stream (may put out header information relating to the success of the call). Should only succeed once per remote call.

param
success If true, indicates normal return, else indicates exceptional return.
return
output stream for writing call result
exception
java.io.IOException if an I/O error occurs.
exception
java.io.StreamCorruptedException If already been called.
since
JDK1.1
deprecated
no replacement

public voidreleaseInputStream()
Release the input stream. This would allow some transports to release the channel early.

exception
java.io.IOException if an I/O error occurs.
since
JDK1.1
deprecated
no replacement

public voidreleaseOutputStream()
Release the output stream; in some transports this would release the stream.

exception
java.io.IOException if an I/O error occurs.
since
JDK1.1
deprecated
no replacement