public interface GridGgfsHadoopIo
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(GridGgfsHadoopIpcIoListener lsnr)
Adds event listener that will be invoked when connection with server is lost or remote error has occurred.
|
void |
removeEventListener(GridGgfsHadoopIpcIoListener lsnr)
Removes event listener that will be invoked when connection with server is lost or remote error has occurred.
|
org.gridgain.grid.util.lang.GridPlainFuture<GridGgfsMessage> |
send(GridGgfsMessage msg)
Sends given GGFS client message and asynchronously awaits for response.
|
<T> org.gridgain.grid.util.lang.GridPlainFuture<T> |
send(GridGgfsMessage msg,
byte[] outBuf,
int outOff,
int outLen)
Sends given GGFS client message and asynchronously awaits for response.
|
void |
sendPlain(GridGgfsMessage msg)
Sends given message and does not wait for response.
|
org.gridgain.grid.util.lang.GridPlainFuture<GridGgfsMessage> send(GridGgfsMessage msg) throws org.gridgain.grid.GridException
msg - Message to send.org.gridgain.grid.GridException - If a message cannot be sent (connection is broken or client was closed).<T> org.gridgain.grid.util.lang.GridPlainFuture<T> send(GridGgfsMessage msg, @Nullable byte[] outBuf, int outOff, int outLen) throws org.gridgain.grid.GridException
msg - Message to send.outBuf - Output buffer. If null, the output buffer is not used.outOff - Output buffer offset.outLen - Output buffer length.org.gridgain.grid.GridException - If a message cannot be sent (connection is broken or client was closed).void sendPlain(GridGgfsMessage msg) throws org.gridgain.grid.GridException
msg - Message to send.org.gridgain.grid.GridException - If send failed.void addEventListener(GridGgfsHadoopIpcIoListener lsnr)
lsnr - Event listener.void removeEventListener(GridGgfsHadoopIpcIoListener lsnr)
lsnr - Event listener.Copyright © 2014. All rights reserved.