Class JdbcConnPoolProbeProvider


  • public class JdbcConnPoolProbeProvider
    extends ConnectionPoolProbeProvider
    Probe provider interface for JDBC connection pool related events to provide information related to the various objects on jdbc pool monitoring.
    Author:
    Shalini M
    • Constructor Detail

      • JdbcConnPoolProbeProvider

        public JdbcConnPoolProbeProvider()
    • Method Detail

      • connectionValidationFailedEvent

        public void connectionValidationFailedEvent​(String poolName,
                                                    String appName,
                                                    String moduleName,
                                                    int increment)
        Emits probe event/notification that the given jdbc connection pool poolNamehas got a connection validation failed event.
        Overrides:
        connectionValidationFailedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName - for which connection validation has failed
        increment - number of times the validation failed
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionTimedOutEvent

        public void connectionTimedOutEvent​(String poolName,
                                            String appName,
                                            String moduleName)
        Emits probe event/notification that a jdbc connection pool with the given name poolName has got a connection timed out event.
        Overrides:
        connectionTimedOutEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName - that has got a connection timed-out event
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • potentialConnLeakEvent

        public void potentialConnLeakEvent​(String poolName,
                                           String appName,
                                           String moduleName)
        Emits probe event/notification that the pool with the given name poolName is having a potentialConnLeak event.
        Overrides:
        potentialConnLeakEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • decrementNumConnFreeEvent

        public void decrementNumConnFreeEvent​(String poolName,
                                              String appName,
                                              String moduleName)
        Emits probe event/notification that the given jdbc connection pool poolNamehas got a decrement free connections size event.
        Overrides:
        decrementNumConnFreeEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName - for which decrement numConnFree is got
        steadyPoolSize -
      • incrementNumConnFreeEvent

        public void incrementNumConnFreeEvent​(String poolName,
                                              String appName,
                                              String moduleName,
                                              boolean beingDestroyed,
                                              int steadyPoolSize)
        Emits probe event/notification that the given jdbc connection pool poolNamehas got a increment free connections size event.
        Overrides:
        incrementNumConnFreeEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName - for which increment numConnFree is got
        beingDestroyed - if connection is destroyed due to error
        steadyPoolSize -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • decrementConnectionUsedEvent

        public void decrementConnectionUsedEvent​(String poolName,
                                                 String appName,
                                                 String moduleName)
        Emits probe event/notification that the given jdbc connection pool poolNamehas got a decrement connections used event.
        Overrides:
        decrementConnectionUsedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName - for which decrement numConnUsed is got
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionUsedEvent

        public void connectionUsedEvent​(String poolName,
                                        String appName,
                                        String moduleName)
        Emits probe event/notification that the given jdbc connection pool poolNamehas got a increment connections used event.
        Overrides:
        connectionUsedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName - for which increment numConnUsed is got
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionsFreedEvent

        public void connectionsFreedEvent​(String poolName,
                                          String appName,
                                          String moduleName,
                                          int count)
        Emits probe event/notification that the given jdbc connection pool poolNamehas got a increment connections free event.
        Overrides:
        connectionsFreedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName - for which increment numConnFree is got
        count - number of connections freed to pool
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionRequestServedEvent

        public void connectionRequestServedEvent​(String poolName,
                                                 String appName,
                                                 String moduleName,
                                                 long timeTakenInMillis)
        Emits probe event/notification that a connection request is served in the time timeTakenInMillis for the given jdbc connection pool poolName
        Overrides:
        connectionRequestServedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        timeTakenInMillis - time taken to serve a connection
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionDestroyedEvent

        public void connectionDestroyedEvent​(String poolName,
                                             String appName,
                                             String moduleName)
        Emits probe event/notification that a connection is destroyed for the given jdbc connection pool poolName
        Overrides:
        connectionDestroyedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionAcquiredEvent

        public void connectionAcquiredEvent​(String poolName,
                                            String appName,
                                            String moduleName)
        Emits probe event/notification that a connection is acquired by application for the given jdbc connection pool poolName
        Overrides:
        connectionAcquiredEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionReleasedEvent

        public void connectionReleasedEvent​(String poolName,
                                            String appName,
                                            String moduleName)
        Emits probe event/notification that a connection is released for the given jdbc connection pool poolName
        Overrides:
        connectionReleasedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionCreatedEvent

        public void connectionCreatedEvent​(String poolName,
                                           String appName,
                                           String moduleName)
        Emits probe event/notification that a new connection is created for the given jdbc connection pool poolName
        Overrides:
        connectionCreatedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionMatchedEvent

        public void connectionMatchedEvent​(String poolName,
                                           String appName,
                                           String moduleName)
        Emits probe event/notification that a connection under test matches the current request for the given jdbc connection pool poolName
        Overrides:
        connectionMatchedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionNotMatchedEvent

        public void connectionNotMatchedEvent​(String poolName,
                                              String appName,
                                              String moduleName)
        Emits probe event/notification that a connection under test does not match the current request for the given jdbc connection pool poolName
        Overrides:
        connectionNotMatchedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionRequestQueuedEvent

        public void connectionRequestQueuedEvent​(String poolName,
                                                 String appName,
                                                 String moduleName)
        Emits probe event/notification that the wait queue length has increased for the given jdbc connection pool poolName
        Overrides:
        connectionRequestQueuedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined
      • connectionRequestDequeuedEvent

        public void connectionRequestDequeuedEvent​(String poolName,
                                                   String appName,
                                                   String moduleName)
        Emits probe event/notification that the wait queue length has decreased for the given jdbc connection pool poolName
        Overrides:
        connectionRequestDequeuedEvent in class ConnectionPoolProbeProvider
        Parameters:
        poolName -
        appName - application-name in which the pool is defined
        moduleName - module-name in which the pool is defined