Class H2Control
- java.lang.Object
-
- com.sun.enterprise.admin.cli.optional.DBControl
-
- com.sun.enterprise.admin.cli.optional.H2Control
-
public final class H2Control extends DBControl
This class uses Java reflection to invoke H2 NetworkServerControl class. This class is used to start/stop/ping h2 database. The reason for creating this class instead of directly invoking NetworkServerControl from the StartDatabaseCommand class is so that a separate JVM is launched when starting the database and the control is return to CLI.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DB_LOG_FILENAME
static String
JDBC_DRIVER
-
Constructor Summary
Constructors Constructor Description H2Control(String dbCommand, String dbHost, String dbPort)
H2Control(String dbCommand, String dbHost, String dbPort, String redirect)
H2Control(String dbCommand, String dbHost, String dbPort, String redirect, String dbHome)
H2Control(String dbCommand, String dbHost, String dbPort, String redirect, String dbUser, String dbPassword)
H2Control(String dbCommand, String dbHost, String dbPort, String redirect, String dbHome, String dbUser, String dbPassword)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLogFileName()
static void
main(String[] args)
-
Methods inherited from class com.sun.enterprise.admin.cli.optional.DBControl
getDbCommand, getDbHome, getDbHost, getDbPassword, getDbPort, getDbUser, isRedirect
-
-
-
-
Field Detail
-
DB_LOG_FILENAME
public static final String DB_LOG_FILENAME
- See Also:
- Constant Field Values
-
JDBC_DRIVER
public static final String JDBC_DRIVER
- See Also:
- Constant Field Values
-
-