Package org.apache.hadoop.hbase.ipc
Class AbstractTestIPC.FailingSimpleRpcServer.FailingConnection
java.lang.Object
org.apache.hadoop.hbase.ipc.AbstractTestIPC.FailingSimpleRpcServer.FailingConnection
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- AbstractTestIPC.FailingSimpleRpcServer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumorg.apache.hadoop.hbase.ipc.ServerRpcConnection.PreambleResponse -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InetAddressprotected booleanprotected org.apache.hadoop.hbase.ipc.RpcServer.CallCleanup(package private) final SocketChannelDeprecated.protected X509Certificate[]protected org.apache.hadoop.hbase.codec.Codecprotected org.apache.hadoop.io.compress.CompressionCodecprotected org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeaderprotected booleanprotected String(package private) longDeprecated.protected org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProviderprotected int(package private) final org.apache.hadoop.hbase.ipc.SimpleRpcServerResponderDeprecated.(package private) final ConcurrentLinkedDeque<org.apache.hadoop.hbase.ipc.RpcResponse>Deprecated.(package private) final LockDeprecated.protected booleanprotected final org.apache.hadoop.hbase.ipc.RpcServerprotected org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvidersprotected org.apache.hadoop.hbase.security.HBaseSaslRpcServerprotected org.apache.hbase.thirdparty.com.google.protobuf.BlockingServiceprotected booleanprotected org.apache.hadoop.security.UserGroupInformationprotected org.apache.hadoop.hbase.security.Userprotected boolean(package private) booleanDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFailingConnection(AbstractTestIPC.FailingSimpleRpcServer rpcServer, SocketChannel channel, long lastContact) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidprotected intchannelDataRead(ReadableByteChannel arg0, org.apache.hadoop.hbase.nio.ByteBuff arg1) Deprecated.voidclose()Deprecated.org.apache.hadoop.hbase.ipc.SimpleServerCallcreateCall(int arg0, org.apache.hbase.thirdparty.com.google.protobuf.BlockingService arg1, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor arg2, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader arg3, org.apache.hbase.thirdparty.com.google.protobuf.Message arg4, org.apache.hadoop.hbase.CellScanner arg5, long arg6, InetAddress arg7, int arg8, org.apache.hadoop.hbase.ipc.RpcServer.CallCleanup arg9) Deprecated.protected voidDeprecated.protected final voidprotected final voiddoRawSaslReply(org.apache.hadoop.hbase.security.SaslStatus arg0, org.apache.hadoop.io.Writable arg1, String arg2, String arg3) protected voiddoRespond(org.apache.hadoop.hbase.ipc.RpcResponse arg0) Deprecated.(package private) voidprotected final org.apache.hadoop.hbase.ipc.RpcResponsegetErrorResponse(String arg0, Exception arg1) longDeprecated.(package private) org.apache.hadoop.hbase.security.HBaseSaslRpcServerintorg.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.VersionInfoprotected voidDeprecated.booleanDeprecated.(package private) booleanisIdle()Deprecated.(package private) booleanvoidprocessOneRpc(org.apache.hadoop.hbase.nio.ByteBuff arg0) protected final org.apache.hadoop.hbase.ipc.ServerRpcConnection.PreambleResponseprocessPreamble(ByteBuffer arg0) voidprocessRequest(org.apache.hadoop.hbase.nio.ByteBuff buf) intDeprecated.voidsetLastContact(long arg0) Deprecated.toString()
-
Field Details
-
channel
Deprecated. -
responder
final org.apache.hadoop.hbase.ipc.SimpleRpcServerResponder responderDeprecated. -
useWrap
boolean useWrapDeprecated. -
responseQueue
Deprecated. -
responseWriteLock
Deprecated. -
lastSentTime
long lastSentTimeDeprecated. -
rpcServer
protected final org.apache.hadoop.hbase.ipc.RpcServer rpcServer -
connectionHeaderRead
protected boolean connectionHeaderRead -
callCleanup
protected org.apache.hadoop.hbase.ipc.RpcServer.CallCleanup callCleanup -
hostAddress
-
remotePort
protected int remotePort -
addr
-
connectionHeader
protected org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader connectionHeader -
connectionAttributes
-
codec
protected org.apache.hadoop.hbase.codec.Codec codec -
compressionCodec
protected org.apache.hadoop.io.compress.CompressionCodec compressionCodec -
service
protected org.apache.hbase.thirdparty.com.google.protobuf.BlockingService service -
provider
protected org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider provider -
skipInitialSaslHandshake
protected boolean skipInitialSaslHandshake -
useSasl
protected boolean useSasl -
saslServer
protected org.apache.hadoop.hbase.security.HBaseSaslRpcServer saslServer -
authenticatedWithFallback
protected boolean authenticatedWithFallback -
retryImmediatelySupported
protected boolean retryImmediatelySupported -
user
protected org.apache.hadoop.hbase.security.User user -
ugi
protected org.apache.hadoop.security.UserGroupInformation ugi -
saslProviders
protected org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProviders saslProviders -
clientCertificateChain
-
-
Constructor Details
-
FailingConnection
private FailingConnection(AbstractTestIPC.FailingSimpleRpcServer rpcServer, SocketChannel channel, long lastContact)
-
-
Method Details
-
processRequest
public void processRequest(org.apache.hadoop.hbase.nio.ByteBuff buf) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
setLastContact
public void setLastContact(long arg0) Deprecated. -
getLastContact
public long getLastContact()Deprecated. -
isIdle
boolean isIdle()Deprecated. -
decRpcCount
protected void decRpcCount()Deprecated. -
incRpcCount
protected void incRpcCount()Deprecated. -
readAndProcess
Deprecated.- Throws:
IOExceptionInterruptedException
-
channelDataRead
protected int channelDataRead(ReadableByteChannel arg0, org.apache.hadoop.hbase.nio.ByteBuff arg1) throws IOException Deprecated.- Throws:
IOException
-
close
public void close()Deprecated. -
isConnectionOpen
public boolean isConnectionOpen()Deprecated. -
createCall
public org.apache.hadoop.hbase.ipc.SimpleServerCall createCall(int arg0, org.apache.hbase.thirdparty.com.google.protobuf.BlockingService arg1, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor arg2, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader arg3, org.apache.hbase.thirdparty.com.google.protobuf.Message arg4, org.apache.hadoop.hbase.CellScanner arg5, long arg6, InetAddress arg7, int arg8, org.apache.hadoop.hbase.ipc.RpcServer.CallCleanup arg9) Deprecated. -
doRespond
Deprecated.- Throws:
IOException
-
toString
-
getHostAddress
-
getHostInetAddress
-
getRemotePort
public int getRemotePort() -
getVersionInfo
public org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.VersionInfo getVersionInfo() -
disposeSasl
protected final void disposeSasl() -
doRawSaslReply
protected final void doRawSaslReply(org.apache.hadoop.hbase.security.SaslStatus arg0, org.apache.hadoop.io.Writable arg1, String arg2, String arg3) throws IOException - Throws:
IOException
-
getOrCreateSaslServer
- Throws:
IOException
-
finishSaslNegotiation
- Throws:
IOException
-
processOneRpc
public void processOneRpc(org.apache.hadoop.hbase.nio.ByteBuff arg0) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getErrorResponse
protected final org.apache.hadoop.hbase.ipc.RpcResponse getErrorResponse(String arg0, Exception arg1) throws IOException - Throws:
IOException
-
callCleanupIfNeeded
protected final void callCleanupIfNeeded() -
processPreamble
protected final org.apache.hadoop.hbase.ipc.ServerRpcConnection.PreambleResponse processPreamble(ByteBuffer arg0) throws IOException - Throws:
IOException
-
isSimpleAuthentication
boolean isSimpleAuthentication()
-