| 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,
     ByteBuffer 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,
     ByteBuffer 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, ByteBuffer 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, ByteBuffer 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–2019 The Apache Software Foundation. All rights reserved.