@UriEndpoint(firstVersion="2.14.0",
scheme="metrics",
title="Metrics",
syntax="metrics:metricsType:metricsName",
producerOnly=true,
label="monitoring")
public class MetricsEndpoint
extends org.apache.camel.impl.DefaultEndpoint
Modifier and Type | Field and Description |
---|---|
protected String |
metricsName |
protected MetricsType |
metricsType |
protected com.codahale.metrics.MetricRegistry |
registry |
Constructor and Description |
---|
MetricsEndpoint(String uri,
org.apache.camel.Component component,
com.codahale.metrics.MetricRegistry registry,
MetricsType metricsType,
String metricsName) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
MetricsTimerAction |
getAction() |
Long |
getDecrement() |
Long |
getIncrement() |
Long |
getMark() |
String |
getMetricsName() |
MetricsType |
getMetricsType() |
com.codahale.metrics.MetricRegistry |
getRegistry() |
Object |
getSubject() |
Long |
getValue() |
boolean |
isSingleton() |
void |
setAction(MetricsTimerAction action) |
void |
setDecrement(Long decrement) |
void |
setIncrement(Long increment) |
void |
setMark(Long mark) |
void |
setSubject(Object subject) |
void |
setValue(Long value) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected final com.codahale.metrics.MetricRegistry registry
@UriPath(description="Type of metrics") @Metadata(required="true") protected final MetricsType metricsType
@UriPath(description="Name of metrics") @Metadata(required="true") protected final String metricsName
public MetricsEndpoint(String uri, org.apache.camel.Component component, com.codahale.metrics.MetricRegistry registry, MetricsType metricsType, String metricsName)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public boolean isSingleton()
public com.codahale.metrics.MetricRegistry getRegistry()
public String getMetricsName()
public MetricsType getMetricsType()
public MetricsTimerAction getAction()
public void setAction(MetricsTimerAction action)
public Long getMark()
public void setMark(Long mark)
public Long getValue()
public void setValue(Long value)
public Long getIncrement()
public void setIncrement(Long increment)
public Long getDecrement()
public void setDecrement(Long decrement)
public Object getSubject()
public void setSubject(Object subject)
Apache Camel