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, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public DatabaseAdmin(DBPool dbPool, ConnectionPool jcaPool)
public java.lang.String getUrl()
DatabaseMXBean
getUrl
in interface DatabaseMXBean
public boolean isSpy()
isSpy
in interface DatabaseMXBean
public JdbcDriverMXBean[] getDrivers()
getDrivers
in interface DatabaseMXBean
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public int getMaxConnections()
getMaxConnections
in interface ConnectionPoolMXBean
public int getMaxOverflowConnections()
getMaxOverflowConnections
in interface ConnectionPoolMXBean
public int getMaxCreateConnections()
getMaxCreateConnections
in interface ConnectionPoolMXBean
public long getMaxIdleTime()
getMaxIdleTime
in interface ConnectionPoolMXBean
public int getMaxIdleCount()
getMaxIdleCount
in interface ConnectionPoolMXBean
public int getMinIdleCount()
getMinIdleCount
in interface ConnectionPoolMXBean
public long getMaxActiveTime()
getMaxActiveTime
in interface ConnectionPoolMXBean
public long getMaxPoolTime()
getMaxPoolTime
in interface ConnectionPoolMXBean
public long getConnectionWaitTime()
getConnectionWaitTime
in interface ConnectionPoolMXBean
public boolean isShareable()
isShareable
in interface ConnectionPoolMXBean
public boolean isLocalTransactionOptimization()
isLocalTransactionOptimization
in interface ConnectionPoolMXBean
public int getConnectionCount()
getConnectionCount
in interface ConnectionPoolMXBean
public int getConnectionActiveCount()
getConnectionActiveCount
in interface ConnectionPoolMXBean
public int getConnectionIdleCount()
getConnectionIdleCount
in interface ConnectionPoolMXBean
public int getConnectionCreateCount()
getConnectionCreateCount
in interface ConnectionPoolMXBean
public long getConnectionCountTotal()
getConnectionCountTotal
in interface ConnectionPoolMXBean
public long getConnectionCreateCountTotal()
getConnectionCreateCountTotal
in interface ConnectionPoolMXBean
public long getConnectionFailCountTotal()
getConnectionFailCountTotal
in interface ConnectionPoolMXBean
public java.util.Date getLastFailTime()
getLastFailTime
in interface ConnectionPoolMXBean
public void clear()
clear
in interface ConnectionPoolMXBean
public void close()
public java.lang.String toString()
toString
in class AbstractManagedObject