@ManagedResource(description="Managed Route") public class ManagedRoute extends ManagedPerformanceCounter implements TimerListener, ManagedRouteMBean
Modifier and Type | Field and Description |
---|---|
protected ModelCamelContext |
context |
protected String |
description |
protected Route |
route |
static String |
VALUE_UNKNOWN |
TIMESTAMP_FORMAT
exchangesTotal, resetTimestamp, startTimestamp
Constructor and Description |
---|
ManagedRoute(ModelCamelContext context,
Route route) |
completedExchange, dumpStatsAsXml, failedExchange, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, processExchange, reset, setStatisticsEnabled
getExchangesTotal, getResetTimestamp, getStartTimestamp, increment
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabled
getExchangesTotal, getResetTimestamp, getStartTimestamp, reset
public static final String VALUE_UNKNOWN
protected final String description
protected final ModelCamelContext context
public ManagedRoute(ModelCamelContext context, Route route)
public void init(ManagementStrategy strategy)
init
in class ManagedPerformanceCounter
public CamelContext getContext()
public String getRouteId()
getRouteId
in interface ManagedRouteMBean
public String getDescription()
getDescription
in interface ManagedRouteMBean
public String getEndpointUri()
getEndpointUri
in interface ManagedRouteMBean
public String getState()
getState
in interface ManagedRouteMBean
public String getUptime()
getUptime
in interface ManagedRouteMBean
public long getUptimeMillis()
getUptimeMillis
in interface ManagedRouteMBean
public Integer getInflightExchanges()
getInflightExchanges
in interface ManagedRouteMBean
public String getCamelId()
getCamelId
in interface ManagedRouteMBean
public String getCamelManagementName()
getCamelManagementName
in interface ManagedRouteMBean
public Boolean getTracing()
getTracing
in interface ManagedRouteMBean
public void setTracing(Boolean tracing)
setTracing
in interface ManagedRouteMBean
public Boolean getMessageHistory()
getMessageHistory
in interface ManagedRouteMBean
public Boolean getLogMask()
public String getRoutePolicyList()
getRoutePolicyList
in interface ManagedRouteMBean
public String getLoad01()
getLoad01
in interface ManagedRouteMBean
public String getLoad05()
getLoad05
in interface ManagedRouteMBean
public String getLoad15()
getLoad15
in interface ManagedRouteMBean
public void onTimer()
TimerListener
onTimer
in interface TimerListener
public void start() throws Exception
start
in interface ManagedRouteMBean
Exception
public void stop() throws Exception
stop
in interface ManagedRouteMBean
Exception
public void stop(long timeout) throws Exception
stop
in interface ManagedRouteMBean
Exception
public boolean stop(Long timeout, Boolean abortAfterTimeout) throws Exception
stop
in interface ManagedRouteMBean
Exception
public void shutdown() throws Exception
shutdown
in interface ManagedRouteMBean
Exception
public void shutdown(long timeout) throws Exception
shutdown
in interface ManagedRouteMBean
Exception
public boolean remove() throws Exception
remove
in interface ManagedRouteMBean
Exception
public void restart() throws Exception
restart
in interface ManagedRouteMBean
Exception
public void restart(long delay) throws Exception
restart
in interface ManagedRouteMBean
Exception
public String dumpRouteAsXml() throws Exception
dumpRouteAsXml
in interface ManagedRouteMBean
Exception
public String dumpRouteAsXml(boolean resolvePlaceholders) throws Exception
dumpRouteAsXml
in interface ManagedRouteMBean
Exception
public void updateRouteFromXml(String xml) throws Exception
updateRouteFromXml
in interface ManagedRouteMBean
Exception
public String dumpRouteStatsAsXml(boolean fullStats, boolean includeProcessors) throws Exception
dumpRouteStatsAsXml
in interface ManagedRouteMBean
Exception
public void reset(boolean includeProcessors) throws Exception
reset
in interface ManagedRouteMBean
Exception
public String createRouteStaticEndpointJson()
createRouteStaticEndpointJson
in interface ManagedRouteMBean
public String createRouteStaticEndpointJson(boolean includeDynamic)
createRouteStaticEndpointJson
in interface ManagedRouteMBean
public Long getOldestInflightDuration()
getOldestInflightDuration
in interface ManagedRouteMBean
public String getOldestInflightExchangeId()
getOldestInflightExchangeId
in interface ManagedRouteMBean
public Boolean getHasRouteController()
getHasRouteController
in interface ManagedRouteMBean
public RouteError getLastError()
getLastError
in interface ManagedRouteMBean
Apache Camel