Skip to content
rantav edited this page Sep 14, 2010 · 5 revisions

Hector provides very rich JMX support:

WriteFail
ReadFail
RecoverableTimedOutCount
RecoverableUnavailableCount
RecoverableTransportExceptionCount
RecoverableErrorCount
SkipHostSuccess
NumPoolExhaustedEventCount
NumPools
PoolNames
NumIdleConnections
NumActive
NumExhaustedPools

  long getRecoverableLoadBalancedConnectErrors();

  /**
   * List of exhausted pools.
   * @return
   */
  Set<String> getExhaustedPoolNames();

  /**
   * Number of threads that are currently blocked, waiting for a free connection.
   * This number may be greater than 0 only if the {@link ExhaustedPolicy} is
   * {@link ExhaustedPolicy#WHEN_EXHAUSTED_BLOCK}
   */
  int getNumBlockedThreads();

  /**
   * How many times did initial connection failed.
   * @return
   */
  long getNumConnectionErrors();

  public Set<String> getKnownHosts();

  /**
   * Tells all pulls to update their list of known hosts.
   * This is useful when an admin adds/removes a host from the ring and wants the application to
   * update asap.
   */
  public void updateKnownHosts() throws TException;
Clone this wiki locally