Package org.rhq.plugins.jbossas.util

Examples of org.rhq.plugins.jbossas.util.JBossASSnapshotReport.generate()


    public SnapshotReportResults getSnapshotReport(SnapshotReportRequest request) throws Exception {
        Configuration pluginConfig = resourceContext.getPluginConfiguration();
        String tmpDir = resourceContext.getTemporaryDirectory().getAbsolutePath();
        JBossASSnapshotReport report = new JBossASSnapshotReport(request.getName(), request.getDescription(),
            pluginConfig, this.configPath.getCanonicalPath(), tmpDir);
        File reportFile = report.generate();
        InputStream inputStream = new BufferedInputStream(new FileInputStream(reportFile));
        SnapshotReportResults results = new SnapshotReportResults(inputStream);
        return results;
    }
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.