@Service(name="start-local-instance") @ExecuteOn(value=DAS) @PerLookup public class StartLocalInstanceCommand extends SynchronizeInstanceCommand implements StartServerCommand
sync
checkOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRoot
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING
Constructor and Description |
---|
StartLocalInstanceCommand() |
Modifier and Type | Method and Description |
---|---|
void |
createLauncher()
Create a launcher for the instance specified by arguments to
this command.
|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
List<String> |
getLauncherArgs() |
RuntimeType |
getType() |
protected boolean |
mkdirs(File f)
Override this method if your class does NOT want to create directories
|
String |
toString() |
protected void |
validate()
The validate method can be used by a subclass to validate
that the type and quantity of parameters and operands matches
the requirements for this command.
|
synchronizeInstance
getDasProperties, getInstallRootPath, getInstanceDirs, getInstanceName, getMasterPasswordFile, getNodeInstallDir, getProductRootPath, initInstance, isDirectory, setDasDefaults, setInstanceName, setServerDirs, validateDasOptions, whackFilesystem
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart
checkHelp, execute, expandManPage, getBooleanOption, getBriefCommandUsage, getCommand, getCommand, getCommandScope, getCommandUsage, getManPage, getName, getOperandModel, getOption, getOptions, getPassword, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prepare, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, usageOptions
public List<String> getLauncherArgs()
getLauncherArgs
in interface StartServerCommand
public RuntimeType getType()
getType
in interface StartServerCommand
protected boolean mkdirs(File f)
LocalInstanceCommand
mkdirs
in class LocalInstanceCommand
f
- the directory to createprotected void validate() throws CommandException
CLICommand
validate
in class SynchronizeInstanceCommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected int executeCommand() throws CommandException
CLICommand
executeCommand
in class SynchronizeInstanceCommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentspublic void createLauncher() throws GFLauncherException, MiniXmlParserException
createLauncher
in interface StartServerCommand
GFLauncherException
MiniXmlParserException
public String toString()
toString
in class CLICommand
Copyright © 2018. All rights reserved.