Package org.rhq.core.pluginapi.content

Examples of org.rhq.core.pluginapi.content.ContentFacet


    @Override
    public List<DeployPackageStep> translateInstallationSteps(int resourceId, ResourcePackageDetails packageDetails)
        throws PluginContainerException {
        List<DeployPackageStep> steps;
        try {
            ContentFacet contentFacet = findContentFacet(resourceId);
            steps = contentFacet.generateInstallationSteps(packageDetails);
        } catch (Exception e) {
            throw new PluginContainerException("Error translating the package installation steps", e);
        }

        return steps;
View Full Code Here


     * @throws Exception if the plugin is incorrectly configured or throws an error while attempting discovery
     */
    ContentDiscoveryReport performContentDiscovery(int resourceId, PackageType type) throws Exception {
        // Perform the discovery
        // Use only a read-locked component proxy
        ContentFacet contentFacet = ComponentUtil.getComponent(resourceId, ContentFacet.class, FacetLockType.READ,
            FACET_METHOD_TIMEOUT, false, true, false);

        Set<ResourcePackageDetails> details = contentFacet.discoverDeployedPackages(type);

        if (LOG.isDebugEnabled()) {
            LOG.debug("Discovered [" + ((details != null) ? details.size() : 0) + "] packages of type=" + type);
        }

View Full Code Here

     *                                  perform the create
     */
    DeployPackagesResponse performPackageDeployment(int resourceId, Set<ResourcePackageDetails> packagesToDeploy)
        throws Exception {
        // Perform the create
        ContentFacet contentFacet = findContentFacet(resourceId);
        DeployPackagesResponse response = contentFacet.deployPackages(packagesToDeploy, this);

        return response;
    }
View Full Code Here

     * @throws Exception if the plugin throws an error while trying to delete the content
     */
    RemovePackagesResponse performPackageDelete(int resourceId, Set<ResourcePackageDetails> packagesToDelete)
        throws Exception {
        // Perform the delete
        ContentFacet contentFacet = findContentFacet(resourceId);
        RemovePackagesResponse response = contentFacet.removePackages(packagesToDelete);

        return response;
    }
View Full Code Here

        return response;
    }

    InputStream performGetPackageBits(int resourceId, ResourcePackageDetails packageToRetrieve) throws Exception {
        // Perform the retrieval
        ContentFacet contentFacet = findContentFacet(resourceId);
        InputStream contentStream = contentFacet.retrievePackageBits(packageToRetrieve);

        // Wrap the content stream for sending to the original ArtifactAgentService caller
        // There is no need to check for agent mode here; the method call will wrap appropriately
        contentStream = remoteInputStream(contentStream);
View Full Code Here

TOP

Related Classes of org.rhq.core.pluginapi.content.ContentFacet

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.