| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final Log | |
| protected static final ConcurrentHashMap | |
| protected volatile NotificationBroadcasterSupport | |
| protected boolean | |
| protected static final AtomicLong | |
| public static final String | |
| protected ConnectionPool | |
| protected String | |
| public static final String | |
| protected static volatile CompositeType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addNotificationListener(NotificationListener
The listener object which will handle the
notifications emitted by the broadcaster. listener, NotificationFilter The filter object. If filter is null, no
filtering will be performed before handling notifications. filter, Object An opaque object to be sent back to the
listener when a notification is emitted. This object cannot be
used by the Notification broadcaster object. It should be
resent unchanged with the notification to the listener. handback)Implements javax. Adds a listener to this MBean. |
| protected void | |
| protected static CompositeType | |
| public MBeanNotificationInfo[] | getNotificationInfo()
Implements javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. |
| public ObjectName | |
| public String | Returns: the name of the pool, unique within the JVMJMX operation - return the name of the pool |
| public String[] | Returns: - all the names of pools that we have stored data forJMX operation - return the names of all the pools |
| public CompositeData[] | Returns: - the slow query report as composite data.Implements org. JMX operation - returns all the queries we have collected. |
| public boolean | |
| protected void | |
| public void | poolClosed(ConnectionPool
- the pool that is being closed. pool)Overrides org. This method is invoked by a connection pool when the pool is closed. |
| public void | poolStarted(ConnectionPool
- the pool that is being closed. pool)Overrides org. This method is invoked by a connection pool when the pool is first started up, usually when the first connection is requested. |
| protected void | |
| public void | removeNotificationListener(NotificationListener
A listener that was previously added to this
MBean. listener)Implements javax. Removes a listener from this MBean. |
| public void | removeNotificationListener(NotificationListener
A listener that was previously added to this
MBean. listener, NotificationFilter The filter that was specified when the listener
was added. filter, Object The handback that was specified when the listener was
added. handback)Implements javax. Removes a listener from this MBean. |
| protected String | reportFailedQuery(String
the query that was executed and failed query, Object[] the arguments to the execution args, String the name of the method used to execute name, long AbstractCreateStatementInterceptor#isExecute(Method, boolean)the time the query execution started start, Throwable the exception that happened t)Overrides org. Invoked when a query execution, a call to execute/executeQuery or executeBatch failed. |
| protected String | reportSlowQuery(String
the query that was executed and failed query, Object[] the arguments to the execution args, String the name of the method used to execute name, long AbstractCreateStatementInterceptor#isExecute(Method, boolean)the time the query execution started start, long the time the execution took delta)Overrides org. Invoked when a query execution, a call to execute/executeQuery or executeBatch succeeded and was exceeded the timing threshold |
| public void | reset(ConnectionPool
- the connection pool owning the connection parent, PooledConnection - the pooled connection con)Overrides org. no-op for this interceptor. |
| public void | |
| public void | |
| public void | setProperties(Map<String, PoolProperties.
The properties propertiesOverrides org. Called during the creation of an interceptor The properties can be set during the configuration of an interceptor Override this method to perform type casts between string values and object properties |
| FAILED_QUERY_NOTIFICATION | back to summary |
|---|---|
| public static final String FAILED_QUERY_NOTIFICATION | |
| log | back to summary |
|---|---|
| private static final Log log Hides org. | |
| mbeans | back to summary |
|---|---|
| protected static final ConcurrentHashMap<String, SlowQueryReportJmxMBean> mbeans | |
| notifier | back to summary |
|---|---|
| protected volatile NotificationBroadcasterSupport notifier | |
| notifyPool | back to summary |
|---|---|
| protected boolean notifyPool | |
| notifySequence | back to summary |
|---|---|
| protected static final AtomicLong notifySequence | |
| objectNameAttribute | back to summary |
|---|---|
| public static final String objectNameAttribute | |
| pool | back to summary |
|---|---|
| protected ConnectionPool pool | |
| poolName | back to summary |
|---|---|
| protected String poolName | |
| SLOW_QUERY_NOTIFICATION | back to summary |
|---|---|
| public static final String SLOW_QUERY_NOTIFICATION | |
| SLOW_QUERY_TYPE | back to summary |
|---|---|
| protected static volatile CompositeType SLOW_QUERY_TYPE | |
| SlowQueryReportJmx | back to summary |
|---|---|
| public SlowQueryReportJmx() | |
| addNotificationListener | back to summary |
|---|---|
| public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException Implements javax. Doc from javax. Adds a listener to this MBean.
| |
| deregisterJmx | back to summary |
|---|---|
| protected void deregisterJmx() | |
| getCompositeType | back to summary |
|---|---|
| protected static CompositeType getCompositeType() | |
| getNotificationInfo | back to summary |
|---|---|
| public MBeanNotificationInfo[] getNotificationInfo() Implements javax. Doc from javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning.
| |
| getObjectName | back to summary |
|---|---|
| public ObjectName getObjectName(Class<?> clazz, String poolName) throws MalformedObjectNameException | |
| getPoolName | back to summary |
|---|---|
| public String getPoolName() JMX operation - return the name of the pool
| |
| getPoolNames | back to summary |
|---|---|
| public String[] getPoolNames() JMX operation - return the names of all the pools
| |
| getSlowQueriesCD | back to summary |
|---|---|
| public CompositeData[] getSlowQueriesCD() throws OpenDataException Implements org. JMX operation - returns all the queries we have collected.
| |
| isNotifyPool | back to summary |
|---|---|
| public boolean isNotifyPool() | |
| notifyJmx | back to summary |
|---|---|
| protected void notifyJmx(String query, String type) | |
| poolClosed | back to summary |
|---|---|
| public void poolClosed(ConnectionPool pool) Overrides org. Doc from org. This method is invoked by a connection pool when the pool is closed. Interceptor classes can override this method if they keep static variables or other tracking means around. This method is only invoked on a single instance of the interceptor, and not on every instance created.
| |
| poolStarted | back to summary |
|---|---|
| public void poolStarted(ConnectionPool pool) Overrides org. Doc from org. This method is invoked by a connection pool when the pool is first started up, usually when the first connection is requested. Interceptor classes can override this method if they keep static variables or other tracking means around. This method is only invoked on a single instance of the interceptor, and not on every instance created.
| |
| registerJmx | back to summary |
|---|---|
| protected void registerJmx() | |
| removeNotificationListener | back to summary |
|---|---|
| public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException Implements javax. Doc from javax. Removes a listener from this MBean. If the listener has been registered with different handback objects or notification filters, all entries corresponding to the listener will be removed.
| |
| removeNotificationListener | back to summary |
|---|---|
| public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException Implements javax. Doc from javax. Removes a listener from this MBean. The MBean must have a
listener that exactly matches the given The
| |
| reportFailedQuery | back to summary |
|---|---|
| protected String reportFailedQuery(String query, Object[] args, String name, long start, Throwable t) Overrides org. Doc from org. Invoked when a query execution, a call to execute/executeQuery or executeBatch failed.
| |
| reportSlowQuery | back to summary |
|---|---|
| protected String reportSlowQuery(String query, Object[] args, String name, long start, long delta) Overrides org. Doc from org. Invoked when a query execution, a call to execute/executeQuery or executeBatch succeeded and was exceeded the timing threshold
| |
| reset | back to summary |
|---|---|
| public void reset(ConnectionPool parent, PooledConnection con) Overrides org. Doc from org. no-op for this interceptor. no state is stored.
| |
| resetStats | back to summary |
|---|---|
| public void resetStats() JMX operation - remove all stats for this connection pool | |
| setNotifyPool | back to summary |
|---|---|
| public void setNotifyPool(boolean notifyPool) | |
| setProperties | back to summary |
|---|---|
| public void setProperties(Map<String, PoolProperties. Overrides org. Doc from org. Called during the creation of an interceptor The properties can be set during the configuration of an interceptor Override this method to perform type casts between string values and object properties
| |