com.mongodb
Interface Java5MongoConnectionPoolMBean


public interface Java5MongoConnectionPoolMBean

A standard MBean interface for a Mongo connection pool, for use on Java 5 virtual machines.

This interface is NOT part of the public API. Be prepared for non-binary compatible changes in minor releases.


Method Summary
 String getHost()
          Gets the host that this connection pool is connecting to.
 int getInUse()
          Gets the number of pool members that are currently in use.
 int getMaxSize()
          Gets the maximum allowed size of the pool, including idle and in-use members.
 String getName()
          Gets the name of the pool.
 int getPort()
          Gets the port that this connection pool is connecting to.
 int getTotal()
          Gets the total number of pool members, including idle and and in-use members.
 

Method Detail

getName

String getName()
Gets the name of the pool.

Returns:
the name of the pool

getHost

String getHost()
Gets the host that this connection pool is connecting to.

Returns:
the host

getPort

int getPort()
Gets the port that this connection pool is connecting to.

Returns:
the port

getTotal

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

Returns:
total number of members

getInUse

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

Returns:
number of in-use members

getMaxSize

int getMaxSize()
Gets the maximum allowed size of the pool, including idle and in-use members.

Returns:
the maximum size