com.sun.enterprise.admin.cli.optional
Class BackupCommands
java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.cli.LocalServerCommand
com.sun.enterprise.admin.cli.LocalDomainCommand
com.sun.enterprise.admin.cli.optional.BackupCommands
- All Implemented Interfaces:
- org.jvnet.hk2.component.PostConstruct
- Direct Known Subclasses:
- BackupDomainCommand, ListBackupsCommand, RestoreDomainCommand
public abstract class BackupCommands
- extends LocalDomainCommand
This is a local command for backing-up domains.
The Options:
The Operand:
| 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.LocalServerCommand |
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getMasterPasswordFile, 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, executeCommand, getBooleanOption, getCommand, getManPage, getName, getOperandModel, getOption, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, usageOptions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BackupCommands
public BackupCommands()
checkOptions
protected void checkOptions()
throws CommandException
- A 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(java.lang.String d)
setBackupDir
protected void setBackupDir(java.lang.String dir)
setRecycleLimit
protected void setRecycleLimit(int limit)
prepareRequest
protected void prepareRequest()
throws CommandValidationException
- Throws:
CommandValidationException
isWritableDirectory
protected boolean isWritableDirectory(java.io.File domainFile)
toString
public java.lang.String toString()
- Overrides:
toString in class CLICommand
Copyright © 2012 GlassFish Community. All Rights Reserved.