@ManagedResource(description="MetricsRegistry") public final class MetricsRegistryService extends org.apache.camel.support.ServiceSupport implements org.apache.camel.CamelContextAware, org.apache.camel.StaticService, MetricsRegistryMBean
MetricRegistry which registers all metrics.| Constructor and Description |
|---|
MetricsRegistryService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
String |
dumpStatisticsAsJson() |
String |
dumpStatisticsAsJsonTimeUnitSeconds() |
org.apache.camel.CamelContext |
getCamelContext() |
TimeUnit |
getDurationUnit() |
String |
getJmxDomain() |
com.codahale.metrics.MetricRegistry |
getMetricsRegistry() |
TimeUnit |
getRateUnit() |
boolean |
isPrettyPrint() |
boolean |
isUseJmx() |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setDurationUnit(TimeUnit durationUnit) |
void |
setJmxDomain(String jmxDomain) |
void |
setMetricsRegistry(com.codahale.metrics.MetricRegistry metricsRegistry) |
void |
setPrettyPrint(boolean prettyPrint) |
void |
setRateUnit(TimeUnit rateUnit) |
void |
setUseJmx(boolean useJmx) |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic com.codahale.metrics.MetricRegistry getMetricsRegistry()
public void setMetricsRegistry(com.codahale.metrics.MetricRegistry metricsRegistry)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic boolean isUseJmx()
public void setUseJmx(boolean useJmx)
public String getJmxDomain()
public void setJmxDomain(String jmxDomain)
public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)
public TimeUnit getRateUnit()
public void setRateUnit(TimeUnit rateUnit)
public TimeUnit getDurationUnit()
public void setDurationUnit(TimeUnit durationUnit)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportExceptionpublic String dumpStatisticsAsJson()
dumpStatisticsAsJson in interface MetricsRegistryMBeanpublic String dumpStatisticsAsJsonTimeUnitSeconds()
dumpStatisticsAsJsonTimeUnitSeconds in interface MetricsRegistryMBeanApache Camel