|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.management.server.AbstractManagedObject
com.caucho.sql.DatabaseAdmin
public class DatabaseAdmin
| Constructor Summary | |
|---|---|
DatabaseAdmin(DBPool dbPool,
ConnectionPool jcaPool)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.caucho.management.server.AbstractManagedObject |
|---|
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean |
|---|
getObjectName, getType |
| Constructor Detail |
|---|
public DatabaseAdmin(DBPool dbPool,
ConnectionPool jcaPool)
| Method Detail |
|---|
public java.lang.String getUrl()
DatabaseMXBean
getUrl in interface DatabaseMXBeanpublic boolean isSpy()
isSpy in interface DatabaseMXBeanpublic JdbcDriverMXBean[] getDrivers()
getDrivers in interface DatabaseMXBeanpublic java.lang.String getName()
AbstractManagedObject
getName 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||