|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.management.event.DefaultEventFactory
public class DefaultEventFactory
Default implementation of the EventFactory
.
Constructor Summary | |
---|---|
DefaultEventFactory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEventFactory()
Method Detail |
---|
public EventObject createCamelContextStartingEvent(CamelContext context)
EventFactory
EventObject
for Camel is starting.
createCamelContextStartingEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextStartedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been started successfully.
createCamelContextStartedEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextStoppingEvent(CamelContext context)
EventFactory
EventObject
for Camel is stopping.
createCamelContextStoppingEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextStoppedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been stopped successfully.
createCamelContextStoppedEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextStartupFailureEvent(CamelContext context, Throwable cause)
EventFactory
EventObject
for Camel failing to start
createCamelContextStartupFailureEvent
in interface EventFactory
context
- camel contextcause
- the cause exception
public EventObject createCamelContextStopFailureEvent(CamelContext context, Throwable cause)
EventFactory
EventObject
for Camel failing to stop cleanly
createCamelContextStopFailureEvent
in interface EventFactory
context
- camel contextcause
- the cause exception
public EventObject createServiceStartupFailureEvent(CamelContext context, Object service, Throwable cause)
EventFactory
EventObject
for a Service failed to start cleanly
createServiceStartupFailureEvent
in interface EventFactory
context
- camel contextservice
- the servicecause
- the cause exception
public EventObject createServiceStopFailureEvent(CamelContext context, Object service, Throwable cause)
EventFactory
EventObject
for a Service failed to stop cleanly
createServiceStopFailureEvent
in interface EventFactory
context
- camel contextservice
- the servicecause
- the cause exception
public EventObject createRouteStartedEvent(Route route)
EventFactory
EventObject
for Route
has been started successfully.
createRouteStartedEvent
in interface EventFactory
route
- the route
public EventObject createRouteStoppedEvent(Route route)
EventFactory
EventObject
for Route
has been stopped successfully.
createRouteStoppedEvent
in interface EventFactory
route
- the route
public EventObject createExchangeCreatedEvent(Exchange exchange)
EventFactory
EventObject
when an Exchange
has been created
createExchangeCreatedEvent
in interface EventFactory
exchange
- the exchange
public EventObject createExchangeCompletedEvent(Exchange exchange)
EventFactory
EventObject
when an Exchange
has been completed successfully
createExchangeCompletedEvent
in interface EventFactory
exchange
- the exchange
public EventObject createExchangeFailedEvent(Exchange exchange)
EventFactory
EventObject
when an Exchange
has failed
createExchangeFailedEvent
in interface EventFactory
exchange
- the exchange
public EventObject createExchangeFailureHandledEvent(Exchange exchange, Processor failureHandler, boolean deadLetterChannel)
EventFactory
EventObject
when an Exchange
has failed
but was handled by the Camel error handlers such as an dead letter channel.
createExchangeFailureHandledEvent
in interface EventFactory
exchange
- the exchangefailureHandler
- the failure handler such as moving the message to a dead letter queuedeadLetterChannel
- whether it was a dead letter channel or not handling the failure
public EventObject createExchangeRedeliveryEvent(Exchange exchange, int attempt)
EventFactory
EventObject
when an Exchange
is about to be redelivered
createExchangeRedeliveryEvent
in interface EventFactory
exchange
- the exchangeattempt
- the current redelivery attempt (starts from 1)
public EventObject createExchangeSentEvent(Exchange exchange, Endpoint endpoint, long timeTaken)
EventFactory
EventObject
when an Exchange
has completely been sent to the endpoint.
createExchangeSentEvent
in interface EventFactory
exchange
- the exchangeendpoint
- the destinationtimeTaken
- time in millis taken
public EventObject createCamelContextSuspendingEvent(CamelContext context)
EventFactory
EventObject
for Camel is suspending.
createCamelContextSuspendingEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextSuspendedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been suspended successfully.
createCamelContextSuspendedEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextResumingEvent(CamelContext context)
EventFactory
EventObject
for Camel is resuming.
createCamelContextResumingEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextResumedEvent(CamelContext context)
EventFactory
EventObject
for Camel has been resumed successfully.
createCamelContextResumedEvent
in interface EventFactory
context
- camel context
public EventObject createCamelContextResumeFailureEvent(CamelContext context, Throwable cause)
EventFactory
EventObject
for Camel failing to resume
createCamelContextResumeFailureEvent
in interface EventFactory
context
- camel contextcause
- the cause exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |