| |
|
| java.lang.Object org.apache.harmony.rmi.server.ServerRemoteCall
ServerRemoteCall | public class ServerRemoteCall implements RemoteCall,RMIProtocolConstants(Code) | | RemoteCall implementation used by UnicastServerRef on server's side.
author: Mikhail A. Markov version: $Revision: 1.1.2.2 $ |
Method Summary | |
public void | done() | public void | executeCall() Not used on server side. | public ObjectInput | getInputStream() Constructs ObjectInputStream (if it was not created yet) and returns
this created stream. | public ObjectOutput | getOutputStream() Constructs ObjectOutputStream (if it was not created yet) and returns
this created stream. | public ObjectOutput | getResultStream(boolean success) Writes byte meaning normal call return, writes byte identifying call
result (normal return or exception) - depending on success parameter,
writes UID of the object (for DGC) and flushes the output stream. | public boolean | hasResultStream() Returns true if getResultStream was already called before and
false otherwise. | public void | releaseInputStream() | public void | releaseOutputStream() | public String | toString() Returns string representation of this RemoteCall. |
ServerRemoteCall | public ServerRemoteCall(ServerConnection conn)(Code) | | Constructs ServerRemoteCall from existing connection.
Parameters: conn - opened ServerConnection |
ServerRemoteCall | public ServerRemoteCall(ServerConnection conn, ObjectInputStream oin)(Code) | | Constructs ServerRemoteCall from opened connection and already created
ObjectOutputStream.
Parameters: conn - opened ServerConnection Parameters: oin - created ObjectOutputStream |
executeCall | public void executeCall() throws Exception(Code) | | Not used on server side.
|
getInputStream | public ObjectInput getInputStream() throws IOException(Code) | | Constructs ObjectInputStream (if it was not created yet) and returns
this created stream.
ObjectInputStream to read objects from throws: IOException - if an I/O error occurred during stream construction |
getOutputStream | public ObjectOutput getOutputStream() throws IOException(Code) | | Constructs ObjectOutputStream (if it was not created yet) and returns
this created stream.
ObjectOutputStream to write objects to throws: IOException - if an I/O error occurred during stream construction |
getResultStream | public ObjectOutput getResultStream(boolean success) throws IOException, StreamCorruptedException(Code) | | Writes byte meaning normal call return, writes byte identifying call
result (normal return or exception) - depending on success parameter,
writes UID of the object (for DGC) and flushes the output stream.
This method could be called only once.
Parameters: success - if true - means that method call was successful (i.e.with no exception) - return data description will be written tothe output stream throws: IOException - if an I/O error occurred while writing to the stream throws: StreamCorruptedException - if this method has already been called |
hasResultStream | public boolean hasResultStream()(Code) | | Returns true if getResultStream was already called before and
false otherwise.
true if getResultStream was already called before andfalse otherwise |
releaseInputStream | public void releaseInputStream() throws IOException(Code) | | See Also: RemoteCall.releaseInputStream() |
releaseOutputStream | public void releaseOutputStream() throws IOException(Code) | | See Also: RemoteCall.releaseOutputStream() |
toString | public String toString()(Code) | | Returns string representation of this RemoteCall.
string representation of this RemoteCall |
|
|
|