org.apache.jmeter.save

Class OldSaveService


public final class OldSaveService
extends Object

This class saves/restores the original Avalon XML format (not used by default). This may be removed in a future release.

Method Summary

static Configuration
getConfiguration(SampleResult result, SampleSaveConfiguration saveConfig)
This method determines the content of the result data that will be stored for the Avalon XML format.
static SampleResult
getSampleResult(Configuration config)
Read sampleResult from Avalon XML file.
static String
getSerializedSampleResult(SampleResult result, DefaultConfigurationSerializer slzr, SampleSaveConfiguration cfg)
static HashTree
loadSubTree(InputStream in)
static void
processSamples(String filename, Visualizer visualizer, ResultCollector rc)
static void
saveSubTree(HashTree subTree, OutputStream writer)

Method Details

getConfiguration

public static Configuration getConfiguration(SampleResult result,
                                             SampleSaveConfiguration saveConfig)
This method determines the content of the result data that will be stored for the Avalon XML format.
Parameters:
result - the object containing all of the data that has been collected.
saveConfig - the configuration giving the data items to be saved. N.B. It is rather out of date, as many fields are not saved. However it is probably not worth updating, as no-one should be using the format.

getSampleResult

public static SampleResult getSampleResult(Configuration config)
Read sampleResult from Avalon XML file.
Parameters:
config - Avalon configuration
Returns:
sample result

getSerializedSampleResult

public static String getSerializedSampleResult(SampleResult result,
                                               DefaultConfigurationSerializer slzr,
                                               SampleSaveConfiguration cfg)
            throws SAXException,
                   IOException,
                   ConfigurationException

loadSubTree

public static HashTree loadSubTree(InputStream in)
            throws IOException

processSamples

public static void processSamples(String filename,
                                  Visualizer visualizer,
                                  ResultCollector rc)
            throws SAXException,
                   IOException,
                   ConfigurationException

saveSubTree

public static void saveSubTree(HashTree subTree,
                               OutputStream writer)
            throws IOException

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.