Interface ServerAdminMBean

  • All Known Implementing Classes:
    ServerAdmin

    public interface ServerAdminMBean
    MBean interface for exposing Server Adminstration functionalities
    • Method Detail

      • restart

        boolean restart()
                 throws Exception
        Forcefully restart this WSAS instance
        Returns:
        true - If successful, false otherwise
        Throws:
        Exception - If an error occurs while restarting
      • shutdown

        boolean shutdown()
                  throws Exception
        Forcefully shutdown this WSAS instance
        Returns:
        true - If successful, false otherwise
        Throws:
        Exception - If an error occurs while shutting down
      • restartGracefully

        boolean restartGracefully()
                           throws Exception
        Gracefully restart this WSAS instance. All client connections will be served before restarting the server
        Returns:
        true - If successful, false otherwise
        Throws:
        Exception - If an error occurs while restarting
      • shutdownGracefully

        boolean shutdownGracefully()
                            throws Exception
        Gracefully shutdown this WSAS instance All client connections will be served before shutting down the server
        Returns:
        true - If successful, false otherwise
        Throws:
        Exception - If an error occurs while shutting down
      • startMaintenance

        void startMaintenance()
                       throws Exception
        Method to switch a node to maintenance mode.

        Here is the sequence of events:

      • Client calls this method
      • The server stops accepting new requests/connections, but continues to stay alive so that old requests & connections can be served
      • Once all requests have been processed, the method returns
Throws:
Exception - If an error occurred while switching to maintenace mode