org.gcube.common.ghn.service.handlers.lifetime
Class ClientContainerHandler

java.lang.Object
  extended by org.gcube.common.ghn.service.handlers.AbstractHandler<LifetimeHandler>
      extended by org.gcube.common.ghn.service.handlers.LifetimeHandler
          extended by org.gcube.common.ghn.service.handlers.lifetime.ClientContainerHandler
All Implemented Interfaces:
ServiceHandler<LifetimeHandler>

public class ClientContainerHandler
extends LifetimeHandler

A LifetimeHandler that starts and stops a ClientContainer

Author:
Fabio Simeoni

Constructor Summary
ClientContainerHandler()
           
 
Method Summary
 String name()
          Returns the name of the handler.
 void onStart(Pipeline<LifetimeHandler> pipeline, StartServiceEvent e)
          Invoked when the container starts a managed service.
 void onStop(Pipeline<LifetimeHandler> pipeline, StopServiceEvent e)
          Invoked when the container stops a managed service.
 
Methods inherited from class org.gcube.common.ghn.service.handlers.LifetimeHandler
onEvent
 
Methods inherited from class org.gcube.common.ghn.service.handlers.AbstractHandler
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientContainerHandler

public ClientContainerHandler()
Method Detail

name

public String name()
Description copied from interface: ServiceHandler
Returns the name of the handler.

Returns:
the name

onStart

public void onStart(Pipeline<LifetimeHandler> pipeline,
                    StartServiceEvent e)
Description copied from class: LifetimeHandler
Invoked when the container starts a managed service.

Overrides:
onStart in class LifetimeHandler
Parameters:
pipeline - the pipeline in which this handler is registered
e - the event

onStop

public void onStop(Pipeline<LifetimeHandler> pipeline,
                   StopServiceEvent e)
Description copied from class: LifetimeHandler
Invoked when the container stops a managed service.

Overrides:
onStop in class LifetimeHandler
Parameters:
pipeline - the pipeline in which this handler is registered
e - the stop event


Copyright © 2012. All Rights Reserved.