Package org.rhq.core.pluginapi.inventory

Examples of org.rhq.core.pluginapi.inventory.ResourceContext


        this.plugin = new AntBundlePluginComponent();
        ResourceType type = new ResourceType("antBundleTestType", "antBundleTestPlugin", ResourceCategory.SERVER, null);
        Resource resource = new Resource("antBundleTestKey", "antBundleTestName", type);
        resource.setUuid(UUID.randomUUID().toString());
        @SuppressWarnings({ "rawtypes", "unchecked" })
        ResourceContext<?> context = new ResourceContext(resource, null, null, null,
            SystemInfoFactory.createJavaSystemInfo(), tmpDir, null, "antBundleTestPC", null, null, null, null, null,
            null);
        this.plugin.start(context);
    }
View Full Code Here


        return;
    }

    public SnapshotReportResults getSnapshotReport(SnapshotReportRequest request) throws Exception {
        AgentManagementMBean mbean = AgentDiscoveryComponent.getAgentManagementMBean();
        ResourceContext resourceContext = getResourceContext();
        Configuration pluginConfig = resourceContext.getPluginConfiguration();
        String installDir = mbean.getAgentHomeDirectory();
        Properties config = mbean.getAgentConfiguration();
        String tmpDir = resourceContext.getTemporaryDirectory().getAbsolutePath();
        String name = request.getName();
        String description = request.getDescription();
        AgentSnapshotReport report = new AgentSnapshotReport(name, description, pluginConfig, installDir, config,
            tmpDir);
        File reportFile = report.generate();
View Full Code Here

TOP

Related Classes of org.rhq.core.pluginapi.inventory.ResourceContext

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.