Examples of addChildResource()


Examples of org.rhq.core.domain.resource.Resource.addChildResource()

        Resource parent = agentSideResource.getParentResource();
        if (parent != null && parent != Resource.ROOT) {
            parent = fakePersist(agentSideResource.getParentResource(), statusJudge, inProgressUUIds);
            persisted.setParentResource(parent);
            parent.addChildResource(persisted);
        } else {
            persisted.setParentResource(parent);
        }

        //persist the children
View Full Code Here

Examples of org.rhq.core.domain.resource.Resource.addChildResource()

            TEST_TOP_LEVEL_SERVER_TYPE);
        Resource service = new Resource();
        service.setResourceType(testServiceType);
        Resource topLevelServer = new Resource();
        topLevelServer.setResourceType(TEST_TOP_LEVEL_SERVER_TYPE);
        topLevelServer.addChildResource(service);
        Resource platform = new Resource();
        platform.setResourceType(TEST_PLATFORM_TYPE);
        platform.addChildResource(topLevelServer);
        assertSame(topLevelServer, getBaseServerOrService(service));
    }
View Full Code Here

Examples of org.rhq.core.domain.resource.Resource.addChildResource()

        Resource topLevelServer = new Resource();
        topLevelServer.setResourceType(TEST_TOP_LEVEL_SERVER_TYPE);
        topLevelServer.addChildResource(service);
        Resource platform = new Resource();
        platform.setResourceType(TEST_PLATFORM_TYPE);
        platform.addChildResource(topLevelServer);
        assertSame(topLevelServer, getBaseServerOrService(service));
    }

}
View Full Code Here

Examples of org.rhq.core.domain.resource.Resource.addChildResource()

                if (res.getParentResource() == Resource.ROOT) {
                    platform = persisted;
                } else {
                    Resource parent = simulatedInventory.get(res.getParentResource().getUuid().hashCode());
                    if (parent != null) {
                        parent.addChildResource(persisted);
                    }
                }
            }
            for (Resource child : res.getChildResources()) {
                persistInSimulatedInventory(child);
View Full Code Here

Examples of org.wso2.carbon.rulecep.commons.descriptions.ResourceDescription.addChildResource()

        inputOne.setValue(ibm);

        ResourceDescription outputOne = new ResourceDescription();
        outputOne.setName("symbolCustom");
        outputOne.setType(POJOResourceAdapter.TYPE);
        outputOne.addChildResource(childOfInputOne);
        outputOne.setType(ibm.getClass().getName());

        ResourceDescription outputsTwo = new ResourceDescription();
        outputsTwo.setName("om");
        outputsTwo.setType(OMElementResourceAdapter.TYPE);
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.