| Modifier and Type | Field and Description | 
|---|---|
| private static org.apache.hbase.thirdparty.io.netty.util.concurrent.FastThreadLocal<org.apache.commons.lang3.mutable.MutableInt> | DEPTH | 
| (package private) static int | MAX_DEPTH | 
| 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) | 
| (package private) static void | execute(org.apache.hbase.thirdparty.io.netty.channel.EventLoop eventLoop,
       Runnable action) | 
| 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) | 
private static final org.apache.hbase.thirdparty.io.netty.util.concurrent.FastThreadLocal<org.apache.commons.lang3.mutable.MutableInt> DEPTH
static final int MAX_DEPTH
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
IOExceptionpublic 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 wrappedestatic 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–2021 The Apache Software Foundation. All rights reserved.