Class GlassFish2xAsAdmin


  • public class GlassFish2xAsAdmin
    extends AbstractAsAdmin
    Implements an GlassFish 2.x AsAdmin command.
    • Constructor Detail

      • GlassFish2xAsAdmin

        public GlassFish2xAsAdmin​(String home)
        Saves the GlassFish home directory and the timeout.
        Parameters:
        home - GlassFish home directory.
    • Method Detail

      • invokeAsAdmin

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