congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
HbaseHandlerMetricsProxy.now
Code IndexAdd Tabnine to your IDE (free)

How to use
now
method
in
org.apache.hadoop.hbase.thrift.HbaseHandlerMetricsProxy

Best Java code snippets using org.apache.hadoop.hbase.thrift.HbaseHandlerMetricsProxy.now (Showing top 4 results out of 315)

origin: apache/hbase

@Override
public Object invoke(Object proxy, Method m, Object[] args)
  throws Throwable {
 Object result;
 long start = now();
 try {
  result = m.invoke(handler, args);
 } catch (InvocationTargetException e) {
  metrics.exception(e.getCause());
  throw e.getTargetException();
 } catch (Exception e) {
  metrics.exception(e);
  throw new RuntimeException(
    "unexpected invocation exception: " + e.getMessage());
 } finally {
  long processTime = now() - start;
  metrics.incMethodTime(m.getName(), processTime);
 }
 return result;
}

origin: co.cask.hbase/hbase

@Override
public Object invoke(Object proxy, Method m, Object[] args)
  throws Throwable {
 Object result;
 try {
  long start = now();
  result = m.invoke(handler, args);
  int processTime = (int)(now() - start);
  metrics.incMethodTime(m.getName(), processTime);
 } catch (InvocationTargetException e) {
  throw e.getTargetException();
 } catch (Exception e) {
  throw new RuntimeException(
    "unexpected invocation exception: " + e.getMessage());
 }
 return result;
}

origin: com.aliyun.hbase/alihbase-thrift

@Override
public Object invoke(Object proxy, Method m, Object[] args)
  throws Throwable {
 Object result;
 long start = now();
 try {
  result = m.invoke(handler, args);
 } catch (InvocationTargetException e) {
  metrics.exception(e.getCause());
  throw e.getTargetException();
 } catch (Exception e) {
  metrics.exception(e);
  throw new RuntimeException(
    "unexpected invocation exception: " + e.getMessage());
 } finally {
  long processTime = now() - start;
  metrics.incMethodTime(m.getName(), processTime);
 }
 return result;
}

origin: org.apache.hbase/hbase-thrift

@Override
public Object invoke(Object proxy, Method m, Object[] args)
  throws Throwable {
 Object result;
 long start = now();
 try {
  result = m.invoke(handler, args);
 } catch (InvocationTargetException e) {
  metrics.exception(e.getCause());
  throw e.getTargetException();
 } catch (Exception e) {
  metrics.exception(e);
  throw new RuntimeException(
    "unexpected invocation exception: " + e.getMessage());
 } finally {
  long processTime = now() - start;
  metrics.incMethodTime(m.getName(), processTime);
 }
 return result;
}

org.apache.hadoop.hbase.thriftHbaseHandlerMetricsProxynow

Popular methods of HbaseHandlerMetricsProxy

  • newInstance
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • setScale (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Kernel (java.awt.image)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Reference (javax.naming)
  • BoxLayout (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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