Examples of uninventoryResourceAsyncWork()


Examples of org.rhq.enterprise.server.resource.ResourceManagerLocal.uninventoryResourceAsyncWork()

                // invoke bulk delete on the resource to remove any dependencies not defined in the hibernate entity model
                // perform in-band and out-of-band work in quick succession
                List<Integer> deletedIds = resourceManager.uninventoryResource(overlord, resource.getId());
                for (Integer deletedResourceId : deletedIds) {
                    resourceManager.uninventoryResourceAsyncWork(overlord, deletedResourceId);
                }

                // now dispose of other hibernate entities
                getTransactionManager().begin();
View Full Code Here

Examples of org.rhq.enterprise.server.resource.ResourceManagerLocal.uninventoryResourceAsyncWork()

                // invoke bulk delete on the resource to remove any dependencies not defined in the hibernate entity model
                // perform in-band and out-of-band work in quick succession
                for (Resource doomed : doomedResources) {
                    List<Integer> deletedIds = resourceManager.uninventoryResource(overlord, doomed.getId());
                    for (Integer deletedResourceId : deletedIds) {
                        resourceManager.uninventoryResourceAsyncWork(overlord, deletedResourceId);
                    }
                }

                // Measurement defs go away via cascade remove
View Full Code Here

Examples of org.rhq.enterprise.server.resource.ResourceManagerLocal.uninventoryResourceAsyncWork()

                // invoke bulk delete on the resource to remove any dependencies not defined in the hibernate entity model
                // perform in-band and out-of-band work in quick succession
                Subject overlord = LookupUtil.getSubjectManager().getOverlord();
                List<Integer> deletedIds = resourceManager.uninventoryResource(overlord, resource.getId());
                for (Integer deletedResourceId : deletedIds) {
                    resourceManager.uninventoryResourceAsyncWork(overlord, deletedResourceId);
                }

                // now dispose of other hibernate entities
                getTransactionManager().begin();
                em = getEntityManager();
View Full Code Here

Examples of org.rhq.enterprise.server.resource.ResourceManagerLocal.uninventoryResourceAsyncWork()

                // invoke bulk delete on the resource to remove any dependencies not defined in the hibernate entity model
                // perform in-band and out-of-band work in quick succession
                if (null != res) {
                    List<Integer> deletedIds = resourceManager.uninventoryResource(overlord, res.getId());
                    for (Integer deletedResourceId : deletedIds) {
                        resourceManager.uninventoryResourceAsyncWork(overlord, deletedResourceId);
                    }
                }

                // now dispose of other hibernate entities
                getTransactionManager().begin();
View Full Code Here

Examples of org.rhq.enterprise.server.resource.ResourceManagerLocal.uninventoryResourceAsyncWork()

        try {
            Subject overlord = LookupUtil.getSubjectManager().getOverlord();
            ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();

            List<Integer> deletedIds = resourceManager.uninventoryResource(overlord, newResource.getId());
            resourceManager.uninventoryResourceAsyncWork(overlord, newResource.getId());

            assertEquals("didn't delete resource: " + deletedIds, 1, deletedIds.size());
            assertEquals("what was deleted? : " + deletedIds, newResource.getId(), deletedIds.get(0).intValue());

            // I don't have the resource anymore so I can't use makeSureDataIsPurged to test
View Full Code Here

Examples of org.rhq.enterprise.server.resource.ResourceManagerLocal.uninventoryResourceAsyncWork()

            // delete the resource itself
            Subject overlord = LookupUtil.getSubjectManager().getOverlord();
            ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();
            List<Integer> deletedIds = resourceManager.uninventoryResource(overlord, doomedResource.getId());
            for (Integer deletedResourceId : deletedIds) {
                resourceManager.uninventoryResourceAsyncWork(overlord, deletedResourceId);
            }

            // delete the agent and the type
            getTransactionManager().begin();
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.