Class ManagedCamelContext
- java.lang.Object
-
- org.apache.camel.management.mbean.ManagedCounter
-
- org.apache.camel.management.mbean.ManagedPerformanceCounter
-
- org.apache.camel.management.mbean.ManagedCamelContext
-
- All Implemented Interfaces:
org.apache.camel.api.management.mbean.ManagedCamelContextMBean,org.apache.camel.api.management.mbean.ManagedCounterMBean,org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean,PerformanceCounter,org.apache.camel.TimerListener
@ManagedResource(description="Managed CamelContext") public class ManagedCamelContext extends ManagedPerformanceCounter implements org.apache.camel.TimerListener, org.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
-
Field Summary
-
Fields inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
TIMESTAMP_FORMAT
-
Fields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal, resetTimestamp, startTimestamp
-
-
Constructor Summary
Constructors Constructor Description ManagedCamelContext(org.apache.camel.CamelContext context)
-
Method Summary
-
Methods inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeCreatedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, reset, setStatisticsEnabled
-
Methods inherited from class org.apache.camel.management.mbean.ManagedCounter
getExchangesTotal, getResetTimestamp, getStartTimestamp, increment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.api.management.mbean.ManagedCounterMBean
getExchangesTotal, getResetTimestamp, getStartTimestamp, reset
-
Methods inherited from interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeCreatedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabled
-
-
-
-
Constructor Detail
-
ManagedCamelContext
public ManagedCamelContext(org.apache.camel.CamelContext context)
-
-
Method Detail
-
init
public void init(org.apache.camel.spi.ManagementStrategy strategy)
- Overrides:
initin classManagedPerformanceCounter
-
completedExchange
public void completedExchange(org.apache.camel.Exchange exchange, long time)
Description copied from interface:PerformanceCounterExecuted when anExchangeis complete.- Specified by:
completedExchangein interfacePerformanceCounter- Overrides:
completedExchangein classManagedPerformanceCounter- Parameters:
exchange- the exchangetime- the time it took in millis to complete
-
failedExchange
public void failedExchange(org.apache.camel.Exchange exchange)
Description copied from interface:PerformanceCounterExecuted when anExchangefailed.- Specified by:
failedExchangein interfacePerformanceCounter- Overrides:
failedExchangein classManagedPerformanceCounter- Parameters:
exchange- the exchange
-
processExchange
public void processExchange(org.apache.camel.Exchange exchange, String type)
Description copied from interface:PerformanceCounterExecuted when anExchangeis about to be processed.- Specified by:
processExchangein interfacePerformanceCounter- Overrides:
processExchangein classManagedPerformanceCounter- Parameters:
exchange- the exchangetype- the node type
-
getContext
public org.apache.camel.CamelContext getContext()
-
getCamelId
public String getCamelId()
- Specified by:
getCamelIdin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getCamelDescription
public String getCamelDescription()
- Specified by:
getCamelDescriptionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getManagementName
public String getManagementName()
- Specified by:
getManagementNamein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getCamelVersion
public String getCamelVersion()
- Specified by:
getCamelVersionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getState
public String getState()
- Specified by:
getStatein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getUptime
public String getUptime()
- Specified by:
getUptimein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getUptimeMillis
public long getUptimeMillis()
- Specified by:
getUptimeMillisin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getManagementStatisticsLevel
public String getManagementStatisticsLevel()
- Specified by:
getManagementStatisticsLevelin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getClassResolver
public String getClassResolver()
- Specified by:
getClassResolverin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getPackageScanClassResolver
public String getPackageScanClassResolver()
- Specified by:
getPackageScanClassResolverin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getApplicationContextClassName
public String getApplicationContextClassName()
- Specified by:
getApplicationContextClassNamein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getHeadersMapFactoryClassName
public String getHeadersMapFactoryClassName()
- Specified by:
getHeadersMapFactoryClassNamein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getGlobalOptions
public Map<String,String> getGlobalOptions()
- Specified by:
getGlobalOptionsin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getGlobalOption
public String getGlobalOption(String key) throws Exception
- Specified by:
getGlobalOptionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
setGlobalOption
public void setGlobalOption(String key, String value) throws Exception
- Specified by:
setGlobalOptionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
getTracing
public Boolean getTracing()
- Specified by:
getTracingin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTracing
public void setTracing(Boolean tracing)
- Specified by:
setTracingin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getInflightExchanges
public Integer getInflightExchanges()
-
getTotalRoutes
public Integer getTotalRoutes()
- Specified by:
getTotalRoutesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getStartedRoutes
public Integer getStartedRoutes()
- Specified by:
getStartedRoutesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTimeout
public void setTimeout(long timeout)
- Specified by:
setTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getTimeout
public long getTimeout()
- Specified by:
getTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTimeUnit
public void setTimeUnit(TimeUnit timeUnit)
- Specified by:
setTimeUnitin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getTimeUnit
public TimeUnit getTimeUnit()
- Specified by:
getTimeUnitin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setShutdownNowOnTimeout
public void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
- Specified by:
setShutdownNowOnTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isShutdownNowOnTimeout
public boolean isShutdownNowOnTimeout()
- Specified by:
isShutdownNowOnTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad01
public String getLoad01()
- Specified by:
getLoad01in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad05
public String getLoad05()
- Specified by:
getLoad05in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad15
public String getLoad15()
- Specified by:
getLoad15in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getThroughput
public String getThroughput()
- Specified by:
getThroughputin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseBreadcrumb
public boolean isUseBreadcrumb()
- Specified by:
isUseBreadcrumbin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isAllowUseOriginalMessage
public boolean isAllowUseOriginalMessage()
- Specified by:
isAllowUseOriginalMessagein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isMessageHistory
public boolean isMessageHistory()
- Specified by:
isMessageHistoryin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isLogMask
public boolean isLogMask()
- Specified by:
isLogMaskin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseMDCLogging
public boolean isUseMDCLogging()
- Specified by:
isUseMDCLoggingin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseDataType
public boolean isUseDataType()
- Specified by:
isUseDataTypein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
onTimer
public void onTimer()
- Specified by:
onTimerin interfaceorg.apache.camel.TimerListener
-
start
public void start() throws Exception
- Specified by:
startin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
stop
public void stop() throws Exception
- Specified by:
stopin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
restart
public void restart() throws Exception
- Specified by:
restartin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
suspend
public void suspend() throws Exception
- Specified by:
suspendin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
resume
public void resume() throws Exception
- Specified by:
resumein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
startAllRoutes
public void startAllRoutes() throws Exception
- Specified by:
startAllRoutesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
canSendToEndpoint
public boolean canSendToEndpoint(String endpointUri)
- Specified by:
canSendToEndpointin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
sendBody
public void sendBody(String endpointUri, Object body) throws Exception
- Specified by:
sendBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
sendStringBody
public void sendStringBody(String endpointUri, String body) throws Exception
- Specified by:
sendStringBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
sendBodyAndHeaders
public void sendBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers) throws Exception
- Specified by:
sendBodyAndHeadersin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
requestBody
public Object requestBody(String endpointUri, Object body) throws Exception
- Specified by:
requestBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
requestStringBody
public Object requestStringBody(String endpointUri, String body) throws Exception
- Specified by:
requestStringBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
requestBodyAndHeaders
public Object requestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers) throws Exception
- Specified by:
requestBodyAndHeadersin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRestsAsXml
public String dumpRestsAsXml() throws Exception
- Specified by:
dumpRestsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRestsAsXml
public String dumpRestsAsXml(boolean resolvePlaceholders) throws Exception
- Specified by:
dumpRestsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsXml
public String dumpRoutesAsXml() throws Exception
- Specified by:
dumpRoutesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsXml
public String dumpRoutesAsXml(boolean resolvePlaceholders) throws Exception
- Specified by:
dumpRoutesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsXml
public String dumpRoutesAsXml(boolean resolvePlaceholders, boolean resolveDelegateEndpoints) throws Exception
- Specified by:
dumpRoutesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRouteTemplatesAsXml
public String dumpRouteTemplatesAsXml() throws Exception
- Specified by:
dumpRouteTemplatesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesStatsAsXml
public String dumpRoutesStatsAsXml(boolean fullStats, boolean includeProcessors) throws Exception
- Specified by:
dumpRoutesStatsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpStepStatsAsXml
public String dumpStepStatsAsXml(boolean fullStats) throws Exception
- Specified by:
dumpStepStatsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesCoverageAsXml
public String dumpRoutesCoverageAsXml() throws Exception
- Specified by:
dumpRoutesCoverageAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesSourceLocationsAsXml
@Deprecated public String dumpRoutesSourceLocationsAsXml() throws Exception
Deprecated.- Specified by:
dumpRoutesSourceLocationsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
createEndpoint
public boolean createEndpoint(String uri) throws Exception
- Specified by:
createEndpointin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
removeEndpoints
public int removeEndpoints(String pattern) throws Exception
- Specified by:
removeEndpointsin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
reset
public void reset(boolean includeRoutes) throws Exception
- Specified by:
resetin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
componentNames
public Set<String> componentNames() throws Exception
- Specified by:
componentNamesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
languageNames
public Set<String> languageNames() throws Exception
- Specified by:
languageNamesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dataFormatNames
public Set<String> dataFormatNames() throws Exception
- Specified by:
dataFormatNamesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
-