org.apache.synapse.commons.datasource

## Interface DBPoolViewMBean

- All Known Implementing Classes:
    DBPoolView

      public interface DBPoolViewMBean

  MBean for retrieving some statistics about the connection pool

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Map` | `getConnectionUsage()` Connection information as a string
    `java.lang.String` | `getName()` Data source name
    `int` | `getNumActive()` Number of active connections
    `int` | `getNumIdle()` Number of idle connections
    `void` | `reset()` reset statistics

- - ### Method Detail

    - #### getNumActive

          int getNumActive()

      Number of active connections
      Returns:
        `int` Number of active connections

    - #### getNumIdle

          int getNumIdle()

      Number of idle connections
      Returns:
        `int` Number of idle connections

    - #### getName

          java.lang.String getName()

      Data source name
      Returns:
        `String` data source name

    - #### getConnectionUsage

          java.util.Map getConnectionUsage()

      Connection information as a string
      Returns:
        `String` representing connection information

    - #### reset

          void reset()

      reset statistics

Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.