Class AbstractDomainManager

    • Constructor Detail

      • AbstractDomainManager

        protected AbstractDomainManager​(String containerName,
                                        boolean lifecycleControlAllowed)
    • Method Detail

      • getServers

        public Set<ServerDescription> getServers​(String hostName)
        Description copied from interface: DomainManager
        Returns all the servers on the host.
        Specified by:
        getServers in interface DomainManager
        Parameters:
        hostName - the host to get the serves for
        Returns:
        the servers associated with the host
      • startServer

        public void startServer​(String hostName,
                                String serverName)
        Description copied from interface: ServerManager
        Starts the server.
        Specified by:
        startServer in interface ServerManager
        Parameters:
        hostName - the name of the host the server is on
        serverName - the name of the server
      • stopServer

        public void stopServer​(String hostName,
                               String serverName)
        Description copied from interface: ServerManager
        Stops the server.
        Specified by:
        stopServer in interface ServerManager
        Parameters:
        hostName - the name of the host the server is on
        serverName - the name of the server
      • isServerStarted

        public boolean isServerStarted​(String hostName,
                                       String serverName)
        Description copied from interface: ServerManager
        Checks the status of the server and returns true if the server is fully started.
        Specified by:
        isServerStarted in interface ServerManager
        Parameters:
        hostName - the name of the host the server is on
        serverName - the name of the server
        Returns:
        true if the server is fully started, otherwise false
      • restartServer

        public void restartServer​(String hostName,
                                  String serverName)
        Description copied from interface: ServerManager
        Restarts the server.
        Specified by:
        restartServer in interface ServerManager
        Parameters:
        hostName - the name of the host the server is on
        serverName - the name of the server
      • resumeServer

        public void resumeServer​(String hostName,
                                 String serverName)
        Description copied from interface: ServerManager
        Resumes this server after being suspended.
        Specified by:
        resumeServer in interface ServerManager
        Parameters:
        hostName - the name of the host the server is on
        serverName - the name of the server
      • suspendServer

        public void suspendServer​(String hostName,
                                  String serverName,
                                  int timeout)
        Description copied from interface: ServerManager
        Suspends this server.
        Specified by:
        suspendServer in interface ServerManager
        Parameters:
        hostName - the name of the host the server is on
        serverName - the name of the server
        timeout - the timeout for the suspend
      • getServerGroupName

        public String getServerGroupName​(String hostName,
                                         String serverName)
        Description copied from interface: ServerManager
        The group name this server is associated with this server.
        Specified by:
        getServerGroupName in interface ServerManager
        Parameters:
        hostName - the name of the host the server is on
        serverName - the name of the server
        Returns:
        the group name
      • reloadServers

        public void reloadServers​(String name)
        Description copied from interface: ServerGroupManager
        Reloads all the servers associated with this server group.
        Specified by:
        reloadServers in interface ServerGroupManager
        Parameters:
        name - the name of the server group
      • restartServers

        public void restartServers​(String name)
        Description copied from interface: ServerGroupManager
        Restarts all the servers associated with this server group.
        Specified by:
        restartServers in interface ServerGroupManager
        Parameters:
        name - the name of the server group
      • resumeServers

        public void resumeServers​(String name)
        Description copied from interface: ServerGroupManager
        Resumes all the previously suspended servers associated with this server group.
        Specified by:
        resumeServers in interface ServerGroupManager
        Parameters:
        name - the name of the server group
      • startServers

        public void startServers​(String name)
        Description copied from interface: ServerGroupManager
        Starts all the servers associated with this server group.
        Specified by:
        startServers in interface ServerGroupManager
        Parameters:
        name - the name of the server group
      • stopServers

        public void stopServers​(String name)
        Description copied from interface: ServerGroupManager
        Stops all the servers associated with this server group.
        Specified by:
        stopServers in interface ServerGroupManager
        Parameters:
        name - the name of the server group
      • suspendServers

        public void suspendServers​(String name,
                                   int timeout)
        Description copied from interface: ServerGroupManager
        Suspends all the servers associated with this server group.
        Specified by:
        suspendServers in interface ServerGroupManager
        Parameters:
        name - 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
      • getModelControllerClient

        protected abstract org.jboss.as.controller.client.ModelControllerClient getModelControllerClient()
        The client used to communicate with the server.
        Returns:
        the client