當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。