public class ServerStats extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServerStats.Provider |
Constructor and Description |
---|
ServerStats(ServerStats.Provider provider) |
Modifier and Type | Method and Description |
---|---|
long |
getAvgLatency() |
BufferStats |
getClientResponseStats() |
long |
getDataDirSize() |
long |
getFsyncThresholdExceedCount() |
long |
getLastProcessedZxid() |
long |
getLogDirSize() |
long |
getMaxLatency() |
long |
getMinLatency() |
int |
getNumAliveClientConnections()
The number of client connections alive to this server
|
long |
getOutstandingRequests() |
long |
getPacketsReceived() |
long |
getPacketsSent() |
String |
getServerState() |
void |
incrementFsyncThresholdExceedCount() |
void |
incrementPacketsReceived() |
void |
incrementPacketsSent() |
boolean |
isProviderNull() |
void |
reset() |
void |
resetFsyncThresholdExceedCount() |
void |
resetLatency() |
void |
resetMaxLatency() |
void |
resetRequestCounters() |
String |
toString() |
void |
updateClientResponseSize(int size) |
public ServerStats(ServerStats.Provider provider)
public long getMinLatency()
public long getAvgLatency()
public long getMaxLatency()
public long getOutstandingRequests()
public long getLastProcessedZxid()
public long getDataDirSize()
public long getLogDirSize()
public long getPacketsReceived()
public long getPacketsSent()
public String getServerState()
public int getNumAliveClientConnections()
public boolean isProviderNull()
public void resetLatency()
public void resetMaxLatency()
public void incrementPacketsReceived()
public void incrementPacketsSent()
public void resetRequestCounters()
public long getFsyncThresholdExceedCount()
public void incrementFsyncThresholdExceedCount()
public void resetFsyncThresholdExceedCount()
public void reset()
public void updateClientResponseSize(int size)
public BufferStats getClientResponseStats()
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.