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.
|
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 |
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 |
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 - databaseJMException - on failurepublic static void unregisterMBean(String name) throws Exception
name - database nameJMException - on failureExceptionpublic boolean isExclusive()
DatabaseInfoMBeanisExclusive 在接口中 DatabaseInfoMBeanpublic boolean isReadOnly()
DatabaseInfoMBeanisReadOnly 在接口中 DatabaseInfoMBeanpublic String getMode()
DatabaseInfoMBeangetMode 在接口中 DatabaseInfoMBeanpublic int getTraceLevel()
DatabaseInfoMBeangetTraceLevel 在接口中 DatabaseInfoMBeanpublic void setTraceLevel(int level)
DatabaseInfoMBeansetTraceLevel 在接口中 DatabaseInfoMBeanlevel - the new valuepublic 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 © 2022. All rights reserved.