|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.store.stats.ClientSocketStats
public class ClientSocketStats
Some convenient statistics to track about the client requests
Nested Class Summary | |
---|---|
static class |
ClientSocketStats.Tracked
|
Constructor Summary | |
---|---|
ClientSocketStats(ClientSocketStats parent,
SocketDestination destination,
QueuedKeyedResourcePool<SocketDestination,ClientRequestExecutor> pool,
java.lang.String identifierString)
To construct a per node stats object |
|
ClientSocketStats(java.lang.String identifierString)
Construction of a new aggregate stats object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientSocketStats(ClientSocketStats parent, SocketDestination destination, QueuedKeyedResourcePool<SocketDestination,ClientRequestExecutor> pool, java.lang.String identifierString)
parent
- An optional parent stats object that will maintain
aggregate data across many socketsdestination
- The destination object that defines the nodepool
- The socket pool that will give out connection informationidentifierString
- The string of identifierpublic ClientSocketStats(java.lang.String identifierString)
identifierString
- The string of identifierMethod Detail |
---|
public void recordSyncOpTimeNs(SocketDestination dest, long opTimeNs)
dest
- Destination of the socket to connect to. Will actually record
if null. Otherwise will call this on self and corresponding child
with this param null.opTimeUs
- The number of us for the op to finishpublic void recordAsyncOpTimeNs(SocketDestination dest, long opTimeNs)
dest
- Destination of the socket to connect to. Will actually record
if null. Otherwise will call this on self and corresponding child
with this param null.opTimeUs
- The number of us for the op to finishpublic void recordConnectionEstablishmentTimeUs(SocketDestination dest, long connEstTimeUs)
dest
- Destination of the socket to connect to. Will actually record
if null. Otherwise will call this on self and corresponding child
with this param null.connEstTimeUs
- The number of us to wait before establishing a
connectionpublic void recordCheckoutTimeUs(SocketDestination dest, long checkoutTimeUs)
dest
- Destination of the socket to checkout. Will actually record
if null. Otherwise will call this on self and corresponding child
with this param null.checkoutTimeUs
- The number of us to wait before getting a socketpublic void recordCheckoutQueueLength(SocketDestination dest, int queueLength)
dest
- Destination of the socket to checkout. Will actually record
if null. Otherwise will call this on self and corresponding child
with this param null.queueLength
- The number of entries in the "synchronous" checkout
queue.public void recordResourceRequestTimeUs(SocketDestination dest, long resourceRequestTimeUs)
dest
- Destination of the socket for which the resource was
requested. Will actually record if null. Otherwise will call this
on self and corresponding child with this param null.resourceRequestTimeUs
- The number of us to wait before getting a
socketpublic void recordResourceRequestQueueLength(SocketDestination dest, int queueLength)
dest
- Destination of the socket for which resource request is
enqueued. Will actually record if null. Otherwise will call this
on self and corresponding child with this param null.queueLength
- The number of entries in the "asynchronous" resource
request queue.public void incrementCount(SocketDestination dest, ClientSocketStats.Tracked metric)
public int getCount(ClientSocketStats.Tracked metric)
public int getCheckoutCount()
public double getAvgCheckoutWaitMs()
public double getCheckoutTimeMsQ10th()
public double getCheckoutTimeMsQ50th()
public double getCheckoutTimeMsQ99th()
public Histogram getCheckoutQueueLengthHistogram()
public int resourceRequestCount()
public double getAvgResourceRequestTimeMs()
public double getResourceRequestTimeMsQ10th()
public double getResourceRequestTimeMsQ50th()
public double getResourceRequestTimeMsQ99th()
public Histogram getResourceRequestQueueLengthHistogram()
public int getConnectionsActive(SocketDestination destination)
public int getConnectionsInPool(SocketDestination destination)
public double getAvgConnectionEstablishmentMs()
public double getConnectionEstablishmentQ99LatencyMs()
public double getSyncOpTimeMsAvg()
public double getSyncOpTimeMsQ95th()
public double getSyncOpTimeMsQ99th()
public double getAsyncOpTimeMsAvg()
public double getAsyncOpTimeMsQ95th()
public double getAsyncOpTimeMsQ99th()
public void setMonitoringInterval(int count)
public int getMonitoringInterval()
protected void checkMonitoringInterval()
protected void resetForInterval()
public void setPool(QueuedKeyedResourcePool<SocketDestination,ClientRequestExecutor> pool)
public java.util.concurrent.ConcurrentMap<SocketDestination,ClientSocketStats> getStatsMap()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |