MCPcopy Create free account
hub / github.com/apache/storm / simulateWait

Method simulateWait

storm-server/src/main/java/org/apache/storm/Testing.java:485–490  ·  view source on GitHub ↗

If using simulated time simulate waiting for 10 seconds. This is intended for internal testing only.

(ILocalCluster cluster)

Source from the content-addressed store, hash-verified

483 * If using simulated time simulate waiting for 10 seconds. This is intended for internal testing only.
484 */
485 public static void simulateWait(ILocalCluster cluster) throws InterruptedException {
486 if (Time.isSimulating()) {
487 cluster.advanceClusterTime(10);
488 Thread.sleep(100);
489 }
490 }
491
492 /**
493 * Get all of the tuples from a given component on the default stream.

Callers 1

completeTopologyMethod · 0.95

Calls 3

isSimulatingMethod · 0.95
advanceClusterTimeMethod · 0.65
sleepMethod · 0.45

Tested by

no test coverage detected