public class DatabaseAdmin extends AbstractManagedObject implements DatabaseMXBean
| Constructor and Description |
|---|
DatabaseAdmin(DBPool dbPool,
ConnectionPool jcaPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all idle connections in the pool.
|
void |
close() |
int |
getConnectionActiveCount()
Returns the number of active connections.
|
int |
getConnectionCount()
Returns the total number of connections.
|
long |
getConnectionCountTotal()
Returns the total number of connections.
|
int |
getConnectionCreateCount()
Returns the number of idle connections.
|
long |
getConnectionCreateCountTotal()
Returns the total number of created connections.
|
long |
getConnectionFailCountTotal()
Returns the total number of failed connections.
|
int |
getConnectionIdleCount()
Returns the number of idle connections.
|
long |
getConnectionWaitTime()
How long to wait for connections when timed out.
|
JdbcDriverMXBean[] |
getDrivers()
Returns the pool's jdbc drivers
|
java.util.Date |
getLastFailTime()
Returns the last failed connection time.
|
long |
getMaxActiveTime()
Returns the pool active time in milliseconds.
|
int |
getMaxConnections()
Returns the maximum number of connections.
|
int |
getMaxCreateConnections()
Returns the max number of connections trying to connect.
|
int |
getMaxIdleCount()
Returns the maximum number of idle connections
|
long |
getMaxIdleTime()
Returns the pool idle time in milliseconds.
|
int |
getMaxOverflowConnections()
Returns the number of overflow connections.
|
long |
getMaxPoolTime()
Returns the pool time in milliseconds.
|
int |
getMinIdleCount()
Returns the maximum number of idle connections
|
java.lang.String |
getName()
The JMX name property of the mbean.
|
java.lang.String |
getUrl()
Returns the primary URL for the database.
|
boolean |
isLocalTransactionOptimization()
Returns true if the local-transaction-optimization is allowed
|
boolean |
isShareable()
Returns true for the JCA shared attribute.
|
boolean |
isSpy()
Returns true if spy is enabled
|
java.lang.String |
toString() |
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectName, getTypepublic DatabaseAdmin(DBPool dbPool, ConnectionPool jcaPool)
public java.lang.String getUrl()
DatabaseMXBeangetUrl in interface DatabaseMXBeanpublic boolean isSpy()
isSpy in interface DatabaseMXBeanpublic JdbcDriverMXBean[] getDrivers()
getDrivers in interface DatabaseMXBeanpublic java.lang.String getName()
AbstractManagedObjectgetName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic int getMaxConnections()
getMaxConnections in interface ConnectionPoolMXBeanpublic int getMaxOverflowConnections()
getMaxOverflowConnections in interface ConnectionPoolMXBeanpublic int getMaxCreateConnections()
getMaxCreateConnections in interface ConnectionPoolMXBeanpublic long getMaxIdleTime()
getMaxIdleTime in interface ConnectionPoolMXBeanpublic int getMaxIdleCount()
getMaxIdleCount in interface ConnectionPoolMXBeanpublic int getMinIdleCount()
getMinIdleCount in interface ConnectionPoolMXBeanpublic long getMaxActiveTime()
getMaxActiveTime in interface ConnectionPoolMXBeanpublic long getMaxPoolTime()
getMaxPoolTime in interface ConnectionPoolMXBeanpublic long getConnectionWaitTime()
getConnectionWaitTime in interface ConnectionPoolMXBeanpublic boolean isShareable()
isShareable in interface ConnectionPoolMXBeanpublic boolean isLocalTransactionOptimization()
isLocalTransactionOptimization in interface ConnectionPoolMXBeanpublic int getConnectionCount()
getConnectionCount in interface ConnectionPoolMXBeanpublic int getConnectionActiveCount()
getConnectionActiveCount in interface ConnectionPoolMXBeanpublic int getConnectionIdleCount()
getConnectionIdleCount in interface ConnectionPoolMXBeanpublic int getConnectionCreateCount()
getConnectionCreateCount in interface ConnectionPoolMXBeanpublic long getConnectionCountTotal()
getConnectionCountTotal in interface ConnectionPoolMXBeanpublic long getConnectionCreateCountTotal()
getConnectionCreateCountTotal in interface ConnectionPoolMXBeanpublic long getConnectionFailCountTotal()
getConnectionFailCountTotal in interface ConnectionPoolMXBeanpublic java.util.Date getLastFailTime()
getLastFailTime in interface ConnectionPoolMXBeanpublic void clear()
clear in interface ConnectionPoolMXBeanpublic void close()
public java.lang.String toString()
toString in class AbstractManagedObject