Class ControlRpcMetrics
java.lang.Object
org.apache.drill.exec.rpc.AbstractRpcMetrics
org.apache.drill.exec.rpc.control.ControlRpcMetrics
- All Implemented Interfaces:
RpcMetrics
Holds metrics related to bit control rpc layer
-
Field Summary
Fields inherited from class org.apache.drill.exec.rpc.AbstractRpcMetrics
ALLOCATOR_METRICS_PREFIX, CONNECTION_COUNTER_PREFIX, useEncryptedCounter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
long
static RpcMetrics
long
void
initialize
(boolean useEncryptedCounter, BufferAllocator allocator) Should only be called when first access to getInstance is made.Methods inherited from class org.apache.drill.exec.rpc.AbstractRpcMetrics
registerAllocatorMetrics
-
Method Details
-
getInstance
-
initialize
Should only be called when first access to getInstance is made. In this case insideControllerImpl
.ControlConnection
using the singleton instance should not call initialize.- Specified by:
initialize
in classAbstractRpcMetrics
- Parameters:
useEncryptedCounter
-allocator
-
-
addConnectionCount
public void addConnectionCount() -
decConnectionCount
public void decConnectionCount() -
getEncryptedConnectionCount
public long getEncryptedConnectionCount() -
getUnEncryptedConnectionCount
public long getUnEncryptedConnectionCount()
-