Tabnine Logo
CallQueue.updateMetrics
Code IndexAdd Tabnine 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)

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 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 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 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: 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

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Notification (javax.management)
  • JTable (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for WebStorm
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