Package org.rhq.core.clientapi.server.content

Examples of org.rhq.core.clientapi.server.content.RetrievePackageBitsRequest


        ContentServiceRequest persistedRequest = contentManager.createRetrieveBitsRequest(resourceId, user.getName(),
            installedPackageId);

        // Package into transfer object
        ResourcePackageDetails transferPackage = ContentManagerHelper.installedPackageToDetails(installedPackage);
        RetrievePackageBitsRequest transferRequest = new RetrievePackageBitsRequest(persistedRequest.getId(),
            resourceId, transferPackage);

        // Make call to agent
        try {
            AgentClient agentClient = agentManager.getAgentClient(agent);
View Full Code Here


            .completeRetrievePackageBitsRequest(Mockito.any(ContentServiceResponse.class),
                Mockito.any(InputStream.class));

        //setup the content retrieval request and execute it
        Resource deploymentResource = deploymentResources.iterator().next();
        RetrievePackageBitsRequest request = new RetrievePackageBitsRequest(0, deploymentResource.getId(),
            getTestDeploymentPackageDetails(deployment));
        pluginContainer.getContentManager().retrievePackageBits(request);

        //the content retrieval is async so wait in the test method until the mocked server-side
        //completed the test (unless it has already done so).
View Full Code Here

TOP

Related Classes of org.rhq.core.clientapi.server.content.RetrievePackageBitsRequest

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.