org.apache.zookeeper.server
Class ServerStats

java.lang.Object
  extended by org.apache.zookeeper.server.ServerStats

public class ServerStats
extends Object

Basic Server Statistics


Nested Class Summary
static interface ServerStats.Provider
           
 
Constructor Summary
ServerStats(ServerStats.Provider provider)
           
 
Method Summary
 long getAvgLatency()
           
 long getLastProcessedZxid()
           
 long getMaxLatency()
           
 long getMinLatency()
           
 long getOutstandingRequests()
           
 long getPacketsReceived()
           
 long getPacketsSent()
           
 String getServerState()
           
 void incrementPacketsReceived()
           
 void incrementPacketsSent()
           
 void reset()
           
 void resetLatency()
           
 void resetMaxLatency()
           
 void resetRequestCounters()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerStats

public ServerStats(ServerStats.Provider provider)
Method Detail

getMinLatency

public long getMinLatency()

getAvgLatency

public long getAvgLatency()

getMaxLatency

public long getMaxLatency()

getOutstandingRequests

public long getOutstandingRequests()

getLastProcessedZxid

public long getLastProcessedZxid()

getPacketsReceived

public long getPacketsReceived()

getPacketsSent

public long getPacketsSent()

getServerState

public String getServerState()

toString

public String toString()
Overrides:
toString in class Object

resetLatency

public void resetLatency()

resetMaxLatency

public void resetMaxLatency()

incrementPacketsReceived

public void incrementPacketsReceived()

incrementPacketsSent

public void incrementPacketsSent()

resetRequestCounters

public void resetRequestCounters()

reset

public void reset()


Copyright © 2011 The Apache Software Foundation