1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-08 08:23:11 +00:00

Implemented service dependencies

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-17 19:53:08 -03:00
parent 31cc1a97e3
commit 8b5a601ea4
25 changed files with 338 additions and 145 deletions

View File

@@ -46,4 +46,19 @@ public interface Service {
* if an error occurred
*/
void restart() throws ServiceException;
/**
* @return true if service is running
*/
boolean isStarted();
/**
* @return false if service is not running
*/
boolean isStopped();
/**
* @return the other services that the service depends on
*/
Class<? extends Service>[] getDependencies();
}