Package de.hybris.platform.jmx.mbeans
Interface DatabaseOverviewMBean
-
- All Known Implementing Classes:
DatabaseOverviewMBeanImpl
public interface DatabaseOverviewMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>getAllDataSourceIDs()longgetConnections()java.lang.StringgetDatabaseName()java.lang.StringgetDatabaseURL()java.lang.StringgetDatabaseUser()java.lang.StringgetDatabaseVersion()java.lang.StringgetDriverVersion()java.lang.StringgetID()java.lang.StringgetJNDIName()java.lang.IntegergetLoginTimeout()seeCommonDataSource.getLoginTimeout()intgetMaxAllowedPhysicalOpen()intgetMaxInUse()intgetMaxPhysicalOpen()intgetMaxPreparedParameterCount()longgetMillisWaitedForConnection()intgetNumInUse()intgetNumPhysicalOpen()java.lang.StringgetSchemaName()java.lang.StringgetTablePrefix()booleanisActive()booleanisCanConnectToDataSource()booleanisReadOnly()voidresetStats()Reset the statistics.
-
-
-
Method Detail
-
getDatabaseName
java.lang.String getDatabaseName()
- Returns:
- the database name
-
getDatabaseURL
java.lang.String getDatabaseURL()
- Returns:
- the URL of the database
-
getDatabaseUser
java.lang.String getDatabaseUser()
- Returns:
- the database user
-
getDatabaseVersion
java.lang.String getDatabaseVersion()
- Returns:
- the database version
-
getDriverVersion
java.lang.String getDriverVersion()
- Returns:
- the database driver version
-
getID
java.lang.String getID()
- Returns:
- the ID of the current data source
-
getJNDIName
java.lang.String getJNDIName()
- Returns:
- the JNDI name
-
getLoginTimeout
java.lang.Integer getLoginTimeout()
seeCommonDataSource.getLoginTimeout()
-
getMaxAllowedPhysicalOpen
int getMaxAllowedPhysicalOpen()
- Returns:
- the maximum number of objects that can be allocated by the pool
-
getMaxInUse
int getMaxInUse()
- Returns:
- the maximum number of the 'in use' connection
-
getMaxPhysicalOpen
int getMaxPhysicalOpen()
- Returns:
- the maximum number of physical SQL connections.
-
getMaxPreparedParameterCount
int getMaxPreparedParameterCount()
- Returns:
- the maximum allowed number of parameters within one prepared statement; -1 if no limit exists
-
getMillisWaitedForConnection
long getMillisWaitedForConnection()
- Returns:
- the time in milliseconds how long it took to get a connection from the pool
-
getNumInUse
int getNumInUse()
- Returns:
- the number of instances currently borrowed from the pool.
-
getNumPhysicalOpen
int getNumPhysicalOpen()
- Returns:
- number of currently open JDBC connections.
-
getSchemaName
java.lang.String getSchemaName()
- Returns:
- the schema name of the database
-
isCanConnectToDataSource
boolean isCanConnectToDataSource()
- Returns:
falseif a connection the pool is not possible.
-
getTablePrefix
java.lang.String getTablePrefix()
- Returns:
- the table prefix for all tables
-
isReadOnly
boolean isReadOnly()
- Returns:
trueif the datasoure is read-only
-
resetStats
void resetStats()
-
isActive
boolean isActive()
- Returns:
trueif the current data source is active.
-
getAllDataSourceIDs
java.util.Set<java.lang.String> getAllDataSourceIDs()
- Returns:
- a list with all available data source IDs for the current tenant
-
getConnections
long getConnections()
- Returns:
- the total number of connections so far. Reset with resetStats()
-
-