com.twitter.common.application.modules
Interface LifecycleModule.ServiceRunner

All Known Implementing Classes:
HttpModule.HttpServerLauncher
Enclosing class:
LifecycleModule

public static interface LifecycleModule.ServiceRunner

Responsible for starting and stopping a local service.


Method Summary
 LocalServiceRegistry.LocalService launch()
          Launches the local service.
 

Method Detail

launch

LocalServiceRegistry.LocalService launch()
                                         throws LifecycleModule.LaunchException
Launches the local service.

Returns:
Information about the launched service.
Throws:
LifecycleModule.LaunchException - If the service failed to launch.