Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings Class Reference

Inherits org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.

Public Member Functions

 PostgresCentralRepoSettings (PostgresSettingsLoader loader)
 
 PostgresCentralRepoSettings () throws CentralRepoException
 
boolean createDatabase ()
 
boolean deleteDatabase ()
 
String getDbName ()
 
String getHost ()
 
String getPassword ()
 
int getPort ()
 
String getUserName ()
 
void loadSettings ()
 
void saveSettings ()
 
void setBulkThreshold (int bulkThreshold) throws CentralRepoException
 
void setDbName (String dbName) throws CentralRepoException
 
void setHost (String host) throws CentralRepoException
 
void setPassword (String password) throws CentralRepoException
 
void setPort (int port) throws CentralRepoException
 
void setUserName (String userName) throws CentralRepoException
 
DatabaseTestResult testStatus ()
 
String toString ()
 
boolean verifyConnection ()
 
boolean verifyDatabaseExists ()
 
boolean verifyDatabaseSchema ()
 

Static Private Member Functions

static PostgresSettingsLoader getLoaderFromSaved () throws CentralRepoException
 

Private Attributes

PostgresConnectionSettings connSettings
 
final PostgresSettingsLoader loader
 

Static Private Attributes

static final String JDBC_BASE_URI = "jdbc:postgresql://"
 
static final String JDBC_DRIVER = "org.postgresql.Driver"
 
static final Logger LOGGER = Logger.getLogger(PostgresCentralRepoSettings.class.getName())
 
static final String VALIDATION_QUERY = "SELECT version()"
 

Detailed Description

Settings for the Postgres implementation of the Central Repository database

NOTE: This is public scope because the options panel calls it directly to set/get

Definition at line 37 of file PostgresCentralRepoSettings.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.PostgresCentralRepoSettings ( PostgresSettingsLoader  loader)
org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.PostgresCentralRepoSettings ( ) throws CentralRepoException

This is the default constructor that loads settings from selected db choice.

Definition at line 70 of file PostgresCentralRepoSettings.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getLoaderFromSaved().

Member Function Documentation

boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.createDatabase ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.deleteDatabase ( )

This method deletes a central repository database (used for deleting a corrupted database).

Returns
Whether or not the operation was successful.

Implements org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.

Definition at line 257 of file PostgresCentralRepoSettings.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeConnection(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getDbName().

String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getDbName ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getHost ( )
static PostgresSettingsLoader org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getLoaderFromSaved ( ) throws CentralRepoException
staticprivate
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getPassword ( )
int org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getPort ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getUserName ( )
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.loadSettings ( )
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.saveSettings ( )
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setBulkThreshold ( int  bulkThreshold) throws CentralRepoException
Parameters
bulkThresholdthe bulkThreshold to set

Definition at line 334 of file PostgresCentralRepoSettings.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresConnectionSettings.setBulkThreshold().

void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setDbName ( String  dbName) throws CentralRepoException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setHost ( String  host) throws CentralRepoException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setPassword ( String  password) throws CentralRepoException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setPort ( int  port) throws CentralRepoException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setUserName ( String  userName) throws CentralRepoException
DatabaseTestResult org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.testStatus ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.toString ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyConnection ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseSchema ( )

Member Data Documentation

PostgresConnectionSettings org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.connSettings
private

Definition at line 46 of file PostgresCentralRepoSettings.java.

final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.JDBC_BASE_URI = "jdbc:postgresql://"
staticprivate

Definition at line 41 of file PostgresCentralRepoSettings.java.

final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.JDBC_DRIVER = "org.postgresql.Driver"
staticprivate

Definition at line 42 of file PostgresCentralRepoSettings.java.

final PostgresSettingsLoader org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.loader
private
final Logger org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.LOGGER = Logger.getLogger(PostgresCentralRepoSettings.class.getName())
staticprivate

Definition at line 39 of file PostgresCentralRepoSettings.java.

final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.VALIDATION_QUERY = "SELECT version()"
staticprivate

Definition at line 40 of file PostgresCentralRepoSettings.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Mon Sep 26 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.