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

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.ValidateDasOptions
All Implemented Interfaces:
org.jvnet.hk2.component.PostConstruct

@Service(name="_validate-das-options")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class ValidateDasOptions
extends LocalInstanceCommand

Validate DAS host, port, secure options.


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
ValidateDasOptions()
           
 
Method Summary
protected  int executeCommand()
           
protected  boolean isDirectory(java.io.File f)
          Override this method if your class does NOT want CommandException thrown if directory does not exist.
protected  boolean mkdirs(java.io.File f)
          Override this method if your class does NOT want to create directories
protected  boolean setServerDirs()
          Override this method if your class does NOT want to set ServerDirs
protected  void validate()
           
 
Methods inherited from class com.sun.enterprise.admin.cli.cluster.LocalInstanceCommand
getDasProperties, getInstallRootPath, getInstanceDirs, getMasterPasswordFile, getNodeInstallDir, getProductRootPath, initInstance, setDasDefaults, 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

ValidateDasOptions

public ValidateDasOptions()
Method Detail

mkdirs

protected boolean mkdirs(java.io.File f)
Description copied from class: LocalInstanceCommand
Override this method if your class does NOT want to create directories

Overrides:
mkdirs in class LocalInstanceCommand
Parameters:
f - the directory to create

isDirectory

protected boolean isDirectory(java.io.File f)
Description copied from class: LocalInstanceCommand
Override this method if your class does NOT want CommandException thrown if directory does not exist.

Overrides:
isDirectory in class LocalInstanceCommand
Parameters:
f - directory to check

setServerDirs

protected boolean setServerDirs()
Description copied from class: LocalInstanceCommand
Override this method if your class does NOT want to set ServerDirs

Overrides:
setServerDirs in class LocalInstanceCommand

validate

protected final void validate()
                       throws CommandException
Overrides:
validate in class LocalInstanceCommand
Throws:
CommandException

executeCommand

protected final int executeCommand()
                            throws CommandException
Specified by:
executeCommand in class CLICommand
Throws:
CommandException


Copyright © 2012 GlassFish Community. All Rights Reserved.