public class GridGgfsHadoopOutputStream extends OutputStream implements GridGgfsHadoopStreamEventListener
| Constructor and Description |
|---|
GridGgfsHadoopOutputStream(GridGgfsHadoopStreamDelegate delegate,
org.apache.commons.logging.Log log,
GridGgfsHadoopLogger clientLog,
long logStreamId)
Creates light output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
onClose()
Callback invoked when the stream is being closed.
|
void |
onError(String errMsg)
Callback invoked when remote error occurs.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic GridGgfsHadoopOutputStream(GridGgfsHadoopStreamDelegate delegate, org.apache.commons.logging.Log log, GridGgfsHadoopLogger clientLog, long logStreamId)
delegate - Server stream delegate.log - Logger to use.clientLog - Client logger.public void write(@NotNull
byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void onClose()
throws org.gridgain.grid.GridException
onClose in interface GridGgfsHadoopStreamEventListenerorg.gridgain.grid.GridException - If failed.public void onError(String errMsg)
onError in interface GridGgfsHadoopStreamEventListenererrMsg - Error message.Copyright © 2014. All rights reserved.