Package org.wso2.carbon.utils
Interface Controllable
-
public interface ControllableAny Server implementaion which should support restarting or shutting down should implement this interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrestart()Forcefully restart the servervoidrestartGracefully()Gracefully restart the server after serving all requests currently being processedvoidshutdown()Forcefully shutdown the servervoidshutdownGracefully()Gracefully shutdown the server after serving all requests currently being processed
-
-
-
Method Detail
-
shutdown
void shutdown() throws ServerExceptionForcefully shutdown the server- Throws:
ServerException- If an error occurs during shutting down
-
shutdownGracefully
void shutdownGracefully() throws ServerExceptionGracefully shutdown the server after serving all requests currently being processed- Throws:
ServerException- If an error occurs during shutting down
-
restart
void restart() throws ServerExceptionForcefully restart the server- Throws:
ServerException- If an error occurs during restarting
-
restartGracefully
void restartGracefully() throws ServerExceptionGracefully restart the server after serving all requests currently being processed- Throws:
ServerException- If an error occurs during restarting
-
-