public class MetricsMessageHistoryFactory
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.CamelContextAware, org.apache.camel.StaticService, org.apache.camel.NonManagedService, org.apache.camel.spi.MessageHistoryFactory
MetricsMessageHistory as message history implementation.| Constructor and Description |
|---|
MetricsMessageHistoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
TimeUnit |
getDurationUnit() |
String |
getJmxDomain() |
com.codahale.metrics.MetricRegistry |
getMetricsRegistry() |
TimeUnit |
getRateUnit() |
boolean |
isPrettyPrint() |
boolean |
isUseJmx() |
org.apache.camel.MessageHistory |
newMessageHistory(String routeId,
org.apache.camel.NamedNode namedNode,
Date date) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setDurationUnit(TimeUnit durationUnit)
Sets the time unit to use for timing the duration of processing a message in the route
|
void |
setJmxDomain(String jmxDomain)
The JMX domain name to use for the enlisted JMX MBeans.
|
void |
setMetricsRegistry(com.codahale.metrics.MetricRegistry metricsRegistry)
To use a specific
MetricRegistry instance. |
void |
setPrettyPrint(boolean prettyPrint)
Whether to use pretty print when outputting JSon
|
void |
setRateUnit(TimeUnit rateUnit)
Sets the time unit to use for requests per unit (eg requests per second)
|
void |
setUseJmx(boolean useJmx)
Whether to use JMX reported to enlist JMX MBeans with the metrics statistics.
|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic 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 com.codahale.metrics.MetricRegistry getMetricsRegistry()
public void setMetricsRegistry(com.codahale.metrics.MetricRegistry metricsRegistry)
MetricRegistry instance.
If no instance has been configured, then Camel will create a shared instance to be used.public 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)
public org.apache.camel.MessageHistory newMessageHistory(String routeId, org.apache.camel.NamedNode namedNode, Date date)
newMessageHistory in interface org.apache.camel.spi.MessageHistoryFactoryprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionApache Camel