public class ControlRpcMetrics extends AbstractRpcMetrics
ALLOCATOR_METRICS_PREFIX, CONNECTION_COUNTER_PREFIX, useEncryptedCounter| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionCount() |
void |
decConnectionCount() |
long |
getEncryptedConnectionCount() |
static RpcMetrics |
getInstance() |
long |
getUnEncryptedConnectionCount() |
void |
initialize(boolean useEncryptedCounter,
BufferAllocator allocator)
Should only be called when first access to getInstance is made.
|
registerAllocatorMetricspublic static RpcMetrics getInstance()
public void initialize(boolean useEncryptedCounter,
BufferAllocator allocator)
ControllerImpl.
ControlConnection using the singleton instance should not call initialize.initialize in class AbstractRpcMetricsuseEncryptedCounter - allocator - public void addConnectionCount()
public void decConnectionCount()
public long getEncryptedConnectionCount()
public long getUnEncryptedConnectionCount()
Copyright © 2022 The Apache Software Foundation. All rights reserved.