Class DatabaseCommand

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct
    Direct Known Subclasses:
    StartDatabaseCommand, StopDatabaseCommand

    public abstract class DatabaseCommand
    extends CLICommand
    This is an abstract class to be inherited by StartDatabaseCommand and StopDatabaseCommand. This classes prepares the variables that are used to to invoke DBControl. It also contains a pingDatabase method that is used by both start/stop database command.
    Author:
    Jane Young, Bill Shannon
    • Constructor Detail

      • DatabaseCommand

        public DatabaseCommand()
    • Method Detail

      • prepareProcessExecutor

        protected void prepareProcessExecutor()
                                       throws Exception
        Prepare variables to invoke start/ping database command.
        Throws:
        Exception
      • pingDatabaseCmd

        protected String[] pingDatabaseCmd​(boolean bRedirect)
                                    throws Exception
        Defines the command to ping the database.
        Parameters:
        bRedirect -
        Returns:
        Throws:
        Exception
      • getJavaExe

        protected final File getJavaExe()
        Computes the java executable location from sJavaHome.
        Returns: