com.sun.enterprise.admin.cli.optional
Class StartDatabaseCommand
java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.cli.optional.DatabaseCommand
com.sun.enterprise.admin.cli.optional.StartDatabaseCommand
- All Implemented Interfaces:
- org.jvnet.hk2.component.PostConstruct
@Service(name="start-database")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public final class StartDatabaseCommand
- extends DatabaseCommand
start-database command
This command class will invoke DerbyControl to first ping
if the database is running. If not then it will start
the database. If the database is already started, then
a message will be displayed to the user.
- Author:
- Jane Young, Bill Shannon
| 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 |
|
Method Summary |
protected int |
executeCommand()
method that execute the command |
java.lang.String[] |
startDatabaseCmd()
defines the command to start the derby database
Note that when using Darwin (Mac), the property,
"-Dderby.storage.fileSyncTransactionLog=True" is defined. |
java.lang.String[] |
sysinfoCmd()
defines the command to print out the database sysinfo
Note that when using Darwin (Mac), the property,
"-Dderby.storage.fileSyncTransactionLog=True" is defined. |
| 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 |
StartDatabaseCommand
public StartDatabaseCommand()
startDatabaseCmd
public java.lang.String[] startDatabaseCmd()
- defines the command to start the derby database
Note that when using Darwin (Mac), the property,
"-Dderby.storage.fileSyncTransactionLog=True" is defined.
sysinfoCmd
public java.lang.String[] sysinfoCmd()
throws java.lang.Exception
- defines the command to print out the database sysinfo
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 execute the command
- Specified by:
executeCommand in class CLICommand
- Throws:
CommandException
CommandValidationException
Copyright © 2012 GlassFish Community. All Rights Reserved.