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
 void restart()
          Forcefully restart the server
 void restartGracefully()
          Gracefully restart the server after serving all requests currently being processed
 void shutdown()
          Forcefully shutdown the server
 void shutdownGracefully()
          Gracefully shutdown the server after serving all requests currently being processed
 

Method Detail

shutdown

void shutdown()
              throws ServerException
Forcefully shutdown the server

Throws:
ServerException - If an error occurs during shutting down

shutdownGracefully

void shutdownGracefully()
                        throws ServerException
Gracefully shutdown the server after serving all requests currently being processed

Throws:
ServerException - If an error occurs during shutting down

restart

void restart()
             throws ServerException
Forcefully restart the server

Throws:
ServerException - If an error occurs during restarting

restartGracefully

void restartGracefully()
                       throws ServerException
Gracefully restart the server after serving all requests currently being processed

Throws:
ServerException - If an error occurs during restarting


Copyright © 2014 WSO2 Inc. All rights reserved.