public interface DatabaseRuntime
Implementations of this class should be put in the Databases/Runtimes folder in the default filesystem.
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDatabaseURL(String url)
Returns whether this runtime accepts this database URL (the database URL
would cause a connection to be made to the database server instance
represented by this runtime).
|
boolean |
canStart()
Returns whether the database server instance can be started by a call to the
DatabaseRuntime.start() method. |
String |
getJDBCDriverClass()
Returns the JDBC driver class which is used to make connections to the
represented database server instance.
|
boolean |
isRunning()
Returns the state (running/not running) of the represented database server
instance.
|
void |
start()
Starts the database server instance represented by this runtime.
|
void |
stop()
Stops the database server instance represented by this runtime.
|
String getJDBCDriverClass()
When a connection is being made, only the database runtimes which have the same JDBC driver as the driver used by this connection are considered for further usage (e.g., starting the database server instance).
boolean acceptsDatabaseURL(String url)
url
- the database URLboolean isRunning()
boolean canStart()
DatabaseRuntime.start()
method.void start()
void stop()