Class StartServerHelper


  • public class StartServerHelper
    extends Object
    Java does not allow multiple inheritance. Both StartDomainCommand and StartInstanceCommand have common code but they are already in a different hierarchy of classes. The first common baseclass is too far away -- e.g. no "launcher" variable, etc. Instead -- put common code in here and call it as common utilities This class is designed to be thread-safe and IMMUTABLE
    Author:
    bnevins
    • Constructor Detail

      • StartServerHelper

        public StartServerHelper​(Logger logger,
                                 boolean terse,
                                 com.sun.enterprise.util.io.ServerDirs serverDirs,
                                 com.sun.enterprise.admin.launcher.GFLauncher launcher,
                                 String masterPassword)
      • StartServerHelper

        public StartServerHelper​(Logger logger,
                                 boolean terse,
                                 com.sun.enterprise.util.io.ServerDirs serverDirs,
                                 com.sun.enterprise.admin.launcher.GFLauncher launcher,
                                 String masterPassword,
                                 boolean debug)
    • Method Detail

      • waitForServer

        public void waitForServer()
                           throws org.glassfish.api.admin.CommandException
        Throws:
        org.glassfish.api.admin.CommandException
      • prepareForLaunch

        public boolean prepareForLaunch()
                                 throws org.glassfish.api.admin.CommandException
        Run a series of commands to prepare for a launch.
        Returns:
        false if there was a problem.
        Throws:
        org.glassfish.api.admin.CommandException
      • report

        public void report()