Top Description Methods
org.h2.jmx

public Interface DatabaseInfoMBean

Known Direct Implementers
org.h2.jmx.DatabaseInfo

Information and management operations for the given database.
Authors
Eric Dong, Thomas Mueller

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the current size
getCacheSize
()

The current cache size in KB.

public int

Returns:

the maximum size
getCacheSizeMax
()

The maximum cache size in KB.

public long

Returns:

the read count
getFileReadCount
()

The file read count since the database was opened.

public long

Returns:

the number of pages
getFileSize
()

The database file size in KB.

public long

Returns:

the write count
getFileWriteCount
()

The number of write operations since the database was opened.

public String

Returns:

the database mode
getMode
()

The database compatibility mode (REGULAR if no compatibility mode is used).

public int

Returns:

the level
getTraceLevel
()

The trace level (0 disabled, 1 error, 2 info, 3 debug).

public String

Returns:

the version
getVersion
()

The database version.

public boolean

Returns:

true if the database is open in exclusive mode, false otherwise
isExclusive
()

Is the database open in exclusive mode?

public boolean

Returns:

true if the database is read-only, false otherwise
isReadOnly
()

Is the database read-only?

public String

Returns:

information about the sessions
listSessions
()

List sessions, including the queries that are in progress, and locked tables.

public String

Returns:

the database settings
listSettings
()

List the database settings.

public void
setCacheSizeMax(int
the cache size in KB.
kb
)

Change the maximum size.

public void
setTraceLevel(int
the new value
level
)

Set the trace level.

Method Detail

getCacheSizeback to summary
public int getCacheSize()

The current cache size in KB.

Returns:int

the current size

getCacheSizeMaxback to summary
public int getCacheSizeMax()

The maximum cache size in KB.

Returns:int

the maximum size

getFileReadCountback to summary
public long getFileReadCount()

The file read count since the database was opened.

Returns:long

the read count

getFileSizeback to summary
public long getFileSize()

The database file size in KB.

Returns:long

the number of pages

getFileWriteCountback to summary
public long getFileWriteCount()

The number of write operations since the database was opened.

Returns:long

the write count

getModeback to summary
public String getMode()

The database compatibility mode (REGULAR if no compatibility mode is used).

Returns:String

the database mode

getTraceLevelback to summary
public int getTraceLevel()

The trace level (0 disabled, 1 error, 2 info, 3 debug).

Returns:int

the level

getVersionback to summary
public String getVersion()

The database version.

Returns:String

the version

isExclusiveback to summary
public boolean isExclusive()

Is the database open in exclusive mode?

Returns:boolean

true if the database is open in exclusive mode, false otherwise

isReadOnlyback to summary
public boolean isReadOnly()

Is the database read-only?

Returns:boolean

true if the database is read-only, false otherwise

listSessionsback to summary
public String listSessions()

List sessions, including the queries that are in progress, and locked tables.

Returns:String

information about the sessions

listSettingsback to summary
public String listSettings()

List the database settings.

Returns:String

the database settings

setCacheSizeMaxback to summary
public void setCacheSizeMax(int kb)

Change the maximum size.

Parameters
kb:int

the cache size in KB.

setTraceLevelback to summary
public void setTraceLevel(int level)

Set the trace level.

Parameters
level:int

the new value