Call uptime in a loop until the uptime number is less than
the original uptime
- Author:
- bnevins, Bill Shannon
| Fields inherited from class com.sun.enterprise.admin.cli.CLICommand |
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING |
|
Method Summary |
protected int |
dasNotRunning(boolean local)
If the server isn't running, try to start it. |
protected void |
doCommand()
Execute the restart-domain command. |
| Methods inherited from class com.sun.enterprise.admin.cli.LocalServerCommand |
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getMasterPasswordFile, getPrevPid, getServerDirs, getUptime, isRestartable, isRunning, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart |
| Methods inherited from class com.sun.enterprise.admin.cli.CLICommand |
checkHelp, execute, getBooleanOption, getCommand, getManPage, getName, getOperandModel, getOption, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, toString, usageOptions |
debug
private Boolean debug
habitat
private org.jvnet.hk2.component.Habitat habitat
strings
private static final LocalStringsImpl strings
RestartDomainCommand
public RestartDomainCommand()
doCommand
protected void doCommand()
throws CommandException
- Execute the restart-domain command.
- Overrides:
doCommand in class StopDomainCommand
- Throws:
CommandException
dasNotRunning
protected int dasNotRunning(boolean local)
throws CommandException
- If the server isn't running, try to start it.
- Overrides:
dasNotRunning in class StopDomainCommand
- Throws:
CommandException
Copyright © 2012 GlassFish Community. All Rights Reserved.