Class AbstractWildFlySwarmInstalledLocalContainer

    • Method Detail

      • getName

        public String getName()
        Returns:
        the human readable name of the Container (ex: "Resin 3.x", "JBoss 3.0.8", etc).
      • getVersion

        protected abstract String getVersion()
        Container version.
        Returns:
        version string.
      • stopInternal

        protected void stopInternal()
                             throws Exception
        Installed and Embedded containers do not have the same signature for their doStop method. Thus we need to abstract it.
        Overrides:
        stopInternal in class AbstractInstalledLocalContainer
        Throws:
        Exception - if any error is raised during the container stop
      • isHollowSwarm

        protected boolean isHollowSwarm()
        Tells whether WildFly Swarm operates in Hollow Swarm mode.
        Returns:
        true if WildFly Swarm operates in Hollow Swarm mode, otherwise false.
      • addDeployables

        protected void addDeployables()
        Adds deployments on startup arg line. Only available in the Hollow Swarm mode.
      • waitForCompletion

        protected void waitForCompletion​(boolean waitForStarting)
                                  throws InterruptedException
        Ping the WAR CPC to verify if the container is started or stopped.
        Overrides:
        waitForCompletion in class AbstractLocalContainer
        Parameters:
        waitForStarting - if true then wait for container start, if false wait for container stop
        Throws:
        InterruptedException - if the thread sleep is interrupted