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

How to use
RpcThrottlingException
in
org.apache.hadoop.hbase.quotas

Best Java code snippets using org.apache.hadoop.hbase.quotas.RpcThrottlingException (Showing top 20 results out of 315)

origin: apache/hbase

public static void throwNumRequestsExceeded(final long waitInterval) throws
  RpcThrottlingException {
 throwThrottlingException(Type.NumRequestsExceeded, waitInterval);
}
origin: apache/hbase

public RpcThrottlingException(String msg) {
 super(msg);
 // Dirty workaround to get the information after
 // ((RemoteException)e.getCause()).unwrapRemoteException()
 for (int i = 0; i < MSG_TYPE.length; ++i) {
  int index = msg.indexOf(MSG_TYPE[i]);
  if (index >= 0) {
   String waitTimeStr = msg.substring(index + MSG_TYPE[i].length() + MSG_WAIT.length());
   type = Type.values()[i];
   waitInterval = timeFromString(waitTimeStr);
   break;
  }
 }
}
origin: apache/hbase

 throws RpcThrottlingException {
if (!reqsLimiter.canExecute(writeReqs + readReqs)) {
 RpcThrottlingException.throwNumRequestsExceeded(reqsLimiter.waitInterval());
 RpcThrottlingException.throwRequestSizeExceeded(
   reqSizeLimiter.waitInterval(estimateWriteSize + estimateReadSize));
 RpcThrottlingException.throwRequestCapacityUnitExceeded(
  reqCapacityUnitLimiter.waitInterval(estimateWriteCapacityUnit + estimateReadCapacityUnit));
  RpcThrottlingException.throwNumWriteRequestsExceeded(writeReqsLimiter.waitInterval());
  RpcThrottlingException.throwWriteSizeExceeded(
    writeSizeLimiter.waitInterval(estimateWriteSize));
  RpcThrottlingException.throwWriteCapacityUnitExceeded(
   writeCapacityUnitLimiter.waitInterval(estimateWriteCapacityUnit));
  RpcThrottlingException.throwNumReadRequestsExceeded(readReqsLimiter.waitInterval());
  RpcThrottlingException.throwReadSizeExceeded(
    readSizeLimiter.waitInterval(estimateReadSize));
  RpcThrottlingException.throwReadCapacityUnitExceeded(
   readCapacityUnitLimiter.waitInterval(estimateReadCapacityUnit));
origin: apache/hbase

private static void throwThrottlingException(final Type type, final long waitInterval)
  throws RpcThrottlingException {
 String msg = MSG_TYPE[type.ordinal()] + MSG_WAIT + StringUtils.formatTime(waitInterval);
 throw new RpcThrottlingException(type, waitInterval, msg);
}
origin: apache/hbase

     " table=" + table + " numWrites=" + numWrites +
     " numReads=" + numReads + " numScans=" + numScans +
     ": " + e.getMessage());
throw e;
origin: apache/hbase

public static List<Throwable> metaCachePreservingExceptions() {
 return new ArrayList<Throwable>() {{
   add(new RegionOpeningException(" "));
   add(new RegionTooBusyException("Some old message"));
   add(new RpcThrottlingException(" "));
   add(new MultiActionResultTooLarge(" "));
   add(new RetryImmediatelyException(" "));
   add(new CallQueueTooBigException());
 }};
}
origin: apache/hbase

public static void throwNumReadRequestsExceeded(final long waitInterval)
  throws RpcThrottlingException {
 throwThrottlingException(Type.NumReadRequestsExceeded, waitInterval);
}
origin: org.apache.hbase/hbase-client

private static void throwThrottlingException(final Type type, final long waitInterval)
  throws RpcThrottlingException {
 String msg = MSG_TYPE[type.ordinal()] + MSG_WAIT + StringUtils.formatTime(waitInterval);
 throw new RpcThrottlingException(type, waitInterval, msg);
}
origin: org.apache.hbase/hbase-client

public RpcThrottlingException(String msg) {
 super(msg);
 // Dirty workaround to get the information after
 // ((RemoteException)e.getCause()).unwrapRemoteException()
 for (int i = 0; i < MSG_TYPE.length; ++i) {
  int index = msg.indexOf(MSG_TYPE[i]);
  if (index >= 0) {
   String waitTimeStr = msg.substring(index + MSG_TYPE[i].length() + MSG_WAIT.length());
   type = Type.values()[i];
   waitInterval = timeFromString(waitTimeStr);
   break;
  }
 }
}
origin: apache/hbase

public static void throwNumWriteRequestsExceeded(final long waitInterval)
  throws RpcThrottlingException {
 throwThrottlingException(Type.NumWriteRequestsExceeded, waitInterval);
}
origin: com.aliyun.hbase/alihbase-client

private static void throwThrottlingException(final Type type, final long waitInterval)
  throws RpcThrottlingException {
 String msg = MSG_TYPE[type.ordinal()] + MSG_WAIT + StringUtils.formatTime(waitInterval);
 throw new RpcThrottlingException(type, waitInterval, msg);
}
origin: com.aliyun.hbase/alihbase-client

public RpcThrottlingException(String msg) {
 super(msg);
 // Dirty workaround to get the information after
 // ((RemoteException)e.getCause()).unwrapRemoteException()
 for (int i = 0; i < MSG_TYPE.length; ++i) {
  int index = msg.indexOf(MSG_TYPE[i]);
  if (index >= 0) {
   String waitTimeStr = msg.substring(index + MSG_TYPE[i].length() + MSG_WAIT.length());
   type = Type.values()[i];
   waitInterval = timeFromString(waitTimeStr);
   break;
  }
 }
}
origin: apache/hbase

public static void throwReadSizeExceeded(final long waitInterval) throws RpcThrottlingException {
 throwThrottlingException(Type.ReadSizeExceeded, waitInterval);
}
origin: org.apache.hbase/hbase-server

public static List<Throwable> metaCachePreservingExceptions() {
 return new ArrayList<Throwable>() {{
   add(new RegionOpeningException(" "));
   add(new RegionTooBusyException("Some old message"));
   add(new RpcThrottlingException(" "));
   add(new MultiActionResultTooLarge(" "));
   add(new RetryImmediatelyException(" "));
   add(new CallQueueTooBigException());
 }};
}
origin: apache/hbase

public static void throwRequestCapacityUnitExceeded(final long waitInterval)
  throws RpcThrottlingException {
 throwThrottlingException(Type.RequestCapacityUnitExceeded, waitInterval);
}
origin: apache/hbase

public static void throwRequestSizeExceeded(final long waitInterval)
  throws RpcThrottlingException {
 throwThrottlingException(Type.RequestSizeExceeded, waitInterval);
}
origin: apache/hbase

public static void throwReadCapacityUnitExceeded(final long waitInterval)
  throws RpcThrottlingException {
 throwThrottlingException(Type.ReadCapacityUnitExceeded, waitInterval);
}
origin: apache/hbase

public static void throwWriteCapacityUnitExceeded(final long waitInterval)
  throws RpcThrottlingException {
 throwThrottlingException(Type.WriteCapacityUnitExceeded, waitInterval);
}
origin: apache/hbase

public static void throwWriteSizeExceeded(final long waitInterval) throws RpcThrottlingException {
 throwThrottlingException(Type.WriteSizeExceeded, waitInterval);
}
origin: org.apache.hbase/hbase-client

public static void throwNumRequestsExceeded(final long waitInterval) throws
  RpcThrottlingException {
 throwThrottlingException(Type.NumRequestsExceeded, waitInterval);
}
org.apache.hadoop.hbase.quotasRpcThrottlingException

Javadoc

Describe the throttling result. TODO: At some point this will be handled on the client side to prevent operation to go on the server if the waitInterval is greater than the one got as result of this exception.

Most used methods

  • <init>
  • throwThrottlingException
  • timeFromString
  • getMessage
  • throwNumReadRequestsExceeded
  • throwNumRequestsExceeded
  • throwNumWriteRequestsExceeded
  • throwReadCapacityUnitExceeded
  • throwReadSizeExceeded
  • throwRequestCapacityUnitExceeded
  • throwRequestSizeExceeded
  • throwWriteCapacityUnitExceeded
  • throwRequestSizeExceeded,
  • throwWriteCapacityUnitExceeded,
  • throwWriteSizeExceeded

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Collectors (java.util.stream)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ plugins
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