public class MetricsMessageHistoryFactory
extends org.apache.camel.support.service.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 |
doInit() |
org.apache.camel.CamelContext |
getCamelContext() |
TimeUnit |
getDurationUnit() |
String |
getJmxDomain() |
com.codahale.metrics.MetricRegistry |
getMetricsRegistry() |
String |
getNodePattern() |
TimeUnit |
getRateUnit() |
boolean |
isCopyMessage() |
boolean |
isPrettyPrint() |
boolean |
isUseJmx() |
org.apache.camel.MessageHistory |
newMessageHistory(String routeId,
org.apache.camel.NamedNode node,
long timestamp,
org.apache.camel.Exchange exchange) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setCopyMessage(boolean copyMessage) |
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 |
setNodePattern(String nodePattern) |
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.
|
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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 boolean isCopyMessage()
isCopyMessage in interface org.apache.camel.spi.MessageHistoryFactorypublic void setCopyMessage(boolean copyMessage)
setCopyMessage in interface org.apache.camel.spi.MessageHistoryFactorypublic String getNodePattern()
getNodePattern in interface org.apache.camel.spi.MessageHistoryFactorypublic void setNodePattern(String nodePattern)
setNodePattern in interface org.apache.camel.spi.MessageHistoryFactorypublic org.apache.camel.MessageHistory newMessageHistory(String routeId, org.apache.camel.NamedNode node, long timestamp, org.apache.camel.Exchange exchange)
newMessageHistory in interface org.apache.camel.spi.MessageHistoryFactoryApache Camel