当前位置: 首页>>代码示例>>Java>>正文


Java Visualizer类代码示例

本文整理汇总了Java中org.apache.jmeter.visualizers.Visualizer的典型用法代码示例。如果您正苦于以下问题:Java Visualizer类的具体用法?Java Visualizer怎么用?Java Visualizer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Visualizer类属于org.apache.jmeter.visualizers包,在下文中一共展示了Visualizer类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isStats

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
@Override
public boolean isStats() {
    if (wrapped instanceof Visualizer) {
        return ((Visualizer) wrapped).isStats();
    }
    return false;
}
 
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:8,代码来源:SampleListenerDebug.java

示例2: processSamples

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
public static void processSamples(String filename, Visualizer visualizer, ResultCollector rc)
throws SAXException, IOException, ConfigurationException
{
    DefaultConfigurationBuilder cfgbuilder = new DefaultConfigurationBuilder();
    Configuration savedSamples = cfgbuilder.buildFromFile(filename);
    Configuration[] samples = savedSamples.getChildren();
    final boolean errorsOnly = rc.isErrorLogging();
    final boolean successOnly = rc.isSuccessOnlyLogging();
    for (int i = 0; i < samples.length; i++) {
        SampleResult result = OldSaveService.getSampleResult(samples[i]);
        if (ResultCollector.isSampleWanted(result.isSuccessful(), errorsOnly, successOnly)) {
            visualizer.add(result);
        }
    }
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:16,代码来源:OldSaveService.java

示例3: createPopupMenu

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public JPopupMenu createPopupMenu() {
    if (Timer.class.isAssignableFrom(testBeanClass))
    {
        return MenuFactory.getDefaultTimerMenu();
    }
    else if(Sampler.class.isAssignableFrom(testBeanClass))
    {
        return MenuFactory.getDefaultSamplerMenu();
    }
    else if(ConfigElement.class.isAssignableFrom(testBeanClass))
    {
        return MenuFactory.getDefaultConfigElementMenu();
    }
    else if(Assertion.class.isAssignableFrom(testBeanClass))
    {
        return MenuFactory.getDefaultAssertionMenu();
    }
    else if(PostProcessor.class.isAssignableFrom(testBeanClass) ||
            PreProcessor.class.isAssignableFrom(testBeanClass))
    {
        return MenuFactory.getDefaultExtractorMenu();
    }
    else if(Visualizer.class.isAssignableFrom(testBeanClass))
    {
        return MenuFactory.getDefaultVisualizerMenu();
    }
    else if(Controller.class.isAssignableFrom(testBeanClass))
    {
        return MenuFactory.getDefaultControllerMenu();
    }
    else {
        log.warn("Cannot determine PopupMenu for "+testBeanClass.getName());
        return MenuFactory.getDefaultMenu();
    }
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:40,代码来源:TestBeanGUI.java

示例4: add

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
@Override
public void add(SampleResult sample) {
    if (wrapped instanceof Visualizer) {
        ((Visualizer) wrapped).add(sample);
    }
}
 
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:7,代码来源:SampleListenerDebug.java

示例5: ResultCollectorHelper

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
public ResultCollectorHelper(ResultCollector resultCollector, Visualizer visualizer) {
    this.visualizer = visualizer;
    this.errorsOnly = resultCollector.isErrorLogging();
    this.successOnly = resultCollector.isSuccessOnlyLogging();
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:6,代码来源:ResultCollectorHelper.java

示例6: getVisualizer

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
protected final Visualizer getVisualizer() {
    if (listener == null){ // e.g. in non-GUI mode
        return null;
    }
    return listener.get();
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:7,代码来源:AbstractListenerElement.java

示例7: setListener

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
public void setListener(Visualizer vis) {
    listener = new WeakReference<>(vis);
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:4,代码来源:AbstractListenerElement.java

示例8: setListener

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
public void setListener(Visualizer vis) {
    listener = new WeakReference<Visualizer>(vis);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:4,代码来源:AbstractListenerElement.java

示例9: setupGuiClasses

import org.apache.jmeter.visualizers.Visualizer; //导入依赖的package包/类
/**
 * Setup GUI class
 * @param menuCategories List<String> menu categories
 * @return number of matches
 */
private int setupGuiClasses(List<String> menuCategories ) {
    int matches = 0;// How many classes can we assign from?
    // TODO: there must be a nicer way...
    BeanDescriptor bd = beanInfo.getBeanDescriptor();
    if (Assertion.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.ASSERTIONS);
        bd.setValue(TestElement.GUI_CLASS, AbstractAssertionGui.class.getName());
        matches++;
    }
    if (ConfigElement.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.CONFIG_ELEMENTS);
        bd.setValue(TestElement.GUI_CLASS, AbstractConfigGui.class.getName());
        matches++;
    }
    if (Controller.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.CONTROLLERS);
        bd.setValue(TestElement.GUI_CLASS, AbstractControllerGui.class.getName());
        matches++;
    }
    if (Visualizer.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.LISTENERS);
        bd.setValue(TestElement.GUI_CLASS, AbstractVisualizer.class.getName());
        matches++;
    }
    if (PostProcessor.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.POST_PROCESSORS);
        bd.setValue(TestElement.GUI_CLASS, AbstractPostProcessorGui.class.getName());
        matches++;
    }
    if (PreProcessor.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.PRE_PROCESSORS);
        bd.setValue(TestElement.GUI_CLASS, AbstractPreProcessorGui.class.getName());
        matches++;
    }
    if (Sampler.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.SAMPLERS);
        bd.setValue(TestElement.GUI_CLASS, AbstractSamplerGui.class.getName());
        matches++;
    }
    if (Timer.class.isAssignableFrom(testBeanClass)) {
        menuCategories.add(MenuFactory.TIMERS);
        bd.setValue(TestElement.GUI_CLASS, AbstractTimerGui.class.getName());
        matches++;
    }
    return matches;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:52,代码来源:TestBeanGUI.java


注:本文中的org.apache.jmeter.visualizers.Visualizer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。