@Beta public class JMXConnectionPoolListener extends java.lang.Object implements ConnectionPoolListener
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ConcurrentMap<ServerId,ConnectionPoolStatistics> |
map |
| Constructor and Description |
|---|
JMXConnectionPoolListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionAdded(ConnectionAddedEvent event)
Invoked when a connection is added to a pool.
|
void |
connectionCheckedIn(ConnectionCheckedInEvent event)
Invoked when a connection is checked in to a pool.
|
void |
connectionCheckedOut(ConnectionCheckedOutEvent event)
Invoked when a connection is checked out of a pool.
|
void |
connectionPoolClosed(ConnectionPoolClosedEvent event)
Invoked when a connection pool is closed.
|
void |
connectionPoolOpened(ConnectionPoolOpenedEvent event)
Invoked when a connection pool is opened.
|
void |
connectionRemoved(ConnectionRemovedEvent event)
Invoked when a connection is removed from a pool.
|
private boolean |
containsQuotableCharacter(java.lang.String value) |
private java.lang.String |
ensureValidValue(java.lang.String value) |
(package private) ConnectionPoolStatisticsMBean |
getMBean(ServerId serverId) |
(package private) java.lang.String |
getMBeanObjectName(ServerId serverId) |
private ConnectionPoolStatistics |
getStatistics(ConnectionId connectionId) |
private ConnectionPoolStatistics |
getStatistics(ServerId serverId) |
void |
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
Invoked when a connection pool's wait queue is entered.
|
void |
waitQueueExited(ConnectionPoolWaitQueueExitedEvent event)
Invoked when a connection pools wait queue is exited.
|
private final java.util.concurrent.ConcurrentMap<ServerId,ConnectionPoolStatistics> map
public void connectionPoolOpened(ConnectionPoolOpenedEvent event)
ConnectionPoolListenerconnectionPoolOpened in interface ConnectionPoolListenerevent - the eventpublic void connectionPoolClosed(ConnectionPoolClosedEvent event)
ConnectionPoolListenerconnectionPoolClosed in interface ConnectionPoolListenerevent - the eventpublic void connectionCheckedOut(ConnectionCheckedOutEvent event)
ConnectionPoolListenerconnectionCheckedOut in interface ConnectionPoolListenerevent - the eventpublic void connectionCheckedIn(ConnectionCheckedInEvent event)
ConnectionPoolListenerconnectionCheckedIn in interface ConnectionPoolListenerevent - the eventpublic void waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
ConnectionPoolListenerwaitQueueEntered in interface ConnectionPoolListenerevent - the eventpublic void waitQueueExited(ConnectionPoolWaitQueueExitedEvent event)
ConnectionPoolListenerwaitQueueExited in interface ConnectionPoolListenerevent - the eventpublic void connectionAdded(ConnectionAddedEvent event)
ConnectionPoolListenerconnectionAdded in interface ConnectionPoolListenerevent - the eventpublic void connectionRemoved(ConnectionRemovedEvent event)
ConnectionPoolListenerconnectionRemoved in interface ConnectionPoolListenerevent - the eventjava.lang.String getMBeanObjectName(ServerId serverId)
ConnectionPoolStatisticsMBean getMBean(ServerId serverId)
private ConnectionPoolStatistics getStatistics(ConnectionId connectionId)
private ConnectionPoolStatistics getStatistics(ServerId serverId)
private java.lang.String ensureValidValue(java.lang.String value)
private boolean containsQuotableCharacter(java.lang.String value)