Package org.jboss.dmr

Examples of org.jboss.dmr.ModelNode.asList()


        op.get("child-type").set("profile");

        // Sanity check againt domain
        ModelNode result = executeOperation(op, domainMasterLifecycleUtil.getDomainClient());
        boolean found = false;
        for (ModelNode profile : result.asList()) {
            if ("ignored".equals(profile)) {
                found = true;
                break;
            }
        }
View Full Code Here


        }
        Assert.assertTrue(found);

        // Resource should not exist on slave
        result = executeOperation(op, domainSlaveLifecycleUtil.getDomainClient());
        for (ModelNode profile : result.asList()) {
            if ("ignored".equals(profile)) {
                Assert.fail("found profile 'ignored'");
            }
        }
View Full Code Here

        op.get("child-type").set("socket-binding-group");

        // Sanity check againt domain
        ModelNode result = executeOperation(op, domainMasterLifecycleUtil.getDomainClient());
        boolean found = false;
        for (ModelNode profile : result.asList()) {
            if ("ignored".equals(profile)) {
                found = true;
                break;
            }
        }
View Full Code Here

        }
        Assert.assertTrue(found);

        // Resource should not exist on slave
        result = executeOperation(op, domainSlaveLifecycleUtil.getDomainClient());
        for (ModelNode profile : result.asList()) {
            if ("ignored".equals(profile)) {
                Assert.fail("found socket-binding-group 'ignored'");
            }
        }
View Full Code Here

        op.get("child-type").set("extension");

        // Sanity check againt domain
        ModelNode result = executeOperation(op, domainMasterLifecycleUtil.getDomainClient());
        boolean found = false;
        for (ModelNode profile : result.asList()) {
            if ("org.jboss.as.jsr77".equals(profile)) {
                Assert.fail("found extension 'org.jboss.as.jsr77'");
            }
        }
        Assert.assertTrue(found);
View Full Code Here

        }
        Assert.assertTrue(found);

        // Resource should not exist on slave
        result = executeOperation(op, domainSlaveLifecycleUtil.getDomainClient());
        for (ModelNode profile : result.asList()) {
            if ("org.jboss.as.jsr77".equals(profile)) {
                Assert.fail("found extension 'org.jboss.as.jsr77'");
            }
        }
View Full Code Here

        operation.get(OP).set(READ_CHILDREN_NAMES_OPERATION);
        operation.get(OP_ADDR).setEmptyList();
        operation.get(CHILD_TYPE).set(SUBSYSTEM);

        final ModelNode subsystemsResult = executeForResult(operation);
        for(final ModelNode subsystem : subsystemsResult.asList()) {
            final String name = subsystem.asString();
            if(ignored.contains(name)) {
                continue; // Only a few subsystems are not supposed to work in the domain mode
            }
View Full Code Here

            operationNames.get(OP).set(READ_OPERATION_NAMES_OPERATION);
            operationNames.get(OP_ADDR).set(address);

            final ModelNode operationNamesResult = executeForResult(operationNames);
            boolean found = false;
            for(final ModelNode operationName : operationNamesResult.asList()) {
                if(DESCRIBE.equals(operationName.asString())) {
                    found = true;
                    break;
                }
            }
View Full Code Here

        ModelNode op = getEmptyOperation("read-children-names", address);
        op.get("child-type").set("deployment");

        ModelNode response = testSupport.getDomainMasterLifecycleUtil().getDomainClient().execute(op);
        ModelNode result = validateResponse(response);
        return result.isDefined() ? result.asList() : Collections.<ModelNode>emptyList();
    }

    private static void removeDeployment(String deploymentName, ModelNode address) throws IOException {
        ModelNode deplAddr = new ModelNode();
        deplAddr.set(address);
View Full Code Here

            throw new RuntimeException(e);
        }
        final ModelNode result = response.get(RESULT);
        final Set<String> deploymentNames = new HashSet<String>();
        if (result.isDefined()) {
            final List<ModelNode> deploymentNodes = result.asList();
            for (ModelNode node : deploymentNodes) {
                deploymentNames.add(node.asString());
            }
        }
        return deploymentNames;
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.