@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_FORMATexchangesTotal, 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, setStatisticsEnabledgetExchangesTotal, getResetTimestamp, getStartTimestamp, incrementclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabledgetExchangesTotal, getResetTimestamp, getStartTimestamp, resetpublic 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 ManagedPerformanceCounterpublic CamelContext getContext()
public String getRouteId()
getRouteId in interface ManagedRouteMBeanpublic String getDescription()
getDescription in interface ManagedRouteMBeanpublic String getEndpointUri()
getEndpointUri in interface ManagedRouteMBeanpublic String getState()
getState in interface ManagedRouteMBeanpublic String getUptime()
getUptime in interface ManagedRouteMBeanpublic long getUptimeMillis()
getUptimeMillis in interface ManagedRouteMBeanpublic Integer getInflightExchanges()
getInflightExchanges in interface ManagedRouteMBeanpublic String getCamelId()
getCamelId in interface ManagedRouteMBeanpublic String getCamelManagementName()
getCamelManagementName in interface ManagedRouteMBeanpublic Boolean getTracing()
getTracing in interface ManagedRouteMBeanpublic void setTracing(Boolean tracing)
setTracing in interface ManagedRouteMBeanpublic Boolean getMessageHistory()
getMessageHistory in interface ManagedRouteMBeanpublic Boolean getLogMask()
public String getRoutePolicyList()
getRoutePolicyList in interface ManagedRouteMBeanpublic String getLoad01()
getLoad01 in interface ManagedRouteMBeanpublic String getLoad05()
getLoad05 in interface ManagedRouteMBeanpublic String getLoad15()
getLoad15 in interface ManagedRouteMBeanpublic void onTimer()
TimerListeneronTimer in interface TimerListenerpublic void start() throws Exception
start in interface ManagedRouteMBeanExceptionpublic void stop() throws Exception
stop in interface ManagedRouteMBeanExceptionpublic void stop(long timeout) throws Exception
stop in interface ManagedRouteMBeanExceptionpublic boolean stop(Long timeout, Boolean abortAfterTimeout) throws Exception
stop in interface ManagedRouteMBeanExceptionpublic void shutdown() throws Exception
shutdown in interface ManagedRouteMBeanExceptionpublic void shutdown(long timeout) throws Exception
shutdown in interface ManagedRouteMBeanExceptionpublic boolean remove() throws Exception
remove in interface ManagedRouteMBeanExceptionpublic void restart() throws Exception
restart in interface ManagedRouteMBeanExceptionpublic void restart(long delay) throws Exception
restart in interface ManagedRouteMBeanExceptionpublic String dumpRouteAsXml() throws Exception
dumpRouteAsXml in interface ManagedRouteMBeanExceptionpublic String dumpRouteAsXml(boolean resolvePlaceholders) throws Exception
dumpRouteAsXml in interface ManagedRouteMBeanExceptionpublic void updateRouteFromXml(String xml) throws Exception
updateRouteFromXml in interface ManagedRouteMBeanExceptionpublic String dumpRouteStatsAsXml(boolean fullStats, boolean includeProcessors) throws Exception
dumpRouteStatsAsXml in interface ManagedRouteMBeanExceptionpublic void reset(boolean includeProcessors) throws Exception
reset in interface ManagedRouteMBeanExceptionpublic String createRouteStaticEndpointJson()
createRouteStaticEndpointJson in interface ManagedRouteMBeanpublic String createRouteStaticEndpointJson(boolean includeDynamic)
createRouteStaticEndpointJson in interface ManagedRouteMBeanpublic Long getOldestInflightDuration()
getOldestInflightDuration in interface ManagedRouteMBeanpublic String getOldestInflightExchangeId()
getOldestInflightExchangeId in interface ManagedRouteMBeanpublic Boolean getHasRouteController()
getHasRouteController in interface ManagedRouteMBeanpublic RouteError getLastError()
getLastError in interface ManagedRouteMBeanApache Camel