class JMXConnectionPoolListener extends java.lang.Object implements ConnectionPoolListener
| Modifier and Type | Class and Description |
|---|---|
private static class |
JMXConnectionPoolListener.ClusterIdServerAddressPair |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
clusterDescription |
private java.util.concurrent.ConcurrentMap<JMXConnectionPoolListener.ClusterIdServerAddressPair,ConnectionPoolStatistics> |
map |
| Constructor and Description |
|---|
JMXConnectionPoolListener(java.lang.String clusterDescription) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionAdded(ConnectionEvent event)
Invoked when a connection is added to a pool.
|
void |
connectionCheckedIn(ConnectionEvent event)
Invoked when a connection is checked in to a pool.
|
void |
connectionCheckedOut(ConnectionEvent event)
Invoked when a connection is checked out of a pool.
|
void |
connectionPoolClosed(ConnectionPoolEvent event)
Invoked when a connection pool is closed.
|
void |
connectionPoolOpened(ConnectionPoolOpenedEvent event)
Invoked when a connection pool is opened.
|
void |
connectionRemoved(ConnectionEvent event)
Invoked when a connection is removed from a pool.
|
ConnectionPoolStatisticsMBean |
getMBean(java.lang.String clusterId,
ServerAddress serverAddress) |
java.lang.String |
getMBeanObjectName(java.lang.String clusterId,
ServerAddress serverAddress) |
private ConnectionPoolStatistics |
getStatistics(ConnectionEvent event) |
private ConnectionPoolListener |
getStatistics(ConnectionPoolEvent event) |
private ConnectionPoolStatistics |
getStatistics(java.lang.String clusterId,
ServerAddress serverAddress) |
void |
waitQueueEntered(ConnectionPoolWaitQueueEvent event)
Invoked when a connection pool's wait queue is entered.
|
void |
waitQueueExited(ConnectionPoolWaitQueueEvent event)
Invoked when a connection pools wait queue is exited.
|
private final java.util.concurrent.ConcurrentMap<JMXConnectionPoolListener.ClusterIdServerAddressPair,ConnectionPoolStatistics> map
private final java.lang.String clusterDescription
public JMXConnectionPoolListener(java.lang.String clusterDescription)
public java.lang.String getMBeanObjectName(java.lang.String clusterId,
ServerAddress serverAddress)
public ConnectionPoolStatisticsMBean getMBean(java.lang.String clusterId, ServerAddress serverAddress)
public void connectionPoolOpened(ConnectionPoolOpenedEvent event)
ConnectionPoolListenerconnectionPoolOpened in interface ConnectionPoolListenerevent - the eventpublic void connectionPoolClosed(ConnectionPoolEvent event)
ConnectionPoolListenerconnectionPoolClosed in interface ConnectionPoolListenerevent - the eventpublic void connectionCheckedOut(ConnectionEvent event)
ConnectionPoolListenerconnectionCheckedOut in interface ConnectionPoolListenerevent - the eventpublic void connectionCheckedIn(ConnectionEvent event)
ConnectionPoolListenerconnectionCheckedIn in interface ConnectionPoolListenerevent - the eventpublic void waitQueueEntered(ConnectionPoolWaitQueueEvent event)
ConnectionPoolListenerwaitQueueEntered in interface ConnectionPoolListenerevent - the eventpublic void waitQueueExited(ConnectionPoolWaitQueueEvent event)
ConnectionPoolListenerwaitQueueExited in interface ConnectionPoolListenerevent - the eventpublic void connectionAdded(ConnectionEvent event)
ConnectionPoolListenerconnectionAdded in interface ConnectionPoolListenerevent - the eventpublic void connectionRemoved(ConnectionEvent event)
ConnectionPoolListenerconnectionRemoved in interface ConnectionPoolListenerevent - the eventprivate ConnectionPoolStatistics getStatistics(ConnectionEvent event)
private ConnectionPoolListener getStatistics(ConnectionPoolEvent event)
private ConnectionPoolStatistics getStatistics(java.lang.String clusterId, ServerAddress serverAddress)