Class MySQLSpecifics
- java.lang.Object
-
- dk.netarkivet.common.utils.SettingsFactory<DBSpecifics>
-
- dk.netarkivet.archive.arcrepositoryadmin.DBSpecifics
-
- dk.netarkivet.archive.arcrepositoryadmin.MySQLSpecifics
-
public class MySQLSpecifics extends DBSpecifics
-
-
Constructor Summary
Constructors Constructor Description MySQLSpecifics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
backupDatabase(java.sql.Connection c, java.io.File backupDir)
Backup the database.java.lang.String
getDriverClassName()
Get the name of the JDBC driver class that handles interfacing to this server.void
shutdownDatabase()
Shutdown the database system, if running in embedded mode.-
Methods inherited from class dk.netarkivet.archive.arcrepositoryadmin.DBSpecifics
getInstance
-
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory
getInstance
-
-
-
-
Constructor Detail
-
MySQLSpecifics
public MySQLSpecifics()
-
-
Method Detail
-
shutdownDatabase
public void shutdownDatabase()
Description copied from class:DBSpecifics
Shutdown the database system, if running in embedded mode. Otherwise, this is ignored.Will log a warning on errors, but otherwise ignore them.
- Specified by:
shutdownDatabase
in classDBSpecifics
-
backupDatabase
public void backupDatabase(java.sql.Connection c, java.io.File backupDir) throws java.sql.SQLException, PermissionDenied
Description copied from class:DBSpecifics
Backup the database. For server-based databases, where the administrator is expected to perform the backups, this method should do nothing. This method gets called within one hour of the hour-of-day indicated by the DB_BACKUP_INIT_HOUR settings.- Specified by:
backupDatabase
in classDBSpecifics
- Parameters:
c
- The connection to the database.backupDir
- Directory to which the database should be backed up- Throws:
java.sql.SQLException
- On SQL trouble backing up databasePermissionDenied
- if the directory cannot be created.
-
getDriverClassName
public java.lang.String getDriverClassName()
Description copied from class:DBSpecifics
Get the name of the JDBC driver class that handles interfacing to this server.- Specified by:
getDriverClassName
in classDBSpecifics
- Returns:
- The name of a JDBC driver class
-
-