Class ConnectionImplementation.ServerErrorTracker

java.lang.Object
org.apache.hadoop.hbase.client.ConnectionImplementation.ServerErrorTracker
Enclosing class:
ConnectionImplementation

The record of errors for servers.
  • Field Details

  • Constructor Details

    • ServerErrorTracker

      public ServerErrorTracker(long timeout, int maxTries)
      Constructor
      Parameters:
      timeout - how long to wait before timeout, in unit of millisecond
      maxTries - how many times to try
  • Method Details

    • canTryMore

      boolean canTryMore(int numAttempt)
      We stop to retry when we have exhausted BOTH the number of tries and the time allocated.
      Parameters:
      numAttempt - how many times we have tried by now
    • calculateBackoffTime

      long calculateBackoffTime(ServerName server, long basePause)
      Calculates the back-off time for a retrying request to a particular server.
      Parameters:
      server - The server in question.
      basePause - The default hci pause.
      Returns:
      The time to wait before sending next request.
    • reportServerError

      Reports that there was an error on the server to do whatever bean-counting necessary.
      Parameters:
      server - The server in question.
    • getStartTrackingTime