Examples of toNode()


Examples of org.apache.stratos.cloud.controller.util.ServiceContext.toNode()

        throw new CloudControllerException(msg, e);
      }

    } else {
      log.debug("Payload is null or empty for :\n "
          + newServiceCtxt.toNode().toString());
    }

    // persist
    try {
      String uniqueName = domain + "-" + subDomain + "-"
View Full Code Here

Examples of org.elasticsearch.cluster.routing.allocation.command.MoveAllocationCommand.toNode()

                }

            }

            boolean found = false;
            for (MutableShardRouting mutableShardRouting : clusterState.routingNodes().routingNodeIter(moveAllocationCommand.toNode())) {
                if (mutableShardRouting.shardId().equals(moveAllocationCommand.shardId())) {
                    assertThat(mutableShardRouting.state(), anyOf(equalTo(ShardRoutingState.INITIALIZING), equalTo(ShardRoutingState.STARTED)));
                    found = true;
                    break;
                }
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

        int prefixLevel = getPrefixLevel();
        if(prefixLevel > 0) {
            OperationRequestAddress prefix = ctx.getCurrentNodePath();
            for(int i = 1; i <= prefixLevel; ++i) {
                if(i % 2 == 0) {
                    prefix.toNode("link" + i);
                } else {
                    prefix.toNodeType("link" + i);
                }
            }
        }
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

                            profileName = null;
                        }

                        OperationRequestAddress datasources = new DefaultOperationRequestAddress();
                        if (profileName != null) {
                            datasources.toNode("profile", profileName);
                        }
                        datasources.toNode("subsystem", "datasources");
                        return Util.getNodeNames(
                                ctx.getModelControllerClient(), datasources,
                                "jdbc-driver");
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

                        OperationRequestAddress datasources = new DefaultOperationRequestAddress();
                        if (profileName != null) {
                            datasources.toNode("profile", profileName);
                        }
                        datasources.toNode("subsystem", "datasources");
                        return Util.getNodeNames(
                                ctx.getModelControllerClient(), datasources,
                                "jdbc-driver");
                    }
                }));
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

    }

    @Test
    public void testNodeTypeOnlyWithPrefixNode() throws Exception {
        OperationRequestAddress prefix = new DefaultOperationRequestAddress();
        prefix.toNode("a", "b");
        DefaultCallbackHandler handler = new DefaultCallbackHandler(prefix);

        parser.parse("subsystem", handler);

        assertTrue(handler.hasAddress());
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

    }

    @Test
    public void testChildNodeTypeOnlyWithPrefixNode() throws Exception {
        OperationRequestAddress prefix = new DefaultOperationRequestAddress();
        prefix.toNode("a", "b");
        DefaultCallbackHandler handler = new DefaultCallbackHandler(prefix);

        parser.parse("./subsystem", handler);

        assertTrue(handler.hasAddress());
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

    }

    @Test
    public void testRootNodeTypeOnlyWithPrefixNode() throws Exception {
        OperationRequestAddress prefix = new DefaultOperationRequestAddress();
        prefix.toNode("a", "b");
        DefaultCallbackHandler handler = new DefaultCallbackHandler(prefix);

        parser.parse("/subsystem", handler);

        assertTrue(handler.hasAddress());
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

    }

    @Test
    public void testNodeWithPrefix() throws Exception {
        OperationRequestAddress prefix = new DefaultOperationRequestAddress();
        prefix.toNode("a", "b");
        DefaultCallbackHandler handler = new DefaultCallbackHandler(prefix);

        parser.parse("c=d", handler);

        assertTrue(handler.hasAddress());
View Full Code Here

Examples of org.jboss.as.cli.operation.OperationRequestAddress.toNode()

    @Test
    public void testRootOnly() throws Exception {

        OperationRequestAddress prefix = new DefaultOperationRequestAddress();
        prefix.toNode("a", "b");
        DefaultCallbackHandler handler = new DefaultCallbackHandler(prefix);

        parser.parse("/", handler);

        assertTrue(handler.hasAddress());
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.