public interface StatisticsManager extends ServiceManager
StatisticsManager is responsible for replicating the functionality of the gstat command-line tool.
This functionality includes:
| Modifier and Type | Interface and Description |
|---|---|
static class |
StatisticsManager.DatabaseTransactionInfo |
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_TABLE_STATISTICS
Request statistics on data tables.
|
static int |
INDEX_STATISTICS
Request statistics on indexes.
|
static int |
RECORD_VERSION_STATISTICS
Request statistics on record versions.
|
static int |
SYSTEM_TABLE_STATISTICS
Request statistics on system tables.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getDatabaseStatistics()
Get the full database statistics information, excluding system table information.
|
void |
getDatabaseStatistics(int options)
Get specific database statistics.
|
StatisticsManager.DatabaseTransactionInfo |
getDatabaseTransactionInfo()
Get transaction information of the database specified in
database. |
void |
getHeaderPage()
Fetch the database statistics header page.
|
void |
getTableStatistics(java.lang.String[] tableNames)
Get the table statistics.
|
getAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setDatabase, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptstatic final int DATA_TABLE_STATISTICS
static final int INDEX_STATISTICS
static final int SYSTEM_TABLE_STATISTICS
static final int RECORD_VERSION_STATISTICS
void getHeaderPage()
throws java.sql.SQLException
The header information is written to this StatisticsManager's logger.
java.sql.SQLException - if a database access error occursvoid getDatabaseStatistics()
throws java.sql.SQLException
The statistics information is written to this StatisticsManager's logger.
The listed data includes:
Invoking this method is equivalent to the default behaviour of gstat on the command-line.
java.sql.SQLException - if a database access error occursvoid getDatabaseStatistics(int options)
throws java.sql.SQLException
The statistics information is written to this StatisticsManager's logger. All invocations of
this method will result in the header page and log data being output.
The following options can be supplied as a bitmask:
DATA_TABLE_STATISTICSSYSTEM_TABLE_STATISTICSINDEX_STATISTICSRECORD_VERSION_STATISTICS
If this method is invoked with 0 as the options value, only the header and log statistics will
be output.
options - A bitmask combination of
DATA_TABLE_STATISTICS,
SYSTEM_TABLE_STATISTICS,
INDEX_STATISTICS, or
RECORD_VERSION_STATISTICS.
Can also be 0, which is equivalent to calling method getDatabaseStatistics()java.sql.SQLExceptionvoid getTableStatistics(java.lang.String[] tableNames)
throws java.sql.SQLException
The statistics information is written to this StatisticsManager's logger.
The listed data includes:
Invoking this method is equivalent to the behaviour of gstat -t <table name> on the command-line.
tableNames - array of table names to analyze.java.sql.SQLException - if something went wrong.StatisticsManager.DatabaseTransactionInfo getDatabaseTransactionInfo() throws java.sql.SQLException
database.java.sql.SQLException - If database is not specified, or for failures to connect or retrieve informationCopyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.