Package org.pentaho.platform.web.hsqldb
Class HsqlDatabaseStarterBean
java.lang.Object
org.pentaho.platform.web.hsqldb.HsqlDatabaseStarterBean
The purpose of this Java class is to startup a HSQLDB databases. This class should not installed in production
environments. This is for samples / demoing only.
You typically will configure a ServletContext parameter in your web.xml, named "hsqldb-databases" with a value that
follows this format: dbName@../path/to/database,@otherDbName@../path/to/other/database
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
protected org.hsqldb.Server
int
getPort()
protected org.hsqldb.persist.HsqlProperties
getServerProperties
(String[] args) void
setAllowPortFailover
(boolean value) void
setDatabases
(Map<String, String> databases) void
setFailoverPort
(int value) void
setPort
(int value) boolean
start()
Starts hsqldb databases.boolean
stop()
Stops the hsqldb databases.
-
Constructor Details
-
HsqlDatabaseStarterBean
public HsqlDatabaseStarterBean()
-
-
Method Details
-
checkPort
protected boolean checkPort() -
getServerProperties
-
getNewHSQLDBServer
protected org.hsqldb.Server getNewHSQLDBServer() -
start
public boolean start()Starts hsqldb databases.- Returns:
- true if the server was started properly.
-
stop
public boolean stop()Stops the hsqldb databases.- Returns:
- true if the server stopped properly.
-
getStartupArguments
-
setPort
public void setPort(int value) -
getPort
public int getPort() -
setFailoverPort
public void setFailoverPort(int value) -
getFailoverPort
public int getFailoverPort() -
getDatabases
-
setDatabases
-
setAllowPortFailover
public void setAllowPortFailover(boolean value) -
getAllowPortFailover
public boolean getAllowPortFailover()
-