@Service(name="start-local-instance") @ExecuteOn(value=DAS) @PerLookup public class StartLocalInstanceCommand extends SynchronizeInstanceCommand implements StartServerCommand
synccheckOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRootDEFAULT_MASTER_PASSWORDargv, ASADMIN, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, lineReader, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, terminal, 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.
|
synchronizeInstancegetDasProperties, getInstallRootPath, getInstanceDirs, getInstanceName, getMasterPasswordFile, getNodeInstallDir, getNodeProperties, getProductRootPath, initInstance, isDirectory, setDasDefaults, setInstanceName, setServerDirs, validateDasOptions, whackFilesystemcheckForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestartbuildLineReader, buildTerminal, checkHelp, closeTerminal, execute, 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, usageOptionspublic RuntimeType getType()
getType in interface StartServerCommandpublic void createLauncher()
throws GFLauncherException,
MiniXmlParserException
createLauncher in interface StartServerCommandGFLauncherException - if there is an error creating the launcherMiniXmlParserException - if there is an error reading the domain.xmlpublic List<String> getLauncherArgs()
getLauncherArgs in interface StartServerCommandprotected boolean mkdirs(File f)
LocalInstanceCommandmkdirs in class LocalInstanceCommandf - the directory to createprotected void validate()
throws CommandException
CLICommandvalidate in class SynchronizeInstanceCommandCommandException - if execution of the command failsCommandValidationException - if there's something wrong
with the options or argumentsprotected int executeCommand()
throws CommandException
CLICommandexecuteCommand in class SynchronizeInstanceCommandCommandException - if execution of the command failsCommandValidationException - if there's something wrong
with the options or argumentspublic String toString()
toString in class CLICommandCopyright © 2019. All rights reserved.