com.sun.enterprise.admin.cli.cluster
Class StartLocalInstanceCommand

java.lang.Object
  extended by com.sun.enterprise.admin.cli.CLICommand
      extended by com.sun.enterprise.admin.cli.LocalServerCommand
          extended by com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
              extended by com.sun.enterprise.admin.cli.cluster.SynchronizeInstanceCommand
                  extended by 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.


Field Summary
 
Fields inherited from class com.sun.enterprise.admin.cli.cluster.SynchronizeInstanceCommand
sync
 
Fields inherited from class com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
checkOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRoot
 
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
 
Constructor Summary
StartLocalInstanceCommand()
           
 
Method Summary
 void createLauncher()
          Create a launcher for the instance specified by arguments to this command.
protected  int executeCommand()
           
 RuntimeType getType()
           
protected  boolean mkdirs(java.io.File f)
          Override this method if your class does NOT want to create directories
 java.lang.String toString()
           
protected  void validate()
           
 
Methods inherited from class com.sun.enterprise.admin.cli.cluster.SynchronizeInstanceCommand
synchronizeInstance
 
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
 

Constructor Detail

StartLocalInstanceCommand

public StartLocalInstanceCommand()
Method Detail

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.