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

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.StopLocalInstanceCommand
                  extended by com.sun.enterprise.admin.cli.cluster.RestartLocalInstanceCommand
All Implemented Interfaces:
org.jvnet.hk2.component.PostConstruct

@Service(name="restart-local-instance")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class RestartLocalInstanceCommand
extends StopLocalInstanceCommand

Author:
Byron Nevins

Field Summary
 
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
RestartLocalInstanceCommand()
           
 
Method Summary
protected  int doRemoteCommand()
          Execute the actual stop-domain command.
protected  int instanceNotRunning()
          Print message and return exit code when we detect that the DAS is not running.
 
Methods inherited from class com.sun.enterprise.admin.cli.cluster.StopLocalInstanceCommand
executeCommand, initInstance, mkdirs, validate
 
Methods inherited from class com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
getDasProperties, getInstallRootPath, getInstanceDirs, getMasterPasswordFile, getNodeInstallDir, getProductRootPath, 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, toString, usageOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestartLocalInstanceCommand

public RestartLocalInstanceCommand()
Method Detail

doRemoteCommand

protected final int doRemoteCommand()
                             throws CommandException
Description copied from class: StopLocalInstanceCommand
Execute the actual stop-domain command.

Overrides:
doRemoteCommand in class StopLocalInstanceCommand
Throws:
CommandException

instanceNotRunning

protected int instanceNotRunning()
                          throws CommandException
Description copied from class: StopLocalInstanceCommand
Print message and return exit code when we detect that the DAS is not running.

Overrides:
instanceNotRunning in class StopLocalInstanceCommand
Throws:
CommandException


Copyright © 2012 GlassFish Community. All Rights Reserved.