APISonar


org.apache.phoenix.pherf.result.file.ResultFileDetails.XML

> org > apache > phoenix > pherf > result > file > ResultFileDetails > XML
org APIs apache APIs phoenix APIs pherf APIs result APIs file APIs ResultFileDetails APIs XML APIs

Example 1
public synchronized List<Result> read() throws Exception {

        JAXBContext jaxbContext = JAXBContext.newInstance(DataModelResult.class);
        Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
        File XMLfile = new File(resultFileName);
        List<ResultValue> resultValue = new ArrayList();
        resultValue.add(new ResultValue<>((DataModelResult) jaxbUnmarshaller.unmarshal(XMLfile)));
        List<Result> results = new ArrayList<>();
        results.add(new Result(ResultFileDetails.XML, null, resultValue));
        return results;
    }
Example 2
public ResultManager(String fileNameSeed, PherfConstants.RunMode runMode) {
        this(runMode, Arrays.asList(
                new XMLResultHandler(fileNameSeed, ResultFileDetails.XML),
                new ImageResultHandler(fileNameSeed, ResultFileDetails.IMAGE),
						new CSVResultHandler(
								fileNameSeed,
								runMode == RunMode.PERFORMANCE ? ResultFileDetails.CSV_DETAILED_PERFORMANCE
										: ResultFileDetails.CSV_DETAILED_FUNCTIONAL),
                new CSVResultHandler(fileNameSeed, ResultFileDetails.CSV_AGGREGATE_PERFORMANCE)
        ));
    }