Examples of fetchAlertDefinitions()


Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchAlertDefinitions()

        ResourceCriteria c = new ResourceCriteria();
        c.addFilterInventoryStatus(null);
        c.addFilterResourceKey(RESOURCE_KEY);
        c.fetchSchedules(true);
        c.fetchAlertDefinitions(true);

        final List<Resource> r = resourceManager.findResourcesByCriteria(subjectManager.getOverlord(), c);
        if (assumeResourceExists && !r.isEmpty()) {
            assertTrue("Should be only 1 resource", r.size() == 1);
        }
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceCriteria.fetchAlertDefinitions()

            //ok, now the new resource should contain the alert definition defined by the template
            ResourceCriteria crit = new ResourceCriteria();
            crit.addFilterResourceKey(keyAndName);
            crit.fetchExplicitGroups(true); //so that cleanup works
            crit.fetchAlertDefinitions(true); //so that cleanup works

            List<Resource> foundResources = LookupUtil.getResourceManager().findResourcesByCriteria(subject, crit);

            assertEquals("A new resource should have been created", 1, foundResources.size());
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.