public class UserRpcMetrics 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.
|
registerAllocatorMetrics
public static RpcMetrics getInstance()
public void initialize(boolean useEncryptedCounter, BufferAllocator allocator)
UserServer
.
BitToUserConnection using the singleton instance should not call initialize.initialize
in class AbstractRpcMetrics
useEncryptedCounter
- allocator
- public void addConnectionCount()
public void decConnectionCount()
public long getEncryptedConnectionCount()
public long getUnEncryptedConnectionCount()
Copyright © 1970 The Apache Software Foundation. All rights reserved.