Package org.apache.activemq.tool.reports

Examples of org.apache.activemq.tool.reports.PerformanceReportWriter.writeProperties()


        // Create performance sampler
        PerformanceReportWriter writer = createPerfWriter();
        writer.openReportWriter();
        writer.writeProperties("jvmSettings", System.getProperties());
        writer.writeProperties("testSystemSettings", ReflectionUtil.retrieveObjectProperties(getSysTest()));
        writer.writeProperties("jmsFactorySettings", ReflectionUtil.retrieveObjectProperties(jmsConnFactory));
        writer.writeProperties("jmsClientSettings", ReflectionUtil.retrieveObjectProperties(getJmsClientProperties()));

        // set up performance samplers indicated by the user
        List<PerformanceSampler> samplers = new ArrayList<>();
View Full Code Here


        PerformanceReportWriter writer = createPerfWriter();
        writer.openReportWriter();
        writer.writeProperties("jvmSettings", System.getProperties());
        writer.writeProperties("testSystemSettings", ReflectionUtil.retrieveObjectProperties(getSysTest()));
        writer.writeProperties("jmsFactorySettings", ReflectionUtil.retrieveObjectProperties(jmsConnFactory));
        writer.writeProperties("jmsClientSettings", ReflectionUtil.retrieveObjectProperties(getJmsClientProperties()));

        // set up performance samplers indicated by the user
        List<PerformanceSampler> samplers = new ArrayList<>();

        Set<String> requestedSamplers = getSysTest().getSamplersSet();
View Full Code Here

        // set up performance samplers indicated by the user
        List<PerformanceSampler> samplers = new ArrayList<>();

        Set<String> requestedSamplers = getSysTest().getSamplersSet();
        if (requestedSamplers.contains(JmsClientSystemProperties.SAMPLER_TP)) {
            writer.writeProperties("tpSamplerSettings", ReflectionUtil.retrieveObjectProperties(tpSampler));
            samplers.add(tpSampler);
        }

        if (requestedSamplers.contains(JmsClientSystemProperties.SAMPLER_CPU)) {
            CpuSamplerTask cpuSampler = new CpuSamplerTask();
View Full Code Here

            samplers.add(tpSampler);
        }

        if (requestedSamplers.contains(JmsClientSystemProperties.SAMPLER_CPU)) {
            CpuSamplerTask cpuSampler = new CpuSamplerTask();
            writer.writeProperties("cpuSamplerSettings", ReflectionUtil.retrieveObjectProperties(cpuSampler));

            try {
                cpuSampler.createPlugin();
                samplers.add(cpuSampler);
            } catch (IOException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.