Tabnine Logo
ClientBackoffPolicy
Code IndexAdd Tabnine to your IDE (free)

How to use
ClientBackoffPolicy
in
org.apache.hadoop.hbase.client.backoff

Best Java code snippets using org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy (Showing top 6 results out of 315)

origin: apache/hbase

/**
 * @param server server location where the target region is hosted
 * @param regionName name of the region which we are going to write some data
 * @return the amount of time the client should wait until it submit a request to the
 * specified server and region
 */
private Long getBackoff(ServerName server, byte[] regionName) {
 ServerStatisticTracker tracker = asyncProcess.connection.getStatisticsTracker();
 ServerStatistics stats = tracker.getStats(server);
 return asyncProcess.connection.getBackoffPolicy()
   .getBackoffTime(server, regionName, stats);
}
origin: apache/hbase

 regionStats.getMemStoreLoadPercent());
long backoffTime = backoffPolicy.getBackoffTime(server, regionName, serverStats);
assertNotEquals("Reported load does not produce a backoff", 0, backoffTime);
LOG.debug("Backoff calculated for " + region.getRegionInfo().getRegionNameAsString() + " @ " +
origin: org.apache.hbase/hbase-client

/**
 * @param server server location where the target region is hosted
 * @param regionName name of the region which we are going to write some data
 * @return the amount of time the client should wait until it submit a request to the
 * specified server and region
 */
private Long getBackoff(ServerName server, byte[] regionName) {
 ServerStatisticTracker tracker = asyncProcess.connection.getStatisticsTracker();
 ServerStatistics stats = tracker.getStats(server);
 return asyncProcess.connection.getBackoffPolicy()
   .getBackoffTime(server, regionName, stats);
}
origin: com.aliyun.hbase/alihbase-client

/**
 * @param server server location where the target region is hosted
 * @param regionName name of the region which we are going to write some data
 * @return the amount of time the client should wait until it submit a request to the
 * specified server and region
 */
private Long getBackoff(ServerName server, byte[] regionName) {
 ServerStatisticTracker tracker = asyncProcess.connection.getStatisticsTracker();
 ServerStatistics stats = tracker.getStats(server);
 return asyncProcess.connection.getBackoffPolicy()
   .getBackoffTime(server, regionName, stats);
}
origin: harbby/presto-connectors

/**
 * @param server server location where the target region is hosted
 * @param regionName name of the region which we are going to write some data
 * @return the amount of time the client should wait until it submit a request to the
 * specified server and region
 */
private Long getBackoff(ServerName server, byte[] regionName) {
 ServerStatisticTracker tracker = AsyncProcess.this.connection.getStatisticsTracker();
 ServerStatistics stats = tracker.getStats(server);
 return AsyncProcess.this.connection.getBackoffPolicy()
   .getBackoffTime(server, regionName, stats);
}
origin: org.apache.hbase/hbase-server

 regionStats.getMemStoreLoadPercent());
long backoffTime = backoffPolicy.getBackoffTime(server, regionName, serverStats);
assertNotEquals("Reported load does not produce a backoff", 0, backoffTime);
LOG.debug("Backoff calculated for " + region.getRegionInfo().getRegionNameAsString() + " @ " +
org.apache.hadoop.hbase.client.backoffClientBackoffPolicy

Javadoc

Configurable policy for the amount of time a client should wait for a new request to the server when given the server load statistics.

Must have a single-argument constructor that takes a org.apache.hadoop.conf.Configuration

Most used methods

  • getBackoffTime

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JButton (javax.swing)
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now