|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.healthmarketscience.rmiio.RemoteIteratorServer<DataType>
public class RemoteIteratorServer<DataType>
Base class for implementing the server side of a RemoteIterator. This object manages RemoteInputStreamServer which connects the client and the server. Implementations of this class must provide an InputStream which is the source of the data going over the wire. Note, users of this class should ensure that the close() method is called one way or another, or shutdown of the process may be delayed.
| Field Summary | |
|---|---|
protected InputStream |
_localIStream
InputStream which is used by the RemoteInputStreamServer to read the objects. |
| Constructor Summary | |
|---|---|
RemoteIteratorServer(InputStream localIStream)
|
|
RemoteIteratorServer(InputStream localIStream,
boolean useCompression)
|
|
RemoteIteratorServer(InputStream localIStream,
boolean useCompression,
RemoteStreamMonitor<RemoteInputStreamServer> monitor)
|
|
RemoteIteratorServer(InputStream localIStream,
boolean useCompression,
RemoteStreamMonitor<RemoteInputStreamServer> monitor,
int chunkSize)
|
|
| Method Summary | |
|---|---|
void |
abort()
Aborts the current transfer without closing this RemoteIteratorServer. |
void |
close()
Forces this iterator server to close (if not already closed), will break any outstanding client interactions. |
protected void |
closeImpl(boolean readSuccess)
Cleans up any local resources after the underlying stream server is closed. |
boolean |
isClosed()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final InputStream _localIStream
| Constructor Detail |
|---|
public RemoteIteratorServer(InputStream localIStream)
throws IOException
IOException
public RemoteIteratorServer(InputStream localIStream,
boolean useCompression)
throws IOException
IOException
public RemoteIteratorServer(InputStream localIStream,
boolean useCompression,
RemoteStreamMonitor<RemoteInputStreamServer> monitor)
throws IOException
IOException
public RemoteIteratorServer(InputStream localIStream,
boolean useCompression,
RemoteStreamMonitor<RemoteInputStreamServer> monitor,
int chunkSize)
throws IOException
IOException| Method Detail |
|---|
public final boolean isClosed()
true iff this iterator server has been closed (one
way or another), false otherwise.public final void close()
unreferenced method if the server object must live beyond
the creation method call).
close in interface Closeable
public void abort()
throws IOException
IOException
protected void closeImpl(boolean readSuccess)
throws IOException
readSuccess - true iff all data was successfully
transferred, false otherwise
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||