Class GlassFish3xAsAdmin

    • Constructor Detail

      • GlassFish3xAsAdmin

        public GlassFish3xAsAdmin​(String home)
        Saves the GlassFish home directory.
        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.
      • initializeAsAdminJavaCall

        protected void initializeAsAdminJavaCall​(File home,
                                                 JvmLauncher java)
        Initialize the asadmin Java call.
        Parameters:
        home - GlassFish home.
        java - JVM launcher being initialized.