Examples of executeDeleteResourceImmediately()


Examples of org.rhq.core.clientapi.agent.inventory.ResourceFactoryAgentService.executeDeleteResourceImmediately()

        DeleteResourceRequest deleteRequest = new DeleteResourceRequest(1, deleteMe.getId());

        try
        {
            resourceFactoryAgentService.executeDeleteResourceImmediately(deleteRequest);
        }
        catch (PluginContainerException e)
        {
            fail();
        }
View Full Code Here

Examples of org.rhq.core.pc.inventory.ResourceFactoryManager.executeDeleteResourceImmediately()

            if(originalConfiguration != null) {
                updateResourceConfiguration(sbs, originalConfiguration);
                originalBindingSets.remove(name);
            } else {
                //this binding set wasn't there originally
                resourceFactory.executeDeleteResourceImmediately(new DeleteResourceRequest(0, sbs.getId()));
            }
        }
       
        //originalBindingSets now only contain binding sets that existed originally but aren't anymore
        for(Configuration sbs : originalBindingSets.values()) {
View Full Code Here

Examples of org.rhq.core.pc.inventory.ResourceFactoryManager.executeDeleteResourceImmediately()

        Resource bindingSetToDelete = getBindingSet(NEW_BINDING_SET_NAME);
       
        assertNotNull(bindingSetToDelete, "Could not find a binding set to delete");
       
        ResourceFactoryManager resourceFactory = PluginContainer.getInstance().getResourceFactoryManager();
        resourceFactory.executeDeleteResourceImmediately(new DeleteResourceRequest(0, bindingSetToDelete.getId()));

        assertNull(getBindingSet(NEW_BINDING_SET_NAME), "Failed to delete the binding set.");

        //check that the delete is permanent
        AppServerUtils.restartServer();
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.