public class

StreamRemoteCall

extends Object
implements RemoteCall
java.lang.Object
   ↳ sun.rmi.transport.StreamRemoteCall

Class Overview

Stream-based implementation of the RemoteCall interface.

Summary

Public Constructors
StreamRemoteCall(Connection c)
StreamRemoteCall(Connection c, ObjID id, int op, long hash)
Public Methods
void done()
Allow cleanup after the remote call has completed.
void executeCall()
Do whatever it takes to execute the call.
Connection getConnection()
Return the connection associated with this call.
ObjectInput getInputStream()
Get the InputStream the stub/skeleton should get results/arguments from.
ObjectOutput getOutputStream()
Return the output stream the stub/skeleton should put arguments/results into.
ObjectOutput getResultStream(boolean success)
Returns an output stream (may put out header information relating to the success of the call).
Exception getServerException()
void releaseInputStream()
Release the input stream, this would allow some transports to release the channel early.
void releaseOutputStream()
Release the outputStream Currently, will not complain if the output stream is released more than once.
Protected Methods
void exceptionReceivedFromServer(Exception ex)
Routine that causes the stack traces of remote exceptions to be filled in with the current stack trace on the client.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.rmi.server.RemoteCall

Public Constructors

public StreamRemoteCall (Connection c)

public StreamRemoteCall (Connection c, ObjID id, int op, long hash)

Public Methods

public void done ()

Allow cleanup after the remote call has completed.

Throws
IOException

public void executeCall ()

Do whatever it takes to execute the call.

Throws
Exception

public Connection getConnection ()

Return the connection associated with this call.

public ObjectInput getInputStream ()

Get the InputStream the stub/skeleton should get results/arguments from.

Returns
  • input stream for reading arguments/results
Throws
IOException

public ObjectOutput getOutputStream ()

Return the output stream the stub/skeleton should put arguments/results into.

Returns
  • output stream for arguments/results
Throws
IOException

public ObjectOutput getResultStream (boolean success)

Returns an output stream (may put out header information relating to the success of the call).

Parameters
success If true, indicates normal return, else indicates exceptional return.
Returns
  • output stream for writing call result
Throws
StreamCorruptedException If result stream previously acquired
IOException For any other problem with I/O.

public Exception getServerException ()

public void releaseInputStream ()

Release the input stream, this would allow some transports to release the channel early.

Throws
IOException

public void releaseOutputStream ()

Release the outputStream Currently, will not complain if the output stream is released more than once.

Throws
IOException

Protected Methods

protected void exceptionReceivedFromServer (Exception ex)

Routine that causes the stack traces of remote exceptions to be filled in with the current stack trace on the client. Detail exceptions are filled in iteratively.

Throws
Exception