Interface ServerManagerViewMBean

  • All Known Implementing Classes:
    ServerManagerView

    public interface ServerManagerViewMBean
    A simple MBean for managing the Synapse Server.
    • Method Detail

      • getServerState

        String getServerState()
        Shows the current state of the server.
        Returns:
        the current state of the server
      • start

        void start()
            throws Exception
        Starts the Server.
        Throws:
        Exception - if an error occurs
      • stop

        void stop()
           throws Exception
        Stops the Server without shutting it down.
        Throws:
        Exception - if an error occurs
      • restart

        void restart()
              throws Exception
        Restart the Server.
        Throws:
        Exception - if an error occurs
      • shutdown

        void shutdown()
               throws Exception
        Shutdown the Server.
        Throws:
        Exception - if an error occurs
      • stopGracefully

        void stopGracefully​(long waitSeconds)
                     throws Exception
        Stops the Server gracefully. This includes putting the server in maintenance and stopping it.
        Parameters:
        waitSeconds - number of seconds to wait for a graceful stop before initiating a hard stop
        Throws:
        Exception - if an error occurs
      • startMaintenance

        void startMaintenance()
                       throws Exception
        Puts the server into the maintenance mode.
        Throws:
        Exception - if an error occurs
      • endMaintenance

        void endMaintenance()
                     throws Exception
        Finishes the maintenance and put the server online.
        Throws:
        Exception - if an error occurs