|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.jmx.DatabaseInfo
public class DatabaseInfo
The MBean implementation.
| Method Summary | |
|---|---|
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). |
java.lang.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). |
java.lang.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? |
java.lang.String |
listSessions()
List sessions, including the queries that are in progress, and locked tables. |
java.lang.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(java.lang.String name)
Unregisters the MBean for the database if one is registered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerMBean(ConnectionInfo connectionInfo,
Database database)
throws javax.management.JMException
connectionInfo - connection infodatabase - database
javax.management.JMException
public static void unregisterMBean(java.lang.String name)
throws java.lang.Exception
name - database name
java.lang.Exceptionpublic boolean isExclusive()
DatabaseInfoMBean
isExclusive in interface DatabaseInfoMBeanpublic boolean isReadOnly()
DatabaseInfoMBean
isReadOnly in interface DatabaseInfoMBeanpublic java.lang.String getMode()
DatabaseInfoMBean
getMode in interface DatabaseInfoMBeanpublic boolean isMultiThreaded()
DatabaseInfoMBean
isMultiThreaded in interface DatabaseInfoMBeanpublic boolean isMvcc()
DatabaseInfoMBean
isMvcc in interface DatabaseInfoMBeanpublic int getLogMode()
DatabaseInfoMBean
getLogMode in interface DatabaseInfoMBeanpublic void setLogMode(int value)
DatabaseInfoMBean
setLogMode in interface DatabaseInfoMBeanvalue - the new log modepublic int getTraceLevel()
DatabaseInfoMBean
getTraceLevel in interface DatabaseInfoMBeanpublic void setTraceLevel(int level)
DatabaseInfoMBean
setTraceLevel in interface DatabaseInfoMBeanlevel - the new valuepublic long getFileWriteCountTotal()
DatabaseInfoMBean
getFileWriteCountTotal in interface DatabaseInfoMBeanpublic long getFileWriteCount()
DatabaseInfoMBean
getFileWriteCount in interface DatabaseInfoMBeanpublic long getFileReadCount()
DatabaseInfoMBean
getFileReadCount in interface DatabaseInfoMBeanpublic long getFileSize()
DatabaseInfoMBean
getFileSize in interface DatabaseInfoMBeanpublic int getCacheSizeMax()
DatabaseInfoMBean
getCacheSizeMax in interface DatabaseInfoMBeanpublic void setCacheSizeMax(int kb)
DatabaseInfoMBean
setCacheSizeMax in interface DatabaseInfoMBeankb - the cache size in KB.public int getCacheSize()
DatabaseInfoMBean
getCacheSize in interface DatabaseInfoMBeanpublic java.lang.String getVersion()
DatabaseInfoMBean
getVersion in interface DatabaseInfoMBeanpublic java.lang.String listSettings()
DatabaseInfoMBean
listSettings in interface DatabaseInfoMBeanpublic java.lang.String listSessions()
DatabaseInfoMBean
listSessions in interface DatabaseInfoMBean
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||