Package org.rhq.core.domain.util

Examples of org.rhq.core.domain.util.TypeAndKeyResourceFilter


        return result;
    }

    protected Resource getResourceByTypeAndKey(Resource parent, final ResourceType type, String key, boolean isCommitted) {
        Set<Resource> childResources = ResourceUtility.getChildResources(parent,
            new TypeAndKeyResourceFilter(type, key));
        if (childResources.size() > 1) {
            throw new IllegalStateException(parent + " has more than one child Resource with same type (" + type
                + ") and key (" + key + ").");
        }
        Resource serverResource = (childResources.isEmpty()) ? null : childResources.iterator().next();
View Full Code Here


        Assert.assertEquals(processes.size(), 0, "Failed to kill " + processes.size() + " AS5 processes: " + processes);
    }

    private Resource getServerResource() {
        Resource platform = this.pluginContainer.getInventoryManager().getPlatform();
        Set<Resource> childResources = ResourceUtility.getChildResources(platform, new TypeAndKeyResourceFilter(
            RESOURCE_TYPE, RESOURCE_KEY));
        if (childResources.size() > 1) {
            throw new IllegalStateException(platform + " has more than one child Resource with same type ("
                + RESOURCE_TYPE + ") and key (" + RESOURCE_KEY + ").");
        }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.util.TypeAndKeyResourceFilter

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.