Class MetricsMessageHistoryService

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, MetricsMessageHistoryMBean, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

    @ManagedResource(description="MetricsMessageHistory")
    public final class MetricsMessageHistoryService
    extends org.apache.camel.support.service.ServiceSupport
    implements org.apache.camel.CamelContextAware, org.apache.camel.StaticService, MetricsMessageHistoryMBean
    Service holding the MetricsMessageHistory which registers all message history metrics.
    • Constructor Detail

      • MetricsMessageHistoryService

        public MetricsMessageHistoryService()
    • Method Detail

      • getMetricsRegistry

        public com.codahale.metrics.MetricRegistry getMetricsRegistry()
      • setMetricsRegistry

        public void setMetricsRegistry​(com.codahale.metrics.MetricRegistry metricsRegistry)
      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.CamelContextAware
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • isUseJmx

        public boolean isUseJmx()
      • setUseJmx

        public void setUseJmx​(boolean useJmx)
      • getJmxDomain

        public String getJmxDomain()
      • setJmxDomain

        public void setJmxDomain​(String jmxDomain)
      • isPrettyPrint

        public boolean isPrettyPrint()
      • setPrettyPrint

        public void setPrettyPrint​(boolean prettyPrint)
      • getRateUnit

        public TimeUnit getRateUnit()
      • setRateUnit

        public void setRateUnit​(TimeUnit rateUnit)
      • getDurationUnit

        public TimeUnit getDurationUnit()
      • setDurationUnit

        public void setDurationUnit​(TimeUnit durationUnit)
      • doInit

        protected void doInit()
                       throws Exception
        Overrides:
        doInit in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.service.BaseService
        Throws:
        Exception