com.mongodb
Interface MongoConnectionPoolMXBean


public interface MongoConnectionPoolMXBean

A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above 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 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.
 ConnectionPoolStatisticsBean getStatistics()
          Gets the statistics for this connection pool.
 

Method Detail

getName

String getName()
Gets the name of the pool.

Returns:
the name of the pool

getMaxSize

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

Returns:
the maximum size

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

getStatistics

ConnectionPoolStatisticsBean getStatistics()
Gets the statistics for this connection pool.

Returns:
the connection pool statistics