Interface DomainContainerController

  • All Superinterfaces:
    org.jboss.arquillian.container.test.api.ContainerController
    All Known Implementing Classes:
    ClientDomainContainerController, InContainerDomainContainerController

    public interface DomainContainerController
    extends org.jboss.arquillian.container.test.api.ContainerController
    A container controller for domains which allows hosts and server groups to be queried. If the container is in manual mode the hosts and server groups lifecycle can also be handled.

    Note that to access any hosts or server groups the container must be started.

    Author:
    James R. Perkins
    • Method Detail

      • reloadServers

        void reloadServers​(String containerQualifier,
                           String groupName)
        Reloads all the servers associated with this server group.
        Parameters:
        containerQualifier - the name of the container
        groupName - the name of the server group
      • restartServers

        void restartServers​(String containerQualifier,
                            String groupName)
        Restarts all the servers associated with this server group.
        Parameters:
        containerQualifier - the name of the container
        groupName - the name of the server group
      • resumeServers

        void resumeServers​(String containerQualifier,
                           String groupName)
        Resumes all the previously suspended servers associated with this server group.
        Parameters:
        containerQualifier - the name of the container
        groupName - the name of the server group
      • startServers

        void startServers​(String containerQualifier,
                          String groupName)
        Starts all the servers associated with this server group.
        Parameters:
        containerQualifier - the name of the container
        groupName - the name of the server group
      • stopServers

        void stopServers​(String containerQualifier,
                         String groupName)
        Stops all the servers associated with this server group.
        Parameters:
        containerQualifier - the name of the container
        groupName - the name of the server group
      • suspendServers

        void suspendServers​(String containerQualifier,
                            String groupName,
                            int timeout)
        Suspends all the servers associated with this server group.
        Parameters:
        containerQualifier - the name of the container
        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
      • startServer

        void startServer​(String containerQualifier,
                         String hostName,
                         String serverName)
        Starts the server.
        Parameters:
        containerQualifier - the name of the container
        hostName - the name of the host the server is associated with
        serverName - the name of the server
      • stopServer

        void stopServer​(String containerQualifier,
                        String hostName,
                        String serverName)
        Stops the server.
        Parameters:
        containerQualifier - the name of the container
        hostName - the name of the host the server is associated with
        serverName - the name of the server
      • isServerStarted

        boolean isServerStarted​(String containerQualifier,
                                String hostName,
                                String serverName)
        Checks the status of the server and returns true if the server is fully started.
        Parameters:
        containerQualifier - the name of the container
        hostName - the name of the host the server is associated with
        serverName - the name of the server
        Returns:
        true if the server is fully started, otherwise false
      • restartServer

        void restartServer​(String containerQualifier,
                           String hostName,
                           String serverName)
        Restarts the server.
        Parameters:
        containerQualifier - the name of the container
        hostName - the name of the host the server is associated with
        serverName - the name of the server
      • resumeServer

        void resumeServer​(String containerQualifier,
                          String hostName,
                          String serverName)
        Resumes this server after being suspended.
        Parameters:
        containerQualifier - the name of the container
        hostName - the name of the host the server is associated with
        serverName - the name of the server
      • suspendServer

        void suspendServer​(String containerQualifier,
                           String hostName,
                           String serverName,
                           int timeout)
        Suspends this server.
        Parameters:
        containerQualifier - the name of the container
        hostName - the name of the host the server is associated with
        serverName - the name of the server
        timeout - the timeout for the suspend