Class LocalDomainCommand
java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
- Direct Known Subclasses:
ChangeAdminPasswordCommand,ChangeMasterPasswordCommandDAS,DeleteDomainCommand,ListDomainsCommand,StartDomainCommand,StopDomainCommand,VerifyDomainXmlCommand
A class that's supposed to capture all the behavior common to operation on a "local" domain. It's supposed to act as
the abstract base class that provides more functionality to the commands that operate on a local domain.
- Author:
- केदाinvalid input: 'र' (km@dev.java.net), Byron Nevins (bnevins@dev.java.net)
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Stringprotected final Fileprotected final Fileprotected voidprotected booleanprotected voidprepare()protected final voidsetDomainName(String name) We need this so that @Param values for domainname can be remembered later when the ServerDirs object is made.protected voidvalidate()Methods inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getMasterPasswordFile, getServerDirs, getServerPid, getUptime, isLocal, isRestartable, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestartMethods inherited from class com.sun.enterprise.admin.cli.CLICommand
checkHelp, checkSanity, execute, executeCommand, expandManPage, getBooleanOption, getBriefCommandUsage, getCommand, getCommand, getCommandScope, getCommandUsage, getManPage, getName, getOperandModel, getOption, getOptions, getPassword, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prevalidate, processProgramOptions, quote, readPassword, setCommandScope, toString, usageOptions
-
Field Details
-
domainDirParam
-
-
Constructor Details
-
LocalDomainCommand
public LocalDomainCommand()
-
-
Method Details
-
prepare
protected void prepare() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException- Overrides:
preparein classcom.sun.enterprise.admin.cli.CLICommand- Throws:
org.glassfish.api.admin.CommandExceptionorg.glassfish.api.admin.CommandValidationException
-
validate
protected void validate() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException- Overrides:
validatein classcom.sun.enterprise.admin.cli.CLICommand- Throws:
org.glassfish.api.admin.CommandExceptionorg.glassfish.api.admin.CommandValidationException
-
getDomainsDir
-
getDomainRootDir
-
getDomainName
-
setDomainName
We need this so that @Param values for domainname can be remembered later when the ServerDirs object is made.- Parameters:
name- the user-specified domain name.
-
initDomain
protected void initDomain() throws org.glassfish.api.admin.CommandException- Throws:
org.glassfish.api.admin.CommandException
-
isThisDAS
-