Examples of fetchCurrentAvailability()


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

        }

        final ResourceCriteria resourceCriteria = new ResourceCriteria();
        resourceCriteria.addFilterResourceCategories(PLATFORM);
        resourceCriteria.addFilterInventoryStatus(COMMITTED);
        resourceCriteria.fetchCurrentAvailability(true);

        //Use CriteriaQuery to automatically chunk/page through criteria query results
        CriteriaQueryExecutor<Resource, ResourceCriteria> resourceQueryExecutor = new CriteriaQueryExecutor<Resource, ResourceCriteria>() {
            @Override
            public PageList<Resource> execute(ResourceCriteria criteria) {
View Full Code Here

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

        //obvious, right? This needs to be done for the alert subsystem to become aware of the new def
        LookupUtil.getAlertConditionCacheManager().reloadAllCaches();

        ResourceCriteria crit = new ResourceCriteria();
        crit.addFilterId(newResource.getId());
        crit.fetchCurrentAvailability(true);
        Resource fromDb = resourceManager.findResourcesByCriteria(getOverlord(), crit).get(0);

        assertEquals(AvailabilityType.UNKNOWN, fromDb.getCurrentAvailability().getAvailabilityType());

        //ask for the live avail - the mock agent response will return "DOWN" the first time
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.