Interface ServerGroupManager

  • All Known Subinterfaces:
    DomainManager
    All Known Implementing Classes:
    AbstractDomainManager

    public interface ServerGroupManager
    A manager that allows control of the server groups lifecycle. Note that if this is not associated with a manual mode container operations will fail.
    Author:
    James R. Perkins
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void reloadServers​(String groupName)
      Reloads all the servers associated with this server group.
      void restartServers​(String groupName)
      Restarts all the servers associated with this server group.
      void resumeServers​(String groupName)
      Resumes all the previously suspended servers associated with this server group.
      void startServers​(String groupName)
      Starts all the servers associated with this server group.
      void stopServers​(String groupName)
      Stops all the servers associated with this server group.
      void suspendServers​(String groupName, int timeout)
      Suspends all the servers associated with this server group.
    • Method Detail

      • reloadServers

        void reloadServers​(String groupName)
        Reloads all the servers associated with this server group.
        Parameters:
        groupName - the name of the server group
        Throws:
        IllegalStateException - if lifecycle operations are not allowed
        RuntimeException - if the reload operation fails
      • restartServers

        void restartServers​(String groupName)
        Restarts all the servers associated with this server group.
        Parameters:
        groupName - the name of the server group
        Throws:
        IllegalStateException - if lifecycle operations are not allowed
        RuntimeException - if the restart operation fails
      • resumeServers

        void resumeServers​(String groupName)
        Resumes all the previously suspended servers associated with this server group.
        Parameters:
        groupName - the name of the server group
        Throws:
        IllegalStateException - if lifecycle operations are not allowed
        RuntimeException - if the resume operation fails
      • startServers

        void startServers​(String groupName)
        Starts all the servers associated with this server group.
        Parameters:
        groupName - the name of the server group
        Throws:
        IllegalStateException - if lifecycle operations are not allowed
        RuntimeException - if the start operation fails
      • stopServers

        void stopServers​(String groupName)
        Stops all the servers associated with this server group.
        Parameters:
        groupName - the name of the server group
        Throws:
        IllegalStateException - if lifecycle operations are not allowed
        RuntimeException - if the stop operation fails
      • suspendServers

        void suspendServers​(String groupName,
                            int timeout)
        Suspends all the servers associated with this server group.
        Parameters:
        groupName - the name of the server group
        timeout - the timeout in seconds. A value of 0 returns immediately and a value of -1 will wait indefinitely
        Throws:
        IllegalStateException - if lifecycle operations are not allowed
        RuntimeException - if the suspend operation fails