Class StandardMetricsCollector

    • Constructor Detail

      • StandardMetricsCollector

        public StandardMetricsCollector​(com.codahale.metrics.MetricRegistry registry,
                                        String metricsPrefix)
      • StandardMetricsCollector

        public StandardMetricsCollector()
      • StandardMetricsCollector

        public StandardMetricsCollector​(com.codahale.metrics.MetricRegistry metricRegistry)
    • Method Detail

      • incrementConnectionCount

        protected void incrementConnectionCount​(Connection connection)
        Description copied from class: AbstractMetricsCollector
        Increments connection count. The connection object is passed in as complementary information and without any guarantee of not being null.
        Specified by:
        incrementConnectionCount in class AbstractMetricsCollector
        Parameters:
        connection - the connection that has been created (can be null)
      • decrementConnectionCount

        protected void decrementConnectionCount​(Connection connection)
        Description copied from class: AbstractMetricsCollector
        Decrements connection count. The connection object is passed in as complementary information and without any guarantee of not being null.
        Specified by:
        decrementConnectionCount in class AbstractMetricsCollector
        Parameters:
        connection - the connection that has been closed (can be null)
      • incrementChannelCount

        protected void incrementChannelCount​(Channel channel)
        Description copied from class: AbstractMetricsCollector
        Increments channel count. The channel object is passed in as complementary information and without any guarantee of not being null.
        Specified by:
        incrementChannelCount in class AbstractMetricsCollector
        Parameters:
        channel - the channel that has been created (can be null)
      • getMetricRegistry

        public com.codahale.metrics.MetricRegistry getMetricRegistry()
      • getConnections

        public com.codahale.metrics.Counter getConnections()
      • getChannels

        public com.codahale.metrics.Counter getChannels()
      • getPublishedMessages

        public com.codahale.metrics.Meter getPublishedMessages()
      • getConsumedMessages

        public com.codahale.metrics.Meter getConsumedMessages()
      • getAcknowledgedMessages

        public com.codahale.metrics.Meter getAcknowledgedMessages()
      • getRejectedMessages

        public com.codahale.metrics.Meter getRejectedMessages()