Class Jetty6xInstalledLocalContainer

    • Constructor Detail

      • Jetty6xInstalledLocalContainer

        public Jetty6xInstalledLocalContainer​(LocalConfiguration configuration)
        Jetty6xInstalledLocalContainer Constructor.
        Parameters:
        configuration - The configuration associated with the container
    • Method Detail

      • getId

        public String getId()
        Returns:
        the short name of the container. Note: this is not a unique id. It is simply the name in a computer-usable format.
      • getName

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

        protected String getVersion()
        Returns the version of the Jetty installation.
        Returns:
        The Jetty version
      • invoke

        protected void invoke​(JvmLauncher java,
                              boolean isGettingStarted)
                       throws Exception
        Parameters:
        java - the predefined JVM launcher to use to start the container, passed by Cargo
        isGettingStarted - if true then start the container, stop it otherwise
        Throws:
        Exception - in case of startup or shutdown error
      • getStartArguments

        protected String[] getStartArguments​(String classpath)
        Returns the arguments to pass to the Jetty start command.
        Parameters:
        classpath - Jetty classpath (exludes tools.jar).
        Returns:
        Arguments to add to the Jetty start.jar command.
      • getStopArguments

        protected String[] getStopArguments()
        Returns:
        Arguments to add to the Jetty start.jar command.
      • getJettyPortPropertyName

        protected String getJettyPortPropertyName()
        Returns:
        The Jetty property name for HTTP port.