com.sun.enterprise.admin.cli.cluster
Class StartLocalInstanceCommand
java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.cli.LocalServerCommand
com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
com.sun.enterprise.admin.cli.cluster.SynchronizeInstanceCommand
com.sun.enterprise.admin.cli.cluster.StartLocalInstanceCommand
- All Implemented Interfaces:
- StartServerCommand, org.jvnet.hk2.component.PostConstruct
@Service(name="start-local-instance")
@ExecuteOn(value=DAS)
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class StartLocalInstanceCommand
- extends SynchronizeInstanceCommand
- implements StartServerCommand
Start a local server instance.
| 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 |
| Methods inherited from class com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand |
getDasProperties, getInstallRootPath, getInstanceDirs, getMasterPasswordFile, getNodeInstallDir, getProductRootPath, initInstance, isDirectory, setDasDefaults, setServerDirs, validateDasOptions, whackFilesystem |
| Methods inherited from class com.sun.enterprise.admin.cli.LocalServerCommand |
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, 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, prepare, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, usageOptions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StartLocalInstanceCommand
public StartLocalInstanceCommand()
getType
public RuntimeType getType()
- Specified by:
getType in interface StartServerCommand
mkdirs
protected boolean mkdirs(java.io.File f)
- Description copied from class:
LocalInstanceCommand
- Override this method if your class does NOT want to create directories
- Overrides:
mkdirs in class LocalInstanceCommand
- Parameters:
f - the directory to create
validate
protected void validate()
throws CommandException
- Overrides:
validate in class SynchronizeInstanceCommand
- Throws:
CommandException
executeCommand
protected int executeCommand()
throws CommandException
- Overrides:
executeCommand in class SynchronizeInstanceCommand
- Throws:
CommandException
createLauncher
public void createLauncher()
throws GFLauncherException,
MiniXmlParserException
- Create a launcher for the instance specified by arguments to
this command. The launcher is for a server of the specified type.
Sets the launcher and info fields.
- Specified by:
createLauncher in interface StartServerCommand
- Throws:
GFLauncherException
MiniXmlParserException
toString
public java.lang.String toString()
- Overrides:
toString in class CLICommand
Copyright © 2012 GlassFish Community. All Rights Reserved.