Package smartrics.jmeter.sampler

Examples of smartrics.jmeter.sampler.JmxSampler


     * (non-Javadoc)
     *
     * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
     */
    public TestElement createTestElement() {
        JmxSampler sampler = new JmxSampler();
        modifyTestElement(sampler);
        return sampler;
    }
View Full Code Here


     * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
     */
    public void modifyTestElement(TestElement s) {
        this.configureTestElement(s);
        if (s instanceof JmxSampler) {
            JmxSampler sampler = (JmxSampler) s;
            try {
                GuiPackage.getInstance().getReplacer().replaceValues(sampler);
            } catch (InvalidVariableException e) {
                e.printStackTrace();
            }
            sampler.setSampleFrequency(panel.getSamplingFrequency());
            sampler.setJmxUri(panel.getUrl());
            sampler.setJmxMemType(panel.getUsedMemoryType());
        }
    }
View Full Code Here

    }

    public void configure(TestElement el) {
        super.configure(el);
        if (el instanceof JmxSampler) {
            JmxSampler sampler = (JmxSampler) el;
            panel.setUrl(sampler.getJmxUri());
            panel.setUsedMemoryType(sampler.getJmxMemType());
            int sf = sampler.getSampleFrequency();
            panel.setSamplingFrequency(sf);
        }
    }
View Full Code Here

TOP

Related Classes of smartrics.jmeter.sampler.JmxSampler

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.