Codota Logo
CallQueue.updateMetrics
Code IndexAdd Codota to your IDE (free)

How to use
updateMetrics
method
in
org.apache.hadoop.hbase.thrift.CallQueue

Best Java code snippets using org.apache.hadoop.hbase.thrift.CallQueue.updateMetrics (Showing top 20 results out of 315)

  • Common ways to obtain CallQueue
private void myMethod () {
CallQueue c =
  • Codota IconThriftMetrics metrics;new CallQueue(new LinkedBlockingQueue<>(), metrics)
  • Smart code suggestions by Codota
}
origin: apache/hbase

@Override
public Runnable poll(long timeout, TimeUnit unit) throws InterruptedException {
 Call result = underlyingQueue.poll(timeout, unit);
 updateMetrics(result);
 return result;
}
origin: apache/hbase

@Override
public Runnable remove() {
 Call result = underlyingQueue.remove();
 updateMetrics(result);
 return result;
}
origin: apache/hbase

@Override
public Runnable poll() {
 Call result = underlyingQueue.poll();
 updateMetrics(result);
 return result;
}
origin: apache/hbase

@Override
public Runnable take() throws InterruptedException {
 Call result = underlyingQueue.take();
 updateMetrics(result);
 return result;
}
origin: apache/hbase

@Override
public int drainTo(Collection<? super Runnable> destination,
          int maxElements) {
 if (destination == this) {
  throw new IllegalArgumentException(
    "A BlockingQueue cannot drain to itself.");
 }
 List<Call> drained = new ArrayList<>();
 underlyingQueue.drainTo(drained, maxElements);
 for (Call r : drained) {
  updateMetrics(r);
 }
 destination.addAll(drained);
 int sz = drained.size();
 LOG.info("Elements drained: " + sz);
 return sz;
}
origin: org.apache.hbase/hbase-thrift

@Override
public Runnable take() throws InterruptedException {
 Call result = underlyingQueue.take();
 updateMetrics(result);
 return result;
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public Runnable poll() {
 Call result = underlyingQueue.poll();
 updateMetrics(result);
 return result;
}
origin: org.apache.hbase/hbase-thrift

@Override
public Runnable poll(long timeout, TimeUnit unit) throws InterruptedException {
 Call result = underlyingQueue.poll(timeout, unit);
 updateMetrics(result);
 return result;
}
origin: org.apache.hbase/hbase-thrift

@Override
public Runnable remove() {
 Call result = underlyingQueue.remove();
 updateMetrics(result);
 return result;
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public Runnable take() throws InterruptedException {
 Call result = underlyingQueue.take();
 updateMetrics(result);
 return result;
}
origin: org.apache.hbase/hbase-thrift

@Override
public Runnable poll() {
 Call result = underlyingQueue.poll();
 updateMetrics(result);
 return result;
}
origin: co.cask.hbase/hbase

@Override
public Runnable remove() {
 Call result = underlyingQueue.remove();
 updateMetrics(result);
 return result;
}
origin: co.cask.hbase/hbase

@Override
public Runnable poll() {
 Call result = underlyingQueue.poll();
 updateMetrics(result);
 return result;
}
origin: co.cask.hbase/hbase

@Override
public Runnable take() throws InterruptedException {
 Call result = underlyingQueue.take();
 updateMetrics(result);
 return result;
}
origin: co.cask.hbase/hbase

@Override
public Runnable poll(long timeout, TimeUnit unit) throws InterruptedException {
 Call result = underlyingQueue.poll(timeout, unit);
 updateMetrics(result);
 return result;
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public Runnable remove() {
 Call result = underlyingQueue.remove();
 updateMetrics(result);
 return result;
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public Runnable poll(long timeout, TimeUnit unit) throws InterruptedException {
 Call result = underlyingQueue.poll(timeout, unit);
 updateMetrics(result);
 return result;
}
origin: org.apache.hbase/hbase-thrift

@Override
public int drainTo(Collection<? super Runnable> destination,
          int maxElements) {
 if (destination == this) {
  throw new IllegalArgumentException(
    "A BlockingQueue cannot drain to itself.");
 }
 List<Call> drained = new ArrayList<>();
 underlyingQueue.drainTo(drained, maxElements);
 for (Call r : drained) {
  updateMetrics(r);
 }
 destination.addAll(drained);
 int sz = drained.size();
 LOG.info("Elements drained: " + sz);
 return sz;
}
origin: com.aliyun.hbase/alihbase-thrift

@Override
public int drainTo(Collection<? super Runnable> destination,
          int maxElements) {
 if (destination == this) {
  throw new IllegalArgumentException(
    "A BlockingQueue cannot drain to itself.");
 }
 List<Call> drained = new ArrayList<>();
 underlyingQueue.drainTo(drained, maxElements);
 for (Call r : drained) {
  updateMetrics(r);
 }
 destination.addAll(drained);
 int sz = drained.size();
 LOG.info("Elements drained: " + sz);
 return sz;
}
origin: co.cask.hbase/hbase

@Override
public int drainTo(Collection<? super Runnable> destination,
          int maxElements) {
 if (destination == this) {
  throw new IllegalArgumentException(
    "A BlockingQueue cannot drain to itself.");
 }
 List<Call> drained = new ArrayList<Call>();
 underlyingQueue.drainTo(drained, maxElements);
 for (Call r : drained) {
  updateMetrics(r);
 }
 destination.addAll(drained);
 int sz = drained.size();
 LOG.info("Elements drained: " + sz);
 return sz;
}
org.apache.hadoop.hbase.thriftCallQueueupdateMetrics

Popular methods of CallQueue

  • <init>
  • drainTo
  • size
  • offer
  • poll
  • put
  • take

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JComboBox (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now