Tabnine Logo
HbaseHandlerMetricsProxy.newInstance
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/hbase

@Override
protected TProcessor createProcessor() {
 return new THBaseService.Processor<>(HbaseHandlerMetricsProxy
   .newInstance((THBaseService.Iface) hbaseServiceHandler, metrics, conf));
}
origin: apache/hbase

protected TProcessor createProcessor() {
 return new Hbase.Processor<>(
   HbaseHandlerMetricsProxy.newInstance((Hbase.Iface) hbaseServiceHandler, metrics, conf));
}
origin: apache/hbase

private static Hbase.Iface getHandlerForMetricsTest(ThriftMetrics metrics, Configuration conf)
  throws Exception {
 Hbase.Iface handler = new MySlowHBaseHandler(conf);
 return HbaseHandlerMetricsProxy.newInstance((ThriftHBaseServiceHandler)handler, metrics, conf);
}
origin: apache/hbase

@Test
public void testMetrics() throws Exception {
 Configuration conf = UTIL.getConfiguration();
 ThriftMetrics metrics = getMetrics(conf);
 ThriftHBaseServiceHandler hbaseHandler = createHandler();
 THBaseService.Iface handler =
   HbaseHandlerMetricsProxy.newInstance(hbaseHandler, metrics,  conf);
 byte[] rowName = Bytes.toBytes("testMetrics");
 ByteBuffer table = wrap(tableAname);
 TGet get = new TGet(wrap(rowName));
 assertFalse(handler.exists(table, get));
 List<TColumnValue> columnValues = new ArrayList<>(2);
 columnValues.add(new TColumnValue(wrap(familyAname), wrap(qualifierAname), wrap(valueAname)));
 columnValues.add(new TColumnValue(wrap(familyBname), wrap(qualifierBname),  wrap(valueBname)));
 TPut put = new TPut(wrap(rowName), columnValues);
 put.setColumnValues(columnValues);
 handler.put(table, put);
 assertTrue(handler.exists(table, get));
 metricsHelper.assertCounter("put_num_ops", 1, metrics.getSource());
 metricsHelper.assertCounter("exists_num_ops", 2, metrics.getSource());
}
origin: apache/hbase

ThriftMetrics metrics = getMetrics(UTIL.getConfiguration());
THBaseService.Iface handler =
  HbaseHandlerMetricsProxy.newInstance(hbaseHandler, metrics, null);
ByteBuffer tTableName = wrap(tableName.getName());
origin: apache/hbase

ThriftMetrics metrics = getMetrics(UTIL.getConfiguration());
THBaseService.Iface handler =
  HbaseHandlerMetricsProxy.newInstance(hbaseHandler, metrics, null);
ByteBuffer tTableName = wrap(tableName.getName());
origin: apache/hbase

  new ThriftHBaseServiceHandler(UTIL.getConfiguration(),
    UserProvider.instantiate(UTIL.getConfiguration()));
Hbase.Iface handler = HbaseHandlerMetricsProxy.newInstance(hbaseHandler, metrics, conf);
origin: co.cask.hbase/hbase

public ThriftServerRunner(Configuration conf, HBaseHandler handler) {
 this.conf = HBaseConfiguration.create(conf);
 this.listenPort = conf.getInt(PORT_CONF_KEY, DEFAULT_LISTEN_PORT);
 this.metrics = new ThriftMetrics(listenPort, conf, Hbase.Iface.class);
 handler.initMetrics(metrics);
 this.handler = HbaseHandlerMetricsProxy.newInstance(handler, metrics, conf);
}
origin: com.aliyun.hbase/alihbase-thrift

private static Hbase.Iface getHandlerForMetricsTest(ThriftMetrics metrics, Configuration conf)
  throws Exception {
 Hbase.Iface handler = new MySlowHBaseHandler(conf);
 return HbaseHandlerMetricsProxy.newInstance(handler, metrics, conf);
}
origin: org.apache.hbase/hbase-thrift

private static Hbase.Iface getHandlerForMetricsTest(ThriftMetrics metrics, Configuration conf)
  throws Exception {
 Hbase.Iface handler = new MySlowHBaseHandler(conf);
 return HbaseHandlerMetricsProxy.newInstance(handler, metrics, conf);
}
origin: org.apache.hbase/hbase-thrift

this.hbaseHandler = new HBaseHandler(conf, userProvider);
this.hbaseHandler.initMetrics(metrics);
this.handler = HbaseHandlerMetricsProxy.newInstance(hbaseHandler, metrics, conf);
origin: com.aliyun.hbase/alihbase-thrift

this.hbaseHandler = new HBaseHandler(conf, userProvider);
this.hbaseHandler.initMetrics(metrics);
this.handler = HbaseHandlerMetricsProxy.newInstance(
 hbaseHandler, metrics, conf);
this.realUser = userProvider.getCurrent().getUGI();
origin: com.aliyun.hbase/alihbase-thrift

  new ThriftServerRunner.HBaseHandler(UTIL.getConfiguration(),
    UserProvider.instantiate(UTIL.getConfiguration()));
Hbase.Iface handler = HbaseHandlerMetricsProxy.newInstance(hbaseHandler, metrics, conf);
origin: org.apache.hbase/hbase-thrift

  new ThriftServerRunner.HBaseHandler(UTIL.getConfiguration(),
    UserProvider.instantiate(UTIL.getConfiguration()));
Hbase.Iface handler = HbaseHandlerMetricsProxy.newInstance(hbaseHandler, metrics, conf);
org.apache.hadoop.hbase.thriftHbaseHandlerMetricsProxynewInstance

Popular methods of HbaseHandlerMetricsProxy

  • <init>
  • now

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 12 Jupyter Notebook extensions
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