Examples of ReadChildrenResources


Examples of org.rhq.modules.plugins.jbossas7.json.ReadChildrenResources

        this.hash = hash;
        this.connection = connection;
    }

    boolean deploymentExists() {
        Result deploymentResources = connection.execute(new ReadChildrenResources(new Address(), "deployment"));
        for (Map.Entry<?, ?> deploymentResource : ((Map<?, ?>) deploymentResources.getResult()).entrySet()) {
            @SuppressWarnings("unchecked")
            Map<String, Object> deploymentResourceDetails = (Map<String, Object>) deploymentResource.getValue();
            if (runtimeName.equals(deploymentResourceDetails.get("runtime-name"))) {
                return true;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.ReadChildrenResources

                // We need the type for reading
                type = type.substring(0, type.indexOf(":"));

            }
            operation = new ReadChildrenResources(address, type);
            operation.addAdditionalProperty("recursive", "true");
        } else if (groupName.startsWith("child:")) {
            String subPath = groupName.substring("child:".length());
            if (!subPath.contains("="))
                throw new IllegalArgumentException("subPath of 'child:' expression has no =");
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.ReadChildrenResources

    @SuppressWarnings("unchecked")
    private void loadAssignedServerGroups(Configuration configuration) {
        String managementNodeName = getManagementNodeName();
        Address theAddress = new Address("/");
        Operation op = new ReadChildrenResources(theAddress, "server-group");
        op.addAdditionalProperty("recursive-depth", "1");
        Result res = getASConnection().execute(op);
        PropertyList propGroups = new PropertyList("*1");
        configuration.put(propGroups);
        if (res.isSuccess()) {
            Map<String, Object> groups = (Map<String, Object>) res.getResult();
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.ReadChildrenResources

            PropertyList pl = (PropertyList) conf.get(propDefName);

            // check if we need to see if that property exists - get the current state of affairs from the AS
            List<String> existingPropnames = new ArrayList<String>();
            if (addNewChildren) {
                Operation op = new ReadChildrenResources(baseAddress, type);
                Result tmp = connection.execute(op);
                if (tmp.isSuccess()) {
                    Map<String, Object> tmpResMap = (Map<String, Object>) tmp.getResult();
                    existingPropnames.addAll(tmpResMap.keySet());
                }
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.