File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/test/java/org/sourcelab/storm/spout/redis/example Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
import org .sourcelab .storm .spout .redis .failhandler .ExponentialBackoffFailureHandler ;
12
12
import org .sourcelab .storm .spout .redis .util .test .RedisTestContainer ;
13
13
import org .sourcelab .storm .spout .redis .util .test .RedisTestHelper ;
14
- import org .testcontainers .containers .GenericContainer ;
15
14
16
15
import java .io .BufferedReader ;
17
16
import java .io .IOException ;
21
20
22
21
/**
23
22
* Example topology using the RedisStreamSpout deployed against a LocalTopology cluster.
23
+ *
24
+ * NOTE: This required Docker to run.
24
25
*/
25
26
public class ExampleLocalTopology {
26
- private final GenericContainer redis ;
27
+ private final RedisTestContainer redis ;
27
28
private Thread producerThread ;
28
29
29
30
/**
@@ -120,7 +121,7 @@ public void runExample(final boolean enableDebug) throws Exception {
120
121
private void startProducerThread (final String streamKey ) {
121
122
final Runnable runnable = () -> {
122
123
// Create helper
123
- final RedisTestHelper testHelper = new RedisTestHelper ( " redis://" + redis . getHost () + ":" + redis . getFirstMappedPort () );
124
+ final RedisTestHelper testHelper = redis . getRedisTestHelper ( );
124
125
125
126
long tupleCounter = 0L ;
126
127
do {
You can’t perform that action at this time.
0 commit comments