Class ControlRpcMetrics

java.lang.Object
org.apache.drill.exec.rpc.AbstractRpcMetrics
org.apache.drill.exec.rpc.control.ControlRpcMetrics
All Implemented Interfaces:
RpcMetrics

public class ControlRpcMetrics extends AbstractRpcMetrics
Holds metrics related to bit control rpc layer
  • Method Details

    • getInstance

      public static RpcMetrics getInstance()
    • initialize

      public void initialize(boolean useEncryptedCounter, BufferAllocator allocator)
      Should only be called when first access to getInstance is made. In this case inside ControllerImpl. ControlConnection using the singleton instance should not call initialize.
      Specified by:
      initialize in class AbstractRpcMetrics
      Parameters:
      useEncryptedCounter -
      allocator -
    • addConnectionCount

      public void addConnectionCount()
    • decConnectionCount

      public void decConnectionCount()
    • getEncryptedConnectionCount

      public long getEncryptedConnectionCount()
    • getUnEncryptedConnectionCount

      public long getUnEncryptedConnectionCount()