Package com.atlantbh.jmeter.plugins.hbasecomponents.samplers

Examples of com.atlantbh.jmeter.plugins.hbasecomponents.samplers.HBaseScanSampler


        return this.getClass().getSimpleName();
    }

    @Override
    public TestElement createTestElement() {
        HBaseScanSampler sampler = new HBaseScanSampler();
        configureTestElement(sampler);// FIXME: why here? modifyTestElement does it explicitly!
        sampler.setComment(JMeterPluginsUtils.getWikiLinkText(WIKIPAGE));
        modifyTestElement(sampler);
        return sampler;
    }
View Full Code Here


        return sampler;
    }

    @Override
    public void modifyTestElement(TestElement te) {
        HBaseScanSampler sampler = (HBaseScanSampler) te;

        sampler.setConnectionName(connTF.getText());
        sampler.setTableName(tableTF.getText());
        sampler.setStartKey(startRowKeyTF.getText());
        sampler.setEndKey(endRowKeyTF.getText());
        sampler.setLimit(recordCountTF.getText());
        sampler.setFilter(filtersTA.getText());
        sampler.setOmitVars(emitVarsCB.isSelected());
        sampler.setLatestTimestampRows(latestTimestampRows.isSelected());

        super.configureTestElement(sampler);
    }
View Full Code Here

    }

    //TODO typeCB
    public void configure(TestElement el) {
        super.configure(el);
        HBaseScanSampler sampler = (HBaseScanSampler) el;

        connTF.setText(sampler.getConnectionName());
        tableTF.setText(sampler.getTableName());
        startRowKeyTF.setText(sampler.getStartKey());
        endRowKeyTF.setText(sampler.getEndKey());
        recordCountTF.setText(sampler.getLimit());
        filtersTA.setText(sampler.getFilter());
        emitVarsCB.setSelected(sampler.getOmitVars());
        latestTimestampRows.setSelected(sampler.getLatestTimestampRows());
    }
View Full Code Here

    return "hbase_scan_sampler";
 
 
  @Override
  public TestElement createTestElement() {
    HBaseScanSampler sampler = new HBaseScanSampler();
        configureTestElement(sampler);
        modifyTestElement(sampler);
        return sampler; 
  }
View Full Code Here



  @Override
  public void modifyTestElement(TestElement te) {
    HBaseScanSampler sampler = (HBaseScanSampler)te;

    sampler.setConnectionName(connTF.getText());
    sampler.setTableName(tableTF.getText());
    sampler.setStartKey(startRowKeyTF.getText());
    sampler.setEndKey(endRowKeyTF.getText());
    sampler.setLimit(recordCountTF.getText());
    sampler.setFilter(filtersTA.getText());
    sampler.setOmitVars(emitVarsCB.isSelected());
    sampler.setLatestTimestampRows(latestTimestampRows.isSelected());
   
    super.configureTestElement(sampler)
  }
View Full Code Here

  }
 
    //TODO typeCB
  public void configure(TestElement el) {
        super.configure(el);
        HBaseScanSampler sampler = (HBaseScanSampler) el;

    connTF.setText(sampler.getConnectionName());
    tableTF.setText(sampler.getTableName());
    startRowKeyTF.setText(sampler.getStartKey());
    endRowKeyTF.setText(sampler.getEndKey());
    recordCountTF.setText(sampler.getLimit());
    filtersTA.setText(sampler.getFilter());
    emitVarsCB.setSelected(sampler.getOmitVars());
    latestTimestampRows.setSelected(sampler.getLatestTimestampRows());
    }     
View Full Code Here

     * Test of modifyTestElement method, of class HBaseScanSamplerGui.
     */
    @Test
    public void testModifyTestElement() {
        System.out.println("modifyTestElement");
        TestElement te = new HBaseScanSampler();
        HBaseScanSamplerGui instance = new HBaseScanSamplerGui();
        instance.modifyTestElement(te);
        // TODO review the generated test code and remove the default call to fail.

    }
View Full Code Here

     * Test of configure method, of class HBaseScanSamplerGui.
     */
    @Test
    public void testConfigure() {
        System.out.println("configure");
        TestElement el = new HBaseScanSampler();
        HBaseScanSamplerGui instance = new HBaseScanSamplerGui();
        instance.configure(el);
        // TODO review the generated test code and remove the default call to fail.

    }
View Full Code Here

TOP

Related Classes of com.atlantbh.jmeter.plugins.hbasecomponents.samplers.HBaseScanSampler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.