Package co.cask.cdap.test

Examples of co.cask.cdap.test.FlowManager.stop()


    try {
      // Wait for the last Flowlet processing 5 events, or at most 5 seconds
      RuntimeMetrics metrics = RuntimeStats.getFlowletMetrics("HelloWorld", "WhoFlow", "saver");
      metrics.waitForProcessed(5, 5, TimeUnit.SECONDS);
    } finally {
      flowManager.stop();
    }

    // Start Greeting procedure and query
    ProcedureManager procedureManager = appManager.startProcedure("Greeting");
    String response = procedureManager.getClient().query("greet", ImmutableMap.<String, String>of());
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.