diff --git a/examples/src/main/java/io/druid/examples/twitter/TwitterSpritzerFirehoseFactory.java b/examples/src/main/java/io/druid/examples/twitter/TwitterSpritzerFirehoseFactory.java index e211bf8ba5c..6e338a27939 100644 --- a/examples/src/main/java/io/druid/examples/twitter/TwitterSpritzerFirehoseFactory.java +++ b/examples/src/main/java/io/druid/examples/twitter/TwitterSpritzerFirehoseFactory.java @@ -210,22 +210,22 @@ public class TwitterSpritzerFirehoseFactory implements FirehoseFactory theMap = new HashMap(2); // DIY json parsing // private final ObjectMapper omapper = new ObjectMapper(); private boolean maxTimeReached() { - if (maxRunMinutes <= 0) { + if (getMaxRunMinutes() <= 0) { return false; } else { - return (System.currentTimeMillis() - startMsec) / 60000L >= maxRunMinutes; + return (System.currentTimeMillis() - startMsec) / 60000L >= getMaxRunMinutes(); } } private boolean maxCountReached() { - return maxEventCount >= 0 && rowCount >= maxEventCount; + return getMaxEventCount() >= 0 && rowCount >= getMaxEventCount(); } @Override @@ -311,4 +311,15 @@ public class TwitterSpritzerFirehoseFactory implements FirehoseFactory