|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.management.DefaultManagementLifecycleStrategy
public class DefaultManagementLifecycleStrategy
Default JMX managed lifecycle strategy that registered objects using the configured
ManagementStrategy.
ManagementStrategy| Constructor Summary | |
|---|---|
DefaultManagementLifecycleStrategy()
|
|
DefaultManagementLifecycleStrategy(CamelContext camelContext)
|
|
| Method Summary | |
|---|---|
CamelContext |
getCamelContext()
Get the CamelContext |
void |
onComponentAdd(String name,
Component component)
Notification on adding an Component. |
void |
onComponentRemove(String name,
Component component)
Notification on removing an Component. |
void |
onContextStart(CamelContext context)
Notification on starting a CamelContext. |
void |
onContextStop(CamelContext context)
Notification on stopping a CamelContext. |
void |
onEndpointAdd(Endpoint endpoint)
If the endpoint is an instance of ManagedResource then register it with the mbean server, if it is not then wrap the endpoint in a ManagedEndpoint and
register that with the mbean server. |
void |
onEndpointRemove(Endpoint endpoint)
Notification on removing an Endpoint. |
void |
onErrorHandlerAdd(RouteContext routeContext,
Processor errorHandler,
ErrorHandlerBuilder errorHandlerBuilder)
Notification on adding error handler. |
void |
onRouteContextCreate(RouteContext routeContext)
Notification on adding RouteContext(s). |
void |
onRoutesAdd(Collection<Route> routes)
Notification on adding Route(s). |
void |
onRoutesRemove(Collection<Route> routes)
Notification on removing Route(s). |
void |
onServiceAdd(CamelContext context,
Service service,
Route route)
Notification on adding a Service. |
void |
onServiceRemove(CamelContext context,
Service service,
Route route)
Notification on removing a Service. |
void |
onThreadPoolAdd(CamelContext camelContext,
ThreadPoolExecutor threadPool)
Notification on adding a thread pool. |
protected boolean |
registerProcessor(ProcessorDefinition processor)
Should the given processor be registered. |
void |
setCamelContext(CamelContext camelContext)
Injects the CamelContext |
void |
start()
Starts the service |
void |
stop()
Stops the service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultManagementLifecycleStrategy()
public DefaultManagementLifecycleStrategy(CamelContext camelContext)
| Method Detail |
|---|
public CamelContext getCamelContext()
CamelContextAwareCamelContext
getCamelContext in interface CamelContextAwarepublic void setCamelContext(CamelContext camelContext)
CamelContextAwareCamelContext
setCamelContext in interface CamelContextAwarecamelContext - the Camel contextpublic void onContextStart(CamelContext context)
LifecycleStrategyCamelContext.
onContextStart in interface LifecycleStrategycontext - the camel contextpublic void onContextStop(CamelContext context)
LifecycleStrategyCamelContext.
onContextStop in interface LifecycleStrategycontext - the camel context
public void onComponentAdd(String name,
Component component)
LifecycleStrategyComponent.
onComponentAdd in interface LifecycleStrategyname - the unique name of this componentcomponent - the added component
public void onComponentRemove(String name,
Component component)
LifecycleStrategyComponent.
onComponentRemove in interface LifecycleStrategyname - the unique name of this componentcomponent - the removed componentpublic void onEndpointAdd(Endpoint endpoint)
ManagedEndpoint and
register that with the mbean server.
onEndpointAdd in interface LifecycleStrategyendpoint - the Endpoint attempted to be addedpublic void onEndpointRemove(Endpoint endpoint)
LifecycleStrategyEndpoint.
onEndpointRemove in interface LifecycleStrategyendpoint - the removed endpoint
public void onServiceAdd(CamelContext context,
Service service,
Route route)
LifecycleStrategyService.
onServiceAdd in interface LifecycleStrategycontext - the camel contextservice - the added serviceroute - the route the service belongs to if any possible to determine
public void onServiceRemove(CamelContext context,
Service service,
Route route)
LifecycleStrategyService.
onServiceRemove in interface LifecycleStrategycontext - the camel contextservice - the removed serviceroute - the route the service belongs to if any possible to determinepublic void onRoutesAdd(Collection<Route> routes)
LifecycleStrategyRoute(s).
onRoutesAdd in interface LifecycleStrategyroutes - the added routespublic void onRoutesRemove(Collection<Route> routes)
LifecycleStrategyRoute(s).
onRoutesRemove in interface LifecycleStrategyroutes - the removed routes
public void onErrorHandlerAdd(RouteContext routeContext,
Processor errorHandler,
ErrorHandlerBuilder errorHandlerBuilder)
LifecycleStrategy
onErrorHandlerAdd in interface LifecycleStrategyrouteContext - the added route contexterrorHandler - the error handlererrorHandlerBuilder - the error handler builder
public void onThreadPoolAdd(CamelContext camelContext,
ThreadPoolExecutor threadPool)
LifecycleStrategy
onThreadPoolAdd in interface LifecycleStrategycamelContext - the camel contextthreadPool - the thread poolpublic void onRouteContextCreate(RouteContext routeContext)
LifecycleStrategyRouteContext(s).
onRouteContextCreate in interface LifecycleStrategyrouteContext - the added route contextprotected boolean registerProcessor(ProcessorDefinition processor)
public void start()
throws Exception
Service
start in interface ServiceException - is thrown if starting failed
public void stop()
throws Exception
Service
stop in interface ServiceException - is thrown if stopping failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||