Examples of prettyPrint()


Examples of org.apache.uima.cas.impl.FeatureStructureImplC.prettyPrint()

    // the exampleType fs
    fs = (AnnotationFS) iter.get();
    FeatureStructureImplC fsImpl = (FeatureStructureImplC) fs;
    StringBuffer sb = new StringBuffer(1024);
    fsImpl.prettyPrint(2, 1, sb, true);
    // System.out.println(sb.toString());
  }

  public void testClone() throws Exception {
    createExampleFS(cas);
View Full Code Here

Examples of org.auraframework.system.AuraContext.Mode.prettyPrint()

    public void writeDefinitions(Set<DefDescriptor<?>> dependencies, Writer out)
            throws IOException, QuickFixException {
        AuraContext context = Aura.getContextService().getCurrentContext();

        Mode mode = context.getMode();
        final boolean minify = !mode.prettyPrint();
        final String mKey = minify ? "MIN:" : "DEV:";
        //
        // create a temp buffer in case anything bad happens while we're processing this.
        // don't want to end up with a half a JS init function
        //
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksResponse.prettyPrint()

        assertBusy(new Runnable() {
            @Override
            public void run() {
                PendingClusterTasksResponse pendingTasks = GLOBAL_CLUSTER.client().admin().cluster().preparePendingClusterTasks().setLocal(true).get();
                assertThat("client " + GLOBAL_CLUSTER.client()  + " still has pending tasks " +
                        pendingTasks.prettyPrint(), pendingTasks, Matchers.emptyIterable());
            }
        });
        assertNoTimeout(GLOBAL_CLUSTER.client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).get());
    }
}
View Full Code Here

Examples of org.elasticsearch.cluster.ClusterState.prettyPrint()

    }

    private void assertMaster(String masterNode, List<String> nodes) {
        for (String node : nodes) {
            ClusterState state = getNodeClusterState(node);
            String failMsgSuffix = "cluster_state:\n" + state.prettyPrint();
            assertThat("wrong node count on [" + node + "]. " + failMsgSuffix, state.nodes().size(), equalTo(nodes.size()));
            assertThat("wrong master on node [" + node + "]. " + failMsgSuffix, state.nodes().masterNode().name(), equalTo(masterNode));
        }
    }
}
View Full Code Here

Examples of org.elasticsearch.cluster.node.DiscoveryNodes.prettyPrint()

        RoutingTable routingTable = clusterState.routingTable();

        PrintWriter writer = new PrintWriter(dump.createFileWriter("cluster.txt"));

        writer.println("===== CLUSTER NODES ======");
        writer.print(nodes.prettyPrint());

        writer.println("===== ROUTING TABLE ======");
        writer.print(routingTable.prettyPrint());

        writer.close();
View Full Code Here

Examples of org.elasticsearch.cluster.routing.RoutingTable.prettyPrint()

        BytesStreamOutput outStream = new BytesStreamOutput();
        RoutingTable.Builder.writeTo(source, outStream);
        BytesStreamInput inStream = new BytesStreamInput(outStream.copiedByteArray());
        RoutingTable target = RoutingTable.Builder.readFrom(inStream);

        assertThat(target.prettyPrint(), equalTo(source.prettyPrint()));
    }

    private DiscoveryNode newNode(String nodeId) {
        return new DiscoveryNode(nodeId, DummyTransportAddress.INSTANCE);
    }
View Full Code Here

Examples of org.elasticsearch.cluster.routing.RoutingTable.prettyPrint()

        writer.println("===== CLUSTER NODES ======");
        writer.print(nodes.prettyPrint());

        writer.println("===== ROUTING TABLE ======");
        writer.print(routingTable.prettyPrint());

        writer.close();
    }
}
View Full Code Here

Examples of org.elasticsearch.common.StopWatch.prettyPrint()

        sw.stop();
        //assertTrue("Unexpected timing " + sw.getTotalTime(), sw.getTotalTime() >= int1 + int2);
        //assertTrue("Unexpected timing " + sw.getTotalTime(), sw.getTotalTime() <= int1 + int2 + fudgeFactor);

        assertThat(sw.taskCount(), equalTo(2));
        String pp = sw.prettyPrint();
        assertThat(pp.indexOf(name1) != -1, equalTo(true));
        assertThat(pp.indexOf(name2) != -1, equalTo(true));

        StopWatch.TaskInfo[] tasks = sw.taskInfo();
        assertThat(tasks.length, equalTo(2));
View Full Code Here

Examples of org.elasticsearch.common.StopWatch.prettyPrint()

        sw.stop();
        //assertTrue("Unexpected timing " + sw.getTotalTime(), sw.getTotalTime() >= int1 + int2);
        //assertTrue("Unexpected timing " + sw.getTotalTime(), sw.getTotalTime() <= int1 + int2 + fudgeFactor);

        assertThat(sw.taskCount(), equalTo(2));
        String pp = sw.prettyPrint();
        assertThat(pp.indexOf("kept"), not(equalTo(-1)));
        sw.toString();

        try {
            sw.taskInfo();
View Full Code Here

Examples of org.elasticsearch.common.StopWatch.prettyPrint()

        CacheRecycler.clear();
        CachedStreams.clear();
        ThreadLocals.clearReferencesThreadLocals();

        if (logger.isTraceEnabled()) {
            logger.trace("Close times for each service:\n{}", stopWatch.prettyPrint());
        }

        injector.getInstance(NodeEnvironment.class).close();
        Injectors.close(injector);
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.