org.locomotive.directory
Interface LocomotiveService

All Known Implementing Classes:
ObjectPool, Router, ServiceList, DBConnectionPool, Log, ThreadPoolManager

public interface LocomotiveService

Interface implemented by components acting as services in the locomotive system. If a component resolved by "NameService" implements this interface, the startService method will be called after initializing the component.

Version:
$Id: LocomotiveService.java,v 1.2 1999/05/05 10:19:32 gunnar Exp $
Author:
Gunnar Rønning (gunnar@candleweb.no).

Method Summary
 boolean isRunning()
          Return true if this service is running, false otherwise.
 void startService()
          Start the service.
 void stopService()
          Stop the service.
 

Method Detail

startService

public void startService()
                  throws ServiceException
Start the service.

stopService

public void stopService()
                 throws ServiceException
Stop the service.

isRunning

public boolean isRunning()
Return true if this service is running, false otherwise.