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

java.lang.Object
  extended by com.sun.enterprise.admin.cli.CLICommand
      extended by com.sun.enterprise.admin.cli.optional.DatabaseCommand
          extended by com.sun.enterprise.admin.cli.optional.StopDatabaseCommand
All Implemented Interfaces:
org.jvnet.hk2.component.PostConstruct

@Service(name="stop-database")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public final class StopDatabaseCommand
extends DatabaseCommand

stop-database command This command class will invoke DerbyControl to stop the database.

Author:
Jane Young, Bill Shannon

Field Summary
 
Fields inherited from class com.sun.enterprise.admin.cli.optional.DatabaseCommand
DB_HOST_DEFAULT, DB_PASSWORDFILE, DB_PORT_DEFAULT, DB_USER, dbHost, dbLocation, dbPort, installModules, sClasspath, sDatabaseClasspath, sInstallRoot, sJavaHome
 
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
StopDatabaseCommand()
           
 
Method Summary
protected  int executeCommand()
          Method that Executes the command
 java.lang.String[] stopDatabaseCmd()
          Defines the command to stop the derby database.
 
Methods inherited from class com.sun.enterprise.admin.cli.optional.DatabaseCommand
getJavaExe, pingDatabaseCmd, prepareProcessExecutor
 
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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StopDatabaseCommand

public StopDatabaseCommand()
Method Detail

stopDatabaseCmd

public java.lang.String[] stopDatabaseCmd()
                                   throws java.lang.Exception
Defines the command to stop the derby database. Note that when using Darwin (Mac), the property, "-Dderby.storage.fileSyncTransactionLog=True" is defined.

Throws:
java.lang.Exception

executeCommand

protected int executeCommand()
                      throws CommandException,
                             CommandValidationException
Method that Executes the command

Specified by:
executeCommand in class CLICommand
Throws:
CommandException
CommandValidationException


Copyright © 2012 GlassFish Community. All Rights Reserved.