All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.rmi.server.RemoteCall

public interface RemoteCall
RemoteCall is an abstraction used solely by the implementation (stubs and skeletons of remote objects) to carry out a call to a remote object.


Method Index

 o done()
Allow cleanup after the remote call has completed.
 o executeCall()
Do whatever it takes to execute the call.
 o getInputStream()
Get the InputStream that the stub/skeleton should get results/arguments from.
 o getOutputStream()
Return the output stream the stub/skeleton should put arguments/results into.
 o getResultStream(boolean)
Returns an output stream (may put out header information relating to the success of the call).
 o releaseInputStream()
Release the input stream.
 o releaseOutputStream()
Release the output stream; in some transports this would release the stream.

Methods

 o getOutputStream
    method getOutputStream() returns ObjectOutput public abstract    Signals IOException
Return the output stream the stub/skeleton should put arguments/results into.

Throws: IOException
if an I/O error occurs.
 o releaseOutputStream
    method releaseOutputStream()  public abstract    Signals IOException
Release the output stream; in some transports this would release the stream.

Throws: IOException
if an I/O error occurs.
 o getInputStream
    method getInputStream() returns ObjectInput public abstract    Signals IOException
Get the InputStream that the stub/skeleton should get results/arguments from.

Throws: IOException
if an I/O error occurs.
 o releaseInputStream
    method releaseInputStream()  public abstract    Signals IOException
Release the input stream. This would allow some transports to release the channel early.

Throws: IOException
if an I/O error occurs.
 o getResultStream
    method getResultStream(success=boolean) returns ObjectOutput public abstract    Signals IOException, StreamCorruptedException
Returns an output stream (may put out header information relating to the success of the call). Should only succeed once per remote call.

Parameters:
success - If true, indicates normal return, else indicates exceptional return.
Throws: IOException
if an I/O error occurs.
Throws: StreamCorruptedException
If already been called.
 o executeCall
    method executeCall()  public abstract    Signals Exception
Do whatever it takes to execute the call.

Throws: Exception
if a general exception occurs.
 o done
    method done()  public abstract    Signals IOException
Allow cleanup after the remote call has completed.

Throws: IOException
if an I/O error occurs.

All Packages  Class Hierarchy  This Package  Previous  Next  Index