public class DatabaseInfo extends Object implements DatabaseInfoMBean
| Modifier and Type | Method and Description |
|---|---|
int |
getCacheSize()
The current cache size in KB.
|
int |
getCacheSizeMax()
The maximum cache size in KB.
|
long |
getFileReadCount()
The file read count since the database was opened.
|
long |
getFileSize()
The database file size in KB.
|
long |
getFileWriteCount()
The number of write operations since the database was opened.
|
long |
getFileWriteCountTotal()
The number of write operations since the database was created.
|
int |
getLogMode()
The transaction log mode (0 disabled, 1 without sync, 2 enabled).
|
String |
getMode()
The database compatibility mode (REGULAR if no compatibility mode is
used).
|
int |
getTraceLevel()
The trace level (0 disabled, 1 error, 2 info, 3 debug).
|
String |
getVersion()
The database version.
|
boolean |
isExclusive()
Is the database open in exclusive mode?
|
boolean |
isMultiThreaded()
Is multi-threading enabled?
|
boolean |
isMvcc()
Is MVCC (multi version concurrency) enabled?
|
boolean |
isReadOnly()
Is the database read-only?
|
String |
listSessions()
List sessions, including the queries that are in
progress, and locked tables.
|
String |
listSettings()
List the database settings.
|
static void |
registerMBean(ConnectionInfo connectionInfo,
Database database)
Registers an MBean for the database.
|
void |
setCacheSizeMax(int kb)
Change the maximum size.
|
void |
setLogMode(int value)
Set the transaction log mode.
|
void |
setTraceLevel(int level)
Set the trace level.
|
static void |
unregisterMBean(String name)
Unregisters the MBean for the database if one is registered.
|
public static void registerMBean(ConnectionInfo connectionInfo, Database database) throws JMException
connectionInfo - connection infodatabase - databaseJMExceptionpublic static void unregisterMBean(String name) throws Exception
name - database nameExceptionpublic boolean isExclusive()
DatabaseInfoMBeanisExclusive in interface DatabaseInfoMBeanpublic boolean isReadOnly()
DatabaseInfoMBeanisReadOnly in interface DatabaseInfoMBeanpublic String getMode()
DatabaseInfoMBeangetMode in interface DatabaseInfoMBeanpublic boolean isMultiThreaded()
DatabaseInfoMBeanisMultiThreaded in interface DatabaseInfoMBeanpublic boolean isMvcc()
DatabaseInfoMBeanisMvcc in interface DatabaseInfoMBeanpublic int getLogMode()
DatabaseInfoMBeangetLogMode in interface DatabaseInfoMBeanpublic void setLogMode(int value)
DatabaseInfoMBeansetLogMode in interface DatabaseInfoMBeanvalue - the new log modepublic int getTraceLevel()
DatabaseInfoMBeangetTraceLevel in interface DatabaseInfoMBeanpublic void setTraceLevel(int level)
DatabaseInfoMBeansetTraceLevel in interface DatabaseInfoMBeanlevel - the new valuepublic long getFileWriteCountTotal()
DatabaseInfoMBeangetFileWriteCountTotal in interface DatabaseInfoMBeanpublic long getFileWriteCount()
DatabaseInfoMBeangetFileWriteCount in interface DatabaseInfoMBeanpublic long getFileReadCount()
DatabaseInfoMBeangetFileReadCount in interface DatabaseInfoMBeanpublic long getFileSize()
DatabaseInfoMBeangetFileSize in interface DatabaseInfoMBeanpublic int getCacheSizeMax()
DatabaseInfoMBeangetCacheSizeMax in interface DatabaseInfoMBeanpublic void setCacheSizeMax(int kb)
DatabaseInfoMBeansetCacheSizeMax in interface DatabaseInfoMBeankb - the cache size in KB.public int getCacheSize()
DatabaseInfoMBeangetCacheSize in interface DatabaseInfoMBeanpublic String getVersion()
DatabaseInfoMBeangetVersion in interface DatabaseInfoMBeanpublic String listSettings()
DatabaseInfoMBeanlistSettings in interface DatabaseInfoMBeanpublic String listSessions()
DatabaseInfoMBeanlistSessions in interface DatabaseInfoMBeanCopyright © 2012 JBoss by Red Hat. All Rights Reserved.