|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.healthmarketscience.rmiio.RemoteOutputStreamMonitor
public class RemoteOutputStreamMonitor
Implementation of RemoteStreamMonitor for RemoteOutputStreamServers which does nothing.
| Constructor Summary | |
|---|---|
RemoteOutputStreamMonitor()
|
|
| Method Summary | |
|---|---|
void |
bytesMoved(RemoteOutputStreamServer stream,
int numBytes,
boolean isReattempt)
Called when some bytes are transferred over the wire by the given stream. |
void |
bytesSkipped(RemoteOutputStreamServer stream,
long numBytes,
boolean isReattempt)
Called when some bytes are skipped for transfer over the wire by the given stream. |
void |
closed(RemoteOutputStreamServer stream,
boolean clean)
Called when the given stream is closed. |
void |
failure(RemoteOutputStreamServer stream,
Exception e)
Called when an IOException is thrown by one of the stream methods. |
void |
localBytesMoved(RemoteOutputStreamServer stream,
int numBytes)
Called when some bytes are moved to/from the local stream. |
void |
localBytesSkipped(RemoteOutputStreamServer stream,
long numBytes)
Called when some bytes from the local stream are skipped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteOutputStreamMonitor()
| Method Detail |
|---|
public void failure(RemoteOutputStreamServer stream,
Exception e)
RemoteStreamMonitor
failure in interface RemoteStreamMonitor<RemoteOutputStreamServer>stream - the stream on which the exception was throwne - the thrown exception
public void bytesMoved(RemoteOutputStreamServer stream,
int numBytes,
boolean isReattempt)
RemoteStreamMonitor
bytesMoved in interface RemoteStreamMonitor<RemoteOutputStreamServer>stream - the stream for which the bytes are being transferrednumBytes - number of bytes transferredisReattempt - indicates if this is the first attempt
(false) or a subsequent attempt
(true)
public void bytesSkipped(RemoteOutputStreamServer stream,
long numBytes,
boolean isReattempt)
RemoteStreamMonitor
bytesSkipped in interface RemoteStreamMonitor<RemoteOutputStreamServer>stream - the stream for which the bytes are being skippednumBytes - number of actual bytes skippedisReattempt - indicates if this is the first attempt
(false) or a subsequent attempt
(true)
public void localBytesMoved(RemoteOutputStreamServer stream,
int numBytes)
RemoteStreamMonitor
localBytesMoved in interface RemoteStreamMonitor<RemoteOutputStreamServer>stream - the remote stream for which the bytes are being movednumBytes - number of bytes moved
public void localBytesSkipped(RemoteOutputStreamServer stream,
long numBytes)
RemoteStreamMonitor
localBytesSkipped in interface RemoteStreamMonitor<RemoteOutputStreamServer>stream - the stream for which the bytes are being skippednumBytes - number of actual bytes skipped
public void closed(RemoteOutputStreamServer stream,
boolean clean)
RemoteStreamMonitor
closed in interface RemoteStreamMonitor<RemoteOutputStreamServer>stream - the stream for which the bytes are being skippedclean - true iff all data was sent successfully over
the wire and the stream was closed, false
otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||