org.gcube.common.ghn.service.handlers
Class LifetimeHandler
java.lang.Object
org.gcube.common.ghn.service.handlers.AbstractHandler<LifetimeHandler>
org.gcube.common.ghn.service.handlers.LifetimeHandler
- All Implemented Interfaces:
- ServiceHandler<LifetimeHandler>
- Direct Known Subclasses:
- LifetimeHandlerAdapter.UnavailableHandler, PublishingHandler
public abstract class LifetimeHandler
- extends AbstractHandler<LifetimeHandler>
A Handler of LifetimeEvents.
The handler participates in a Pipeline of other handlers registered for notification of the same events.
After processing the event, it may or may not propagate the event to the handlers further down in the Pipeline
Pipeline.forward(ServiceEvent).
- Author:
- Fabio Simeoni
- See Also:
LifetimeEvent,
Pipeline
| Methods inherited from interface org.gcube.common.ghn.service.handlers.ServiceHandler |
name |
LifetimeHandler
public LifetimeHandler()
onStart
public void onStart(Pipeline<LifetimeHandler> pipeline,
StartServiceEvent e)
- Invoked when the container starts a managed app.
- Parameters:
pipeline - the pipeline in which this handler is registerede - the event
onStop
public void onStop(Pipeline<LifetimeHandler> pipeline,
StopServiceEvent e)
- Invoked when the container stops a managed app.
- Parameters:
pipeline - the pipeline in which this handler is registerede - the stop event
onEvent
public void onEvent(Pipeline<LifetimeHandler> pipeline,
ServiceEvent<LifetimeHandler> e)
- Description copied from interface:
ServiceHandler
- Processes a given event.
- Parameters:
pipeline - the pipeline in which the handler is registered.e - the event
Copyright © 2013. All Rights Reserved.