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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user