Package org.rhq.core.pluginapi.support

Examples of org.rhq.core.pluginapi.support.SnapshotReportResults


    }

    public InputStream getSnapshotReport(int resourceId, String name, String description) throws Exception {
        SupportFacet facet = getSupportFacet(resourceId, 600000L); // give it enough time to zip up all the snapshot content
        SnapshotReportRequest request = new SnapshotReportRequest(name, description);
        SnapshotReportResults results = facet.getSnapshotReport(request);
        InputStream inputStream = results.getInputStream();
        inputStream = remoteInputStream(inputStream);
        return inputStream;
    }
View Full Code Here


    @Override
    public SnapshotReportResults getSnapshotReport(SnapshotReportRequest request) throws Exception {
        if (AvailabilityType.UP.equals(getAvailability())) {
            if ("jdr".equals(request.getName())) {
                InputStream is = new JdrReportRunner(getServerAddress(), getASConnection()).getReport();
                return new SnapshotReportResults(is);
            }
            return null;
        }
        throw new Exception("Cannot obtain report, resource is not UP");
    }
View Full Code Here

        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

    @Override
    public SnapshotReportResults getSnapshotReport(SnapshotReportRequest request) throws Exception {
        if (AvailabilityType.UP.equals(getAvailability())) {
            if ("jdr".equals(request.getName())) {
                InputStream is = new JdrReportRunner(getServerAddress(), getASConnection()).getReport();
                return new SnapshotReportResults(is);
            }
            return null;
        }
        throw new Exception("Cannot obtain report, resource is not UP");
    }
View Full Code Here

        String description = request.getDescription();
        AgentSnapshotReport report = new AgentSnapshotReport(name, description, pluginConfig, installDir, config,
            tmpDir);
        File reportFile = report.generate();
        InputStream inputStream = new BufferedInputStream(new FileInputStream(reportFile));
        SnapshotReportResults results = new SnapshotReportResults(inputStream);
        return results;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.pluginapi.support.SnapshotReportResults

Copyright © 2018 www.massapicom. 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.