Class StartServerHelper
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.cli.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 Summary
Constructors Constructor Description StartServerHelper(Logger logger0, boolean terse0, ServerDirs serverDirs0, GFLauncher launcher0, String masterPassword0)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
prepareForLaunch()
Run a series of commands to prepare for a launch.void
report()
void
waitForServer()
void
waitForServer(long timeout, TimeUnit unit)
-
-
-
Constructor Detail
-
StartServerHelper
public StartServerHelper(Logger logger0, boolean terse0, ServerDirs serverDirs0, GFLauncher launcher0, String masterPassword0)
-
-
Method Detail
-
waitForServer
public void waitForServer() throws CommandException
- Throws:
CommandException
-
waitForServer
public void waitForServer(long timeout, TimeUnit unit) throws CommandException
- Throws:
CommandException
-
prepareForLaunch
public boolean prepareForLaunch() throws CommandException
Run a series of commands to prepare for a launch.- Returns:
- false if there was a problem.
- Throws:
CommandException
- If there was a timeout waiting for the parent to die or admin port to free up
-
report
public void report()
-
-