Constructor and Description |
---|
IPCUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader |
buildRequestHeader(Call call,
org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.CellBlockMeta cellBlockMeta) |
(package private) static org.apache.hadoop.ipc.RemoteException |
createRemoteException(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ExceptionResponse e) |
static int |
getTotalSizeWhenWrittenDelimited(org.apache.hbase.thirdparty.com.google.protobuf.Message... messages) |
(package private) static boolean |
isFatalConnectionException(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ExceptionResponse e) |
(package private) static void |
setCancelled(Call call) |
(package private) static IOException |
toIOE(Throwable t) |
(package private) static IOException |
wrapException(InetSocketAddress addr,
Throwable error)
Takes an Exception and the address we were trying to connect to and return an IOException with
the input exception as the cause.
|
static int |
write(OutputStream dos,
org.apache.hbase.thirdparty.com.google.protobuf.Message header,
org.apache.hbase.thirdparty.com.google.protobuf.Message param,
org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf cellBlock)
Write out header, param, and cell block if there is one.
|
private static int |
write(OutputStream dos,
org.apache.hbase.thirdparty.com.google.protobuf.Message header,
org.apache.hbase.thirdparty.com.google.protobuf.Message param,
org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf cellBlock,
int totalSize) |
IPCUtil()
public static int write(OutputStream dos, org.apache.hbase.thirdparty.com.google.protobuf.Message header, org.apache.hbase.thirdparty.com.google.protobuf.Message param, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf cellBlock) throws IOException
dos
- Stream to write intoheader
- to writeparam
- to writecellBlock
- to writeIOException
- if write action failsprivate static int write(OutputStream dos, org.apache.hbase.thirdparty.com.google.protobuf.Message header, org.apache.hbase.thirdparty.com.google.protobuf.Message param, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf cellBlock, int totalSize) throws IOException
IOException
public static int getTotalSizeWhenWrittenDelimited(org.apache.hbase.thirdparty.com.google.protobuf.Message... messages)
static org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader buildRequestHeader(Call call, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.CellBlockMeta cellBlockMeta)
static org.apache.hadoop.ipc.RemoteException createRemoteException(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ExceptionResponse e)
e
- exception to be wrappede
static boolean isFatalConnectionException(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ExceptionResponse e)
static IOException toIOE(Throwable t)
static IOException wrapException(InetSocketAddress addr, Throwable error)
error
is not an IOException
, an IOException
will be
created.addr
- target addresserror
- the relevant exceptionClientExceptionsUtil.isConnectionException(Throwable)
static void setCancelled(Call call)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.