com.caucho.management.server
Interface ConnectionPoolMXBean

All Superinterfaces:
ManagedObjectMXBean
All Known Subinterfaces:
DatabaseMXBean
All Known Implementing Classes:
ConnectionPool, DatabaseAdmin

public interface ConnectionPoolMXBean
extends ManagedObjectMXBean

MBean API for the JCA connection pool.

 resin:type=ConnectionPool,name=jdbc/resin,...
 


Method Summary
 void clear()
          Clears all idle connections in the pool.
 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 connections being created.
 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.
 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 minimum number of idle connections
 boolean isLocalTransactionOptimization()
          Returns true if the local-transaction-optimization is allowed
 boolean isShareable()
          Returns true for the JCA shared attribute.
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getName, getObjectName, getType
 

Method Detail

getMaxConnections

int getMaxConnections()
Returns the maximum number of connections.


getMaxOverflowConnections

int getMaxOverflowConnections()
Returns the number of overflow connections.


getMaxCreateConnections

int getMaxCreateConnections()
Returns the max number of connections trying to connect.


getMaxIdleTime

@Units(value="milliseconds")
long getMaxIdleTime()
Returns the pool idle time in milliseconds.


getMaxIdleCount

int getMaxIdleCount()
Returns the maximum number of idle connections


getMinIdleCount

int getMinIdleCount()
Returns the minimum number of idle connections


getMaxActiveTime

@Units(value="milliseconds")
long getMaxActiveTime()
Returns the pool active time in milliseconds.


getMaxPoolTime

@Units(value="milliseconds")
long getMaxPoolTime()
Returns the pool time in milliseconds.


getConnectionWaitTime

@Units(value="milliseconds")
long getConnectionWaitTime()
How long to wait for connections when timed out.


isShareable

boolean isShareable()
Returns true for the JCA shared attribute.


isLocalTransactionOptimization

boolean isLocalTransactionOptimization()
Returns true if the local-transaction-optimization is allowed


getConnectionCount

int getConnectionCount()
Returns the total number of connections.


getConnectionActiveCount

int getConnectionActiveCount()
Returns the number of active connections.


getConnectionIdleCount

int getConnectionIdleCount()
Returns the number of idle connections.


getConnectionCreateCount

int getConnectionCreateCount()
Returns the number of connections being created.


getConnectionCountTotal

long getConnectionCountTotal()
Returns the total number of connections.


getConnectionCreateCountTotal

long getConnectionCreateCountTotal()
Returns the total number of created connections.


getConnectionFailCountTotal

long getConnectionFailCountTotal()
Returns the total number of failed connections.


getLastFailTime

java.util.Date getLastFailTime()
Returns the last failed connection time.


clear

void clear()
Clears all idle connections in the pool.