public class DatabaseInfo extends Object implements DatabaseInfoMBean
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 DatabaseInfoMBeanpublic boolean isReadOnly()
DatabaseInfoMBeanisReadOnly 在接口中 DatabaseInfoMBeanpublic String getMode()
DatabaseInfoMBeangetMode 在接口中 DatabaseInfoMBeanpublic boolean isMultiThreaded()
DatabaseInfoMBeanisMultiThreaded 在接口中 DatabaseInfoMBeanpublic boolean isMvcc()
DatabaseInfoMBeanisMvcc 在接口中 DatabaseInfoMBeanpublic int getLogMode()
DatabaseInfoMBeangetLogMode 在接口中 DatabaseInfoMBeanpublic void setLogMode(int value)
DatabaseInfoMBeansetLogMode 在接口中 DatabaseInfoMBeanvalue - the new log modepublic int getTraceLevel()
DatabaseInfoMBeangetTraceLevel 在接口中 DatabaseInfoMBeanpublic void setTraceLevel(int level)
DatabaseInfoMBeansetTraceLevel 在接口中 DatabaseInfoMBeanlevel - the new valuepublic long getFileWriteCountTotal()
DatabaseInfoMBeangetFileWriteCountTotal 在接口中 DatabaseInfoMBeanpublic long getFileWriteCount()
DatabaseInfoMBeangetFileWriteCount 在接口中 DatabaseInfoMBeanpublic long getFileReadCount()
DatabaseInfoMBeangetFileReadCount 在接口中 DatabaseInfoMBeanpublic long getFileSize()
DatabaseInfoMBeangetFileSize 在接口中 DatabaseInfoMBeanpublic int getCacheSizeMax()
DatabaseInfoMBeangetCacheSizeMax 在接口中 DatabaseInfoMBeanpublic void setCacheSizeMax(int kb)
DatabaseInfoMBeansetCacheSizeMax 在接口中 DatabaseInfoMBeankb - the cache size in KB.public int getCacheSize()
DatabaseInfoMBeangetCacheSize 在接口中 DatabaseInfoMBeanpublic String getVersion()
DatabaseInfoMBeangetVersion 在接口中 DatabaseInfoMBeanpublic String listSettings()
DatabaseInfoMBeanlistSettings 在接口中 DatabaseInfoMBeanpublic String listSessions()
DatabaseInfoMBeanlistSessions 在接口中 DatabaseInfoMBeanCopyright © 2017. All rights reserved.