static class MetricsUserSourceImpl.ClientMetricsImpl extends Object implements MetricsUserSource.ClientMetrics
Modifier and Type | Field and Description |
---|---|
(package private) LongAdder |
filteredRequestsCount |
private String |
hostName |
(package private) LongAdder |
readRequestsCount |
(package private) LongAdder |
writeRequestsCount |
Constructor and Description |
---|
ClientMetricsImpl(String hostName) |
Modifier and Type | Method and Description |
---|---|
long |
getFilteredReadRequests() |
String |
getHostName() |
long |
getReadRequestsCount() |
long |
getWriteRequestsCount() |
void |
incrementFilteredReadRequests() |
void |
incrementReadRequest() |
void |
incrementWriteRequest() |
final LongAdder readRequestsCount
final LongAdder writeRequestsCount
final LongAdder filteredRequestsCount
public ClientMetricsImpl(String hostName)
public void incrementReadRequest()
incrementReadRequest
in interface MetricsUserSource.ClientMetrics
public void incrementWriteRequest()
incrementWriteRequest
in interface MetricsUserSource.ClientMetrics
public String getHostName()
getHostName
in interface MetricsUserSource.ClientMetrics
public long getReadRequestsCount()
getReadRequestsCount
in interface MetricsUserSource.ClientMetrics
public long getWriteRequestsCount()
getWriteRequestsCount
in interface MetricsUserSource.ClientMetrics
public void incrementFilteredReadRequests()
incrementFilteredReadRequests
in interface MetricsUserSource.ClientMetrics
public long getFilteredReadRequests()
getFilteredReadRequests
in interface MetricsUserSource.ClientMetrics
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.