@Override public boolean isExhausted() { return completed(); } }
public void setMockedSources(MockedSources mockedSources) { if (mockedSources == null) { mockedSources = new MockedSources(); } this.mockedSources = mockedSources; }
/** * Simulated time wait for a tracked topology. This is intended for internal testing */ public static void trackedWait(TrackedTopology topo, Integer amt) { topo.trackedWait(amt); }
public void feed(List<Object> tuple, Object msgId) { spout.feed(tuple, msgId); }
public AckTrackingFeeder(String... fields) { tracker = new AckTracker(); spout = new FeederSpout(new Fields(fields)); spout.setAckFailDelegate(tracker); }
@Test @IntegrationTest public void testCompleteTopologyLocal() throws Exception { MkClusterParam param = new MkClusterParam(); param.setSupervisors(4); Testing.withLocalCluster(param, COMPLETE_TOPOLOGY_TESTJOB); }
public static StormTopology createTestTopology() { TopologyBuilder builder = new TopologyBuilder(); builder.setSpout("words", new TestWordSpout(), generateParallelismHint()); builder.setBolt("count", new TestWordCounter(), generateParallelismHint()).shuffleGrouping("words"); builder.setBolt("globalCount", new TestGlobalCount(), generateParallelismHint()).shuffleGrouping("count"); return builder.createTopology(); }
public void ack(Object msgId) { if (_ackFailDelegate != null) { _ackFailDelegate.ack(msgId); } }
public void fail(Object msgId) { if (_ackFailDelegate != null) { _ackFailDelegate.fail(msgId); } }
public void addMockData(String spoutId, Values... valueses) { this.addMockData(spoutId, Utils.DEFAULT_STREAM_ID, valueses); }
public TmpPath() { this(localTempPath()); }
public void feedNoWait(List<Object> tuple, Object msgId) { spout.feedNoWait(tuple, msgId); }
public void feed(List<Object> tuple) { spout.feed(tuple); }
/** * Simulated time wait for a tracked topology. This is intended for internal testing */ public static void trackedWait(TrackedTopology topo, Integer amt, Integer timeoutMs) { topo.trackedWait(amt, timeoutMs); }
/** * Wait for 1 tuple to be fully processed */ public void trackedWait() { trackedWait(1, Testing.TEST_TIMEOUT_MS); }
/** * Simulated time wait for a tracked topology. This is intended for internal testing */ public static void trackedWait(CapturedTopology<TrackedTopology> topo) { topo.topology.trackedWait(); }
/** * Simulated time wait for a tracked topology. This is intended for internal testing */ public static void trackedWait(CapturedTopology<TrackedTopology> topo, Integer amt) { topo.topology.trackedWait(amt); }
/** * Wait for amt tuples to be fully processed. */ public void trackedWait(int amt) { trackedWait(amt, Testing.TEST_TIMEOUT_MS); }
/** * Simulated time wait for a tracked topology. This is intended for internal testing */ public static void trackedWait(CapturedTopology<TrackedTopology> topo, Integer amt, Integer timeoutMs) { topo.topology.trackedWait(amt, timeoutMs); }
/** * Simulated time wait for a tracked topology. This is intended for internal testing */ public static void trackedWait(TrackedTopology topo) { topo.trackedWait(); }