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

Public Member Functions

 PostgresEamDbSettings ()
 
boolean createDatabase ()
 
boolean deleteDatabase ()
 
String getDbName ()
 
String getHost ()
 
String getPassword ()
 
int getPort ()
 
String getUserName ()
 
boolean initializeDatabaseSchema ()
 
boolean insertDefaultDatabaseContent ()
 
void loadSettings ()
 
void saveSettings ()
 
void setBulkThreshold (int bulkThreshold) throws EamDbException
 
void setDbName (String dbName) throws EamDbException
 
void setHost (String host) throws EamDbException
 
void setPassword (String password) throws EamDbException
 
void setPort (int port) throws EamDbException
 
void setUserName (String userName) throws EamDbException
 
boolean verifyConnection ()
 
boolean verifyDatabaseExists ()
 
boolean verifyDatabaseSchema ()
 

Private Member Functions

Connection getEphemeralConnection (boolean usePostgresDb)
 

Private Attributes

int bulkThreshold
 
String dbName
 
String host
 
String password
 
int port
 
String userName
 

Static Private Attributes

static final String DB_NAMES_REGEX = "[a-z][a-z0-9_]*"
 
static final String DB_USER_NAMES_REGEX = "[a-zA-Z]\\w*"
 
static final String DEFAULT_DBNAME = "central_repository"
 
static final String DEFAULT_HOST = ""
 
static final String DEFAULT_PASSWORD = ""
 
static final int DEFAULT_PORT = 5432
 
static final String DEFAULT_USERNAME = ""
 
static final String JDBC_BASE_URI = "jdbc:postgresql://"
 
static final String JDBC_DRIVER = "org.postgresql.Driver"
 
static final Logger LOGGER = Logger.getLogger(PostgresEamDbSettings.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 43 of file PostgresEamDbSettings.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.PostgresEamDbSettings ( )

Member Function Documentation

boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.createDatabase ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.deleteDatabase ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getDbName ( )
Connection org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getEphemeralConnection ( boolean  usePostgresDb)
private
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getHost ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getPassword ( )
int org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getPort ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getUserName ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.initializeDatabaseSchema ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.insertDefaultDatabaseContent ( )
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.loadSettings ( )
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.saveSettings ( )
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setBulkThreshold ( int  bulkThreshold) throws EamDbException
Parameters
bulkThresholdthe bulkThreshold to set

Definition at line 678 of file PostgresEamDbSettings.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.bulkThreshold.

void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setDbName ( String  dbName) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setHost ( String  host) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setPassword ( String  password) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setPort ( int  port) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setUserName ( String  userName) throws EamDbException
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyConnection ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseExists ( )
boolean org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseSchema ( )

Member Data Documentation

int org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.bulkThreshold
private
final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.DB_NAMES_REGEX = "[a-z][a-z0-9_]*"
staticprivate

Definition at line 54 of file PostgresEamDbSettings.java.

final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.DB_USER_NAMES_REGEX = "[a-zA-Z]\\w*"
staticprivate

Definition at line 55 of file PostgresEamDbSettings.java.

String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.dbName
private

Definition at line 58 of file PostgresEamDbSettings.java.

final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.DEFAULT_DBNAME = "central_repository"
staticprivate
final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.DEFAULT_HOST = ""
staticprivate
final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.DEFAULT_PASSWORD = ""
staticprivate
final int org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.DEFAULT_PORT = 5432
staticprivate
final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.DEFAULT_USERNAME = ""
staticprivate
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.host
private
final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.JDBC_BASE_URI = "jdbc:postgresql://"
staticprivate

Definition at line 52 of file PostgresEamDbSettings.java.

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

Definition at line 53 of file PostgresEamDbSettings.java.

final Logger org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.LOGGER = Logger.getLogger(PostgresEamDbSettings.class.getName())
staticprivate

Definition at line 45 of file PostgresEamDbSettings.java.

String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.password
private
int org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.port
private
String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.userName
private
final String org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.VALIDATION_QUERY = "SELECT version()"
staticprivate

Definition at line 51 of file PostgresEamDbSettings.java.


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

Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.