com.sun.enterprise.admin.cli.optional
Class BackupCommands

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.LocalDomainCommand
              extended by 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:


Field Summary
 
Fields inherited from class com.sun.enterprise.admin.cli.LocalDomainCommand
domainDirParam
 
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
BackupCommands()
           
 
Method Summary
protected  void checkOptions()
          A method that checks the options and operand that the user supplied.
protected  boolean isWritableDirectory(java.io.File domainFile)
           
protected  void prepareRequest()
           
protected  void setBackupDir(java.lang.String dir)
           
protected  void setDescription(java.lang.String d)
           
protected  void setRecycleLimit(int limit)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sun.enterprise.admin.cli.LocalDomainCommand
getDomainName, getDomainRootDir, getDomainsDir, initDomain, isThisDAS, prepare, setDomainName, validate
 
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
 

Constructor Detail

BackupCommands

public BackupCommands()
Method Detail

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.