com.mongodb.util
Class ConnectionPoolStatisticsBean

java.lang.Object
  extended by com.mongodb.util.ConnectionPoolStatisticsBean

public class ConnectionPoolStatisticsBean
extends Object

A bean representing connection pool statistics.


Constructor Summary
ConnectionPoolStatisticsBean(int total, int inUse, InUseConnectionBean[] inUseConnections)
           
 
Method Summary
 int getInUse()
          Gets the number of pool members that are currently in use.
 InUseConnectionBean[] getInUseConnections()
          Gets an array of beans describing all the connections that are currently in use.
 int getTotal()
          Gets the total number of pool members, including idle and and in-use members.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolStatisticsBean

public ConnectionPoolStatisticsBean(int total,
                                    int inUse,
                                    InUseConnectionBean[] inUseConnections)
Method Detail

getTotal

public int getTotal()
Gets the total number of pool members, including idle and and in-use members.

Returns:
total number of members

getInUse

public int getInUse()
Gets the number of pool members that are currently in use.

Returns:
number of in-use members

getInUseConnections

public InUseConnectionBean[] getInUseConnections()
Gets an array of beans describing all the connections that are currently in use.

Returns:
array of in-use connection beans