@Override public void connectionPoolOpened(final ConnectionPoolOpenedEvent event) { ConnectionPoolStatistics statistics = new ConnectionPoolStatistics(event); map.put( new ClusterIdServerAddressPair(event.getClusterId(), event.getServerAddress()), statistics); MBeanServerFactory.getMBeanServer() .registerMBean( statistics, getMBeanObjectName(event.getClusterId(), event.getServerAddress())); }
public ConnectionPoolStatistics(final ConnectionPoolOpenedEvent event) { serverAddress = event.getServerAddress(); settings = event.getSettings(); }