// @Override public void cleanup() { try { eventsTable.close(); tableFactory.cleanup(); } catch (Exception e) { LOG.error("Error closing connections", e); } }
@SuppressWarnings("rawtypes") public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) { this.collector = collector; this.eventsTable = tableFactory.checkTable(); }