public class ConnectionMetrics
extends java.lang.Object
OutboundTcpConnectionPool
.Modifier and Type | Field and Description |
---|---|
java.lang.String |
address |
com.yammer.metrics.core.Gauge<java.lang.Long> |
commandCompletedTasks
Completed tasks for Command(Mutations, Read etc) TCP Connections
|
com.yammer.metrics.core.Gauge<java.lang.Long> |
commandDroppedTasks
Dropped tasks for Command(Mutations, Read etc) TCP Connections
|
com.yammer.metrics.core.Gauge<java.lang.Integer> |
commandPendingTasks
Pending tasks for Command(Mutations, Read etc) TCP Connections
|
com.yammer.metrics.core.Gauge<java.lang.Long> |
responseCompletedTasks
Completed tasks for Response(GOSSIP & RESPONSE) TCP Connections
|
com.yammer.metrics.core.Gauge<java.lang.Integer> |
responsePendingTasks
Pending tasks for Response(GOSSIP & RESPONSE) TCP Connections
|
com.yammer.metrics.core.Meter |
timeouts
Number of timeouts for specific IP
|
static com.yammer.metrics.core.Meter |
totalTimeouts
Total number of timeouts happened on this node
|
static java.lang.String |
TYPE_NAME |
Constructor and Description |
---|
ConnectionMetrics(java.net.InetAddress ip,
OutboundTcpConnectionPool connectionPool)
Create metrics for given connection pool.
|
Modifier and Type | Method and Description |
---|---|
long |
getRecentTimeout()
Deprecated.
|
static long |
getRecentTotalTimeout()
Deprecated.
|
void |
release() |
public static final java.lang.String TYPE_NAME
public static final com.yammer.metrics.core.Meter totalTimeouts
public final java.lang.String address
public final com.yammer.metrics.core.Gauge<java.lang.Integer> commandPendingTasks
public final com.yammer.metrics.core.Gauge<java.lang.Long> commandCompletedTasks
public final com.yammer.metrics.core.Gauge<java.lang.Long> commandDroppedTasks
public final com.yammer.metrics.core.Gauge<java.lang.Integer> responsePendingTasks
public final com.yammer.metrics.core.Gauge<java.lang.Long> responseCompletedTasks
public final com.yammer.metrics.core.Meter timeouts
public ConnectionMetrics(java.net.InetAddress ip, OutboundTcpConnectionPool connectionPool)
ip
- IP address to use for metrics labelconnectionPool
- Connection poolCopyright © 2015 The Apache Software Foundation