|
||||||||||
| 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
| Constructor Summary | |
|---|---|
ClientSocketStats(ClientSocketStats parent,
SocketDestination destination,
QueuedKeyedResourcePool<SocketDestination,ClientRequestExecutor> pool,
int jmxId)
To construct a per node stats object |
|
ClientSocketStats(int jmxId)
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,
int jmxId)
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 informationpublic ClientSocketStats(int jmxId)
pool - The socket pool that will give out connection information| Method Detail |
|---|
public 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 socket
public 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
socket
public 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 connectionCreate(SocketDestination dest)
public void connectionDestroy(SocketDestination dest)
public int getConnectionsCreated()
public int getConnectionsDestroyed()
public int getCheckoutCount()
public Histogram getCheckoutWaitUsHistogram()
public long getAvgCheckoutWaitUs()
public Histogram getCheckoutQueueLengthHistogram()
public int resourceRequestCount()
public Histogram getResourceRequestWaitUsHistogram()
public long getAvgResourceRequestWaitUs()
public Histogram getResourceRequestQueueLengthHistogram()
public int getConnectionsActive(SocketDestination destination)
public int getConnectionsInPool(SocketDestination destination)
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 | |||||||||