|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.management.InstrumentationLifecycleStrategy
public class InstrumentationLifecycleStrategy
JMX agent that registeres Camel lifecycle events in JMX.
Constructor Summary | |
---|---|
InstrumentationLifecycleStrategy()
|
|
InstrumentationLifecycleStrategy(InstrumentationAgent agent)
|
|
InstrumentationLifecycleStrategy(InstrumentationAgent agent,
CamelContext context)
Constructor for camel context that has been started. |
Method Summary | |
---|---|
CamelNamingStrategy |
getNamingStrategy()
|
void |
onContextStart(CamelContext context)
Notification on starting 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 |
onRouteContextCreate(RouteContext routeContext)
Notification on adding RouteContext (s). |
void |
onRoutesAdd(Collection<Route> routes)
Notification on adding Route (s). |
void |
onServiceAdd(CamelContext context,
Service service)
Notification on adding a Service . |
protected boolean |
registerProcessor(ProcessorDefinition processor)
Should the given processor be registered. |
void |
setAgent(InstrumentationAgent agent)
|
void |
setNamingStrategy(CamelNamingStrategy strategy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstrumentationLifecycleStrategy()
public InstrumentationLifecycleStrategy(InstrumentationAgent agent)
public InstrumentationLifecycleStrategy(InstrumentationAgent agent, CamelContext context)
agent
- the agentcontext
- the camel contextMethod Detail |
---|
public void onContextStart(CamelContext context)
LifecycleStrategy
CamelContext
.
onContextStart
in interface LifecycleStrategy
context
- the camel contextpublic void onEndpointAdd(Endpoint endpoint)
ManagedEndpoint
and
register that with the mbean server.
onEndpointAdd
in interface LifecycleStrategy
endpoint
- the Endpoint attempted to be addedpublic void onRoutesAdd(Collection<Route> routes)
LifecycleStrategy
Route
(s).
onRoutesAdd
in interface LifecycleStrategy
routes
- the added routespublic void onServiceAdd(CamelContext context, Service service)
LifecycleStrategy
Service
.
onServiceAdd
in interface LifecycleStrategy
context
- the camel contextservice
- the added servicepublic void onRouteContextCreate(RouteContext routeContext)
LifecycleStrategy
RouteContext
(s).
onRouteContextCreate
in interface LifecycleStrategy
routeContext
- the added route contextprotected boolean registerProcessor(ProcessorDefinition processor)
public CamelNamingStrategy getNamingStrategy()
public void setNamingStrategy(CamelNamingStrategy strategy)
public void setAgent(InstrumentationAgent agent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |