|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.management.FBServiceManager
org.firebirdsql.management.FBStatisticsManager
public class FBStatisticsManager
The FBStatisticsManager class is responsible for replicating
the functionality of the gstat command-line tool.
This functionality includes:
| Field Summary |
|---|
| Fields inherited from class org.firebirdsql.management.FBServiceManager |
|---|
BUFFER_SIZE |
| Fields inherited from interface org.firebirdsql.management.StatisticsManager |
|---|
DATA_TABLE_STATISTICS, INDEX_STATISTICS, RECORD_VERSION_STATISTICS, SYSTEM_TABLE_STATISTICS |
| Constructor Summary | |
|---|---|
FBStatisticsManager()
Create a new instance of FBMaintenanceManager based on
the default GDSType. |
|
FBStatisticsManager(GDSType gdsType)
Create a new instance of FBMaintenanceManager based on
a given GDSType. |
|
FBStatisticsManager(String gdsType)
Create a new instance of FBMaintenanceManager based on
a given GDSType. |
|
| Method Summary | |
|---|---|
void |
getDatabaseStatistics()
Get the full database statistics information, excluding system table information. |
void |
getDatabaseStatistics(int options)
Get specific database statistics. |
void |
getHeaderPage()
Fetch the database statistics header page. |
void |
getTableStatistics(String[] tableName)
Get the table statistics. |
| Methods inherited from class org.firebirdsql.management.FBServiceManager |
|---|
attachServiceManager, createRequestBuffer, detachServiceManager, executeServicesOperation, getDatabase, getGds, getHost, getLogger, getPassword, getPort, getServiceName, getUser, queueService, setDatabase, setHost, setLogger, setPassword, setPort, setUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.firebirdsql.management.ServiceManager |
|---|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setDatabase, setHost, setLogger, setPassword, setPort, setUser |
| Constructor Detail |
|---|
public FBStatisticsManager()
FBMaintenanceManager based on
the default GDSType.
public FBStatisticsManager(String gdsType)
FBMaintenanceManager based on
a given GDSType.
gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEpublic FBStatisticsManager(GDSType gdsType)
FBMaintenanceManager based on
a given GDSType.
gdsType - The GDS implementation type to use| Method Detail |
|---|
public void getHeaderPage()
throws SQLException
StatisticsManager's logger.
getHeaderPage in interface StatisticsManagerSQLException - if a database access error occurs
public void getDatabaseStatistics()
throws SQLException
StatisticsManager's logger.
The listed data includes:
Invoking this method is equivalent to the default behaviour of
gfix on the command-line.
getDatabaseStatistics in interface StatisticsManagerSQLException - if a database access error occurs
public void getDatabaseStatistics(int options)
throws SQLException
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_STATISTICS
SYSTEM_TABLE_STATISTICS
INDEX_STATISTICS
If this method is invoked with 0 as the
options value, only the header and log statistics will
be output.
getDatabaseStatistics in interface StatisticsManageroptions - A bitmask combination of
DATA_TABLE_STATISTICS,
SYSTEM_TABLE_STATISTICS, or
INDEX_STATISTICS. Can also be 0.
SQLException
public void getTableStatistics(String[] tableName)
throws SQLException
StatisticsManager's logger.
The listed data includes:
Invoking this method is equivalent to the behaviour of
gstat -t on the command-line.
getTableStatistics in interface StatisticsManager
tableNames - array of table names to analyze.
SQLException - if something went wrong.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2001-2010. All Rights Reserved.