com.netflix.astyanax.connectionpool
Class JmxConnectionPoolMonitor

java.lang.Object
  extended by com.netflix.astyanax.connectionpool.JmxConnectionPoolMonitor
All Implemented Interfaces:
JmxConnectionPoolMonitorMBean

public class JmxConnectionPoolMonitor
extends Object
implements JmxConnectionPoolMonitorMBean

MBean monitoring for a connection pool

Author:
elandau

Constructor Summary
JmxConnectionPoolMonitor(ConnectionPool<?> pool)
           
 
Method Summary
 boolean addHost(String host)
           
 String getActiveHosts()
           
 boolean hasHost(String host)
           
 boolean isHostUp(String host)
           
 boolean removeHost(String host)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxConnectionPoolMonitor

public JmxConnectionPoolMonitor(ConnectionPool<?> pool)
Method Detail

addHost

public boolean addHost(String host)
Specified by:
addHost in interface JmxConnectionPoolMonitorMBean

removeHost

public boolean removeHost(String host)
Specified by:
removeHost in interface JmxConnectionPoolMonitorMBean

isHostUp

public boolean isHostUp(String host)
Specified by:
isHostUp in interface JmxConnectionPoolMonitorMBean

hasHost

public boolean hasHost(String host)
Specified by:
hasHost in interface JmxConnectionPoolMonitorMBean

getActiveHosts

public String getActiveHosts()
Specified by:
getActiveHosts in interface JmxConnectionPoolMonitorMBean


Copyright © 2012. All Rights Reserved.