public class HadoopIgfsOutputStream extends OutputStream implements HadoopIgfsStreamEventListener
| Constructor and Description |
|---|
HadoopIgfsOutputStream(HadoopIgfsStreamDelegate delegate,
org.apache.commons.logging.Log log,
IgfsLogger 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 HadoopIgfsOutputStream(HadoopIgfsStreamDelegate delegate, org.apache.commons.logging.Log log, IgfsLogger 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 IgniteCheckedException
onClose in interface HadoopIgfsStreamEventListenerIgniteCheckedException - If failed.public void onError(String errMsg)
onError in interface HadoopIgfsStreamEventListenererrMsg - Error message.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019