public class StandardMetricsCollector extends AbstractMetricsCollector
MetricsCollector
.
Note transactions are not supported (see MetricsCollector
.
Metrics provides out-of-the-box support for report backends like JMX,
Graphite, Ganglia, or plain HTTP. See Metrics documentation for
more details.MetricsCollector
Constructor and Description |
---|
StandardMetricsCollector() |
StandardMetricsCollector(com.codahale.metrics.MetricRegistry metricRegistry) |
StandardMetricsCollector(com.codahale.metrics.MetricRegistry registry,
String metricsPrefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
decrementChannelCount(Channel channel)
Decrements channel count.
|
protected void |
decrementConnectionCount(Connection connection)
Decrements connection count.
|
com.codahale.metrics.Meter |
getAcknowledgedMessages() |
com.codahale.metrics.Counter |
getChannels() |
com.codahale.metrics.Counter |
getConnections() |
com.codahale.metrics.Meter |
getConsumedMessages() |
com.codahale.metrics.Meter |
getFailedToPublishMessages() |
com.codahale.metrics.MetricRegistry |
getMetricRegistry() |
com.codahale.metrics.Meter |
getPublishAcknowledgedMessages() |
com.codahale.metrics.Meter |
getPublishedMessages() |
com.codahale.metrics.Meter |
getPublishNotAcknowledgedMessages() |
com.codahale.metrics.Meter |
getPublishUnroutedMessages() |
com.codahale.metrics.Meter |
getRejectedMessages() |
protected void |
incrementChannelCount(Channel channel)
Increments channel count.
|
protected void |
incrementConnectionCount(Connection connection)
Increments connection count.
|
protected void |
markAcknowledgedMessage()
Marks the event of an acknowledged message.
|
protected void |
markConsumedMessage()
Marks the event of a consumed message.
|
protected void |
markMessagePublishAcknowledged()
Marks the event of a message publishing acknowledgement.
|
protected void |
markMessagePublishFailed()
Marks the event of a message publishing failure.
|
protected void |
markMessagePublishNotAcknowledged()
Marks the event of a message publishing not being acknowledged.
|
protected void |
markPublishedMessage()
Marks the event of a published message.
|
protected void |
markPublishedMessageUnrouted()
Marks the event of a published message not being routed.
|
protected void |
markRejectedMessage()
Marks the event of a rejected message.
|
basicAck, basicCancel, basicConsume, basicNack, basicPublish, basicPublishAck, basicPublishFailure, basicPublishNack, basicPublishUnrouted, basicReject, cleanStaleState, closeChannel, closeConnection, consumedMessage, consumedMessage, newChannel, newConnection
public StandardMetricsCollector(com.codahale.metrics.MetricRegistry registry, String metricsPrefix)
public StandardMetricsCollector()
public StandardMetricsCollector(com.codahale.metrics.MetricRegistry metricRegistry)
protected void incrementConnectionCount(Connection connection)
AbstractMetricsCollector
incrementConnectionCount
in class AbstractMetricsCollector
connection
- the connection that has been created (can be null)protected void decrementConnectionCount(Connection connection)
AbstractMetricsCollector
decrementConnectionCount
in class AbstractMetricsCollector
connection
- the connection that has been closed (can be null)protected void incrementChannelCount(Channel channel)
AbstractMetricsCollector
incrementChannelCount
in class AbstractMetricsCollector
channel
- the channel that has been created (can be null)protected void decrementChannelCount(Channel channel)
AbstractMetricsCollector
decrementChannelCount
in class AbstractMetricsCollector
protected void markPublishedMessage()
AbstractMetricsCollector
markPublishedMessage
in class AbstractMetricsCollector
protected void markMessagePublishFailed()
AbstractMetricsCollector
markMessagePublishFailed
in class AbstractMetricsCollector
protected void markConsumedMessage()
AbstractMetricsCollector
markConsumedMessage
in class AbstractMetricsCollector
protected void markAcknowledgedMessage()
AbstractMetricsCollector
markAcknowledgedMessage
in class AbstractMetricsCollector
protected void markRejectedMessage()
AbstractMetricsCollector
markRejectedMessage
in class AbstractMetricsCollector
protected void markMessagePublishAcknowledged()
AbstractMetricsCollector
markMessagePublishAcknowledged
in class AbstractMetricsCollector
protected void markMessagePublishNotAcknowledged()
AbstractMetricsCollector
markMessagePublishNotAcknowledged
in class AbstractMetricsCollector
protected void markPublishedMessageUnrouted()
AbstractMetricsCollector
markPublishedMessageUnrouted
in class AbstractMetricsCollector
public com.codahale.metrics.MetricRegistry getMetricRegistry()
public com.codahale.metrics.Counter getConnections()
public com.codahale.metrics.Counter getChannels()
public com.codahale.metrics.Meter getPublishedMessages()
public com.codahale.metrics.Meter getConsumedMessages()
public com.codahale.metrics.Meter getAcknowledgedMessages()
public com.codahale.metrics.Meter getRejectedMessages()
public com.codahale.metrics.Meter getFailedToPublishMessages()
public com.codahale.metrics.Meter getPublishAcknowledgedMessages()
public com.codahale.metrics.Meter getPublishNotAcknowledgedMessages()
public com.codahale.metrics.Meter getPublishUnroutedMessages()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.