|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.management.mbean.ManagedCounter
org.apache.camel.management.mbean.ManagedPerformanceCounter
org.apache.camel.management.mbean.ManagedCamelContext
@ManagedResource(description="Managed CamelContext") public class ManagedCamelContext
| 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 |
| Constructor Summary | |
|---|---|
ManagedCamelContext(ModelCamelContext context)
|
|
| Method Summary | |
|---|---|
void |
addOrUpdateRoutesFromXml(String xml)
|
void |
addOrUpdateRoutesFromXml(String xml,
boolean urlDecode)
|
List<String> |
completeEndpointPath(String componentName,
Map<String,Object> endpointParameters,
String completionText)
Helper method for tooling which returns the completion list of the endpoint path from the given endpoint name, properties and current path expression. |
String |
componentParameterJsonSchema(String componentName)
Returns the JSON schema representation of the endpoint parameters for the given component name |
boolean |
createEndpoint(String uri)
Creates the endpoint by the given uri |
String |
createRouteStaticEndpointJson()
|
String |
createRouteStaticEndpointJson(boolean includeDynamic)
|
String |
dumpRestsAsXml()
|
String |
dumpRoutesAsXml()
|
String |
dumpRoutesStatsAsXml(boolean fullStats,
boolean includeProcessors)
|
List<String> |
findComponentNames()
Find the names of all the Camel components available in the classpath and Registry. |
Map<String,Properties> |
findComponents()
Find information about all the Camel components available in the classpath and Registry. |
String |
getApplicationContextClassName()
|
String |
getCamelId()
|
String |
getCamelVersion()
|
String |
getClassResolver()
|
String |
getComponentDocumentation(String componentName)
Returns the HTML documentation for the given camel component |
CamelContext |
getContext()
|
Integer |
getInflightExchanges()
|
String |
getLoad01()
|
String |
getLoad05()
|
String |
getLoad15()
|
String |
getManagementName()
|
String |
getPackageScanClassResolver()
|
Map<String,String> |
getProperties()
|
String |
getProperty(String name)
Gets the value of a CamelContext property name |
Integer |
getStartedRoutes()
|
String |
getState()
|
long |
getTimeout()
|
TimeUnit |
getTimeUnit()
|
Integer |
getTotalRoutes()
|
Boolean |
getTracing()
|
String |
getUptime()
|
boolean |
isAllowUseOriginalMessage()
|
boolean |
isMessageHistory()
|
boolean |
isShutdownNowOnTimeout()
|
boolean |
isUseBreadcrumb()
|
boolean |
isUseMDCLogging()
|
void |
onTimer()
Notification invoked. |
int |
removeEndpoints(String pattern)
Removes the endpoint by the given pattern |
Object |
requestBody(String endpointUri,
Object body)
|
Object |
requestBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers)
|
Object |
requestStringBody(String endpointUri,
String body)
|
void |
reset(boolean includeRoutes)
Resets all the performance counters. |
void |
restart()
|
void |
resume()
|
void |
sendBody(String endpointUri,
Object body)
|
void |
sendBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers)
|
void |
sendStringBody(String endpointUri,
String body)
|
void |
setProperty(String name,
String value)
Sets the value of a CamelContext property name |
void |
setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
|
void |
setTimeout(long timeout)
|
void |
setTimeUnit(TimeUnit timeUnit)
|
void |
setTracing(Boolean tracing)
|
void |
start()
|
void |
startAllRoutes()
|
void |
stop()
|
void |
suspend()
|
| Methods inherited from class org.apache.camel.management.mbean.ManagedCounter |
|---|
getExchangesTotal, getResetTimestamp, 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, reset |
| Constructor Detail |
|---|
public ManagedCamelContext(ModelCamelContext context)
| Method Detail |
|---|
public CamelContext getContext()
public String getCamelId()
getCamelId in interface ManagedCamelContextMBeanpublic String getManagementName()
getManagementName in interface ManagedCamelContextMBeanpublic String getCamelVersion()
getCamelVersion in interface ManagedCamelContextMBeanpublic String getState()
getState in interface ManagedCamelContextMBeanpublic String getUptime()
getUptime in interface ManagedCamelContextMBeanpublic String getClassResolver()
getClassResolver in interface ManagedCamelContextMBeanpublic String getPackageScanClassResolver()
getPackageScanClassResolver in interface ManagedCamelContextMBeanpublic String getApplicationContextClassName()
getApplicationContextClassName in interface ManagedCamelContextMBeanpublic Map<String,String> getProperties()
getProperties in interface ManagedCamelContextMBean
public String getProperty(String name)
throws Exception
ManagedCamelContextMBean
getProperty in interface ManagedCamelContextMBeanname - the name of the property
Exception - is thrown if error occurred
public void setProperty(String name,
String value)
throws Exception
ManagedCamelContextMBean
setProperty in interface ManagedCamelContextMBeanname - the name of the propertyvalue - the new value of the property
Exception - is thrown if error occurredpublic Boolean getTracing()
getTracing in interface ManagedCamelContextMBeanpublic void setTracing(Boolean tracing)
setTracing in interface ManagedCamelContextMBeanpublic Integer getInflightExchanges()
getInflightExchanges in interface ManagedCamelContextMBeanpublic Integer getTotalRoutes()
getTotalRoutes in interface ManagedCamelContextMBeanpublic Integer getStartedRoutes()
getStartedRoutes in interface ManagedCamelContextMBeanpublic void setTimeout(long timeout)
setTimeout in interface ManagedCamelContextMBeanpublic long getTimeout()
getTimeout in interface ManagedCamelContextMBeanpublic void setTimeUnit(TimeUnit timeUnit)
setTimeUnit in interface ManagedCamelContextMBeanpublic TimeUnit getTimeUnit()
getTimeUnit in interface ManagedCamelContextMBeanpublic void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
setShutdownNowOnTimeout in interface ManagedCamelContextMBeanpublic boolean isShutdownNowOnTimeout()
isShutdownNowOnTimeout in interface ManagedCamelContextMBeanpublic String getLoad01()
getLoad01 in interface ManagedCamelContextMBeanpublic String getLoad05()
getLoad05 in interface ManagedCamelContextMBeanpublic String getLoad15()
getLoad15 in interface ManagedCamelContextMBeanpublic boolean isUseBreadcrumb()
isUseBreadcrumb in interface ManagedCamelContextMBeanpublic boolean isAllowUseOriginalMessage()
isAllowUseOriginalMessage in interface ManagedCamelContextMBeanpublic boolean isMessageHistory()
isMessageHistory in interface ManagedCamelContextMBeanpublic boolean isUseMDCLogging()
isUseMDCLogging in interface ManagedCamelContextMBeanpublic void onTimer()
TimerListener
onTimer in interface TimerListener
public void start()
throws Exception
start in interface ManagedCamelContextMBeanException
public void stop()
throws Exception
stop in interface ManagedCamelContextMBeanException
public void restart()
throws Exception
restart in interface ManagedCamelContextMBeanException
public void suspend()
throws Exception
suspend in interface ManagedCamelContextMBeanException
public void resume()
throws Exception
resume in interface ManagedCamelContextMBeanException
public void startAllRoutes()
throws Exception
startAllRoutes in interface ManagedCamelContextMBeanException
public void sendBody(String endpointUri,
Object body)
throws Exception
sendBody in interface ManagedCamelContextMBeanException
public void sendStringBody(String endpointUri,
String body)
throws Exception
sendStringBody in interface ManagedCamelContextMBeanException
public void sendBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers)
throws Exception
sendBodyAndHeaders in interface ManagedCamelContextMBeanException
public Object requestBody(String endpointUri,
Object body)
throws Exception
requestBody in interface ManagedCamelContextMBeanException
public Object requestStringBody(String endpointUri,
String body)
throws Exception
requestStringBody in interface ManagedCamelContextMBeanException
public Object requestBodyAndHeaders(String endpointUri,
Object body,
Map<String,Object> headers)
throws Exception
requestBodyAndHeaders in interface ManagedCamelContextMBeanException
public String dumpRestsAsXml()
throws Exception
dumpRestsAsXml in interface ManagedCamelContextMBeanException
public String dumpRoutesAsXml()
throws Exception
dumpRoutesAsXml in interface ManagedCamelContextMBeanException
public void addOrUpdateRoutesFromXml(String xml)
throws Exception
addOrUpdateRoutesFromXml in interface ManagedCamelContextMBeanException
public void addOrUpdateRoutesFromXml(String xml,
boolean urlDecode)
throws Exception
addOrUpdateRoutesFromXml in interface ManagedCamelContextMBeanException
public String dumpRoutesStatsAsXml(boolean fullStats,
boolean includeProcessors)
throws Exception
dumpRoutesStatsAsXml in interface ManagedCamelContextMBeanException
public boolean createEndpoint(String uri)
throws Exception
ManagedCamelContextMBean
createEndpoint in interface ManagedCamelContextMBeanuri - uri of endpoint to create
Exception - is thrown if error occurred
public int removeEndpoints(String pattern)
throws Exception
ManagedCamelContextMBean
removeEndpoints in interface ManagedCamelContextMBeanpattern - the pattern
Exception - is thrown if error occurredCamelContext.removeEndpoints(String)
public Map<String,Properties> findComponents()
throws Exception
ManagedCamelContextMBeanRegistry.
findComponents in interface ManagedCamelContextMBeanException - is thrown if error occurred
public String getComponentDocumentation(String componentName)
throws IOException
ManagedCamelContextMBean
getComponentDocumentation in interface ManagedCamelContextMBeancomponentName - the component name
IOExceptionpublic String createRouteStaticEndpointJson()
createRouteStaticEndpointJson in interface ManagedCamelContextMBeanpublic String createRouteStaticEndpointJson(boolean includeDynamic)
createRouteStaticEndpointJson in interface ManagedCamelContextMBean
public List<String> findComponentNames()
throws Exception
ManagedCamelContextMBeanRegistry.
findComponentNames in interface ManagedCamelContextMBeanException - is thrown if error occurred
public List<String> completeEndpointPath(String componentName,
Map<String,Object> endpointParameters,
String completionText)
throws Exception
ManagedCamelContextMBean
completeEndpointPath in interface ManagedCamelContextMBeancomponentName - the component nameendpointParameters - parameters of the endpointcompletionText - the entered text which we want to have completion suggestions for
Exception - is thrown if error occurred
public String componentParameterJsonSchema(String componentName)
throws Exception
ManagedCamelContextMBean
componentParameterJsonSchema in interface ManagedCamelContextMBeancomponentName - the name of the component to lookup
Exception - is thrown if error occurred
public void reset(boolean includeRoutes)
throws Exception
ManagedCamelContextMBean
reset in interface ManagedCamelContextMBeanincludeRoutes - whether to reset all routes as well.
Exception - is thrown if error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||