Class AbstractGlassFishInstalledLocalContainer

    • Constructor Detail

      • AbstractGlassFishInstalledLocalContainer

        public AbstractGlassFishInstalledLocalContainer​(LocalConfiguration localConfiguration)
        Calls parent constructor, which saves the configuration.
        Parameters:
        localConfiguration - Configuration.
    • Method Detail

      • invokeAsAdmin

        public int invokeAsAdmin​(boolean async,
                                 List<String> args)
        Invokes asadmin.
        Parameters:
        async - Asynchronous invoke?
        args - Invoke arguments.
        Returns:
        The exit code from asadmin, always 0 when using asynchronous invocation.
      • invokeAsAdmin

        public int invokeAsAdmin​(boolean async,
                                 String... args)
        Invokes asadmin.
        Parameters:
        async - Asynchronous invoke?
        args - Invoke arguments.
        Returns:
        The exit code from asadmin, always 0 when using asynchronous invocation.
      • invokeAsAdmin

        public int invokeAsAdmin​(boolean async,
                                 JvmLauncher java,
                                 String... args)
        Invokes asadmin using a Java container.
        Parameters:
        async - Asynchronous invoke?
        java - JVM launcher.
        args - Invoke arguments.
        Returns:
        The exit code from asadmin, always 0 when using asynchronous invocation.
      • getAsAdmin

        protected abstract AbstractAsAdmin getAsAdmin()
        Returns the asadmin for the GlassFish server.
        Returns:
        AsAdmin for the GlassFish server.
      • startInternal

        protected void startInternal()
                              throws Exception
        Installed and Embedded containers do not have the same signature for their doStart method. Thus we need to abstract it.. CARGO-1255: Remove the JVM arguments from the asadmin, else debugging and potentially many other functions do work.
        Overrides:
        startInternal in class AbstractInstalledLocalContainer
        Throws:
        Exception - if any error is raised during the container start
      • 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.. CARGO-1255: Remove the JVM arguments from the asadmin, else debugging and potentially many other functions do work.
        Overrides:
        stopInternal in class AbstractInstalledLocalContainer
        Throws:
        Exception - if any error is raised during the container stop