// Storm will emit the counts every n seconds to a special bolt via a
// system stream
// The data can be accessed by registering a "MetricConsumer" in the
// topology
this.eventCounter = context.registerMetric("URLPartitioner",
new MultiCountMetric(), 10);
final int MAX_ENTRIES = 500;
cache = new LinkedHashMap(MAX_ENTRIES + 1, .75F, true) {
// This method is called just after a new entry has been added
public boolean removeEldestEntry(Map.Entry eldest) {