Package org.wso2.carbon.utils
Interface Controllable
public interface Controllable
Any Server implementaion which should support restarting or shutting down
should implement this interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidrestart()Forcefully restart the servervoidGracefully restart the server after serving all requests currently being processedvoidshutdown()Forcefully shutdown the servervoidGracefully shutdown the server after serving all requests currently being processed
-
Method Details
-
shutdown
Forcefully shutdown the server- Throws:
ServerException- If an error occurs during shutting down
-
shutdownGracefully
Gracefully shutdown the server after serving all requests currently being processed- Throws:
ServerException- If an error occurs during shutting down
-
restart
Forcefully restart the server- Throws:
ServerException- If an error occurs during restarting
-
restartGracefully
Gracefully restart the server after serving all requests currently being processed- Throws:
ServerException- If an error occurs during restarting
-