Class BackupCommands
- java.lang.Object
-
- com.sun.enterprise.admin.cli.CLICommand
-
- com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
-
- com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
-
- com.sun.enterprise.admin.cli.optional.BackupCommands
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
- Direct Known Subclasses:
BackupDomainCommand,ListBackupsCommand,RestoreDomainCommand
public abstract class BackupCommands extends LocalDomainCommand
This is a local command for backing-up domains. The Options:- domaindir
- domain_name
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
domainDirParam
-
Fields inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
DEFAULT_MASTER_PASSWORD
-
Fields inherited from class com.sun.enterprise.admin.cli.CLICommand
argv, ASADMIN, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, lineReader, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, terminal, WARNING
-
-
Constructor Summary
Constructors Constructor Description BackupCommands()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckOptions()A method that checks the options and operand that the user supplied.protected booleanisWritableDirectory(File domainFile)protected voidprepareRequest()protected voidsetBackupDir(String dir)protected voidsetDescription(String d)protected voidsetRecycleLimit(int limit)StringtoString()-
Methods inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
getDomainName, getDomainRootDir, getDomainsDir, initDomain, isThisDAS, prepare, setDomainName, validate
-
Methods inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
checkAdditionalTrustAndKeyStores, checkForSpecialFiles, dataGridEncryptionEnabled, getAdminAddress, getAdminAddress, getDomainXml, getInstallRootPath, getMasterPassword, getMasterPasswordFile, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart, waitForRestart
-
Methods inherited from class com.sun.enterprise.admin.cli.CLICommand
buildLineReader, buildTerminal, checkHelp, closeTerminal, execute, execute, executeCommand, expandManPage, getBooleanOption, getBriefCommandUsage, getCommand, getCommand, getCommandScope, getCommandUsage, getManPage, getName, getOperandModel, getOption, getOptions, getPassword, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, newLineReaderBuilder, ok, parse, postConstruct, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, usageOptions
-
-
-
-
Method Detail
-
checkOptions
protected void checkOptions() throws CommandExceptionA method that checks the options and operand that the user supplied. These tests are slightly different for different CLI commands- Throws:
CommandException
-
setDescription
protected void setDescription(String d)
-
setBackupDir
protected void setBackupDir(String dir)
-
setRecycleLimit
protected void setRecycleLimit(int limit)
-
prepareRequest
protected void prepareRequest() throws CommandValidationException- Throws:
CommandValidationException
-
isWritableDirectory
protected boolean isWritableDirectory(File domainFile)
-
toString
public String toString()
- Overrides:
toStringin classCLICommand
-
-