Package org.apache.drill.exec.rpc.user
Class UserRpcMetrics
java.lang.Object
org.apache.drill.exec.rpc.AbstractRpcMetrics
org.apache.drill.exec.rpc.user.UserRpcMetrics
- All Implemented Interfaces:
RpcMetrics
Holds metrics related to bit user 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 insideUserServer
. BitToUserConnection 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()
-