Exemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {
   LOG.debug("Start to prepare storm output bolt.");
   outputCollector = collector;
   if (null != output.getConfig().get(StreamingConfig.STREAMING_STORM_COMMON_ISACK)) {
     needAck =
         Boolean.valueOf(
             output.getConfig().get(StreamingConfig.STREAMING_STORM_COMMON_ISACK).toString());
   }
   try {
     output.initialize();
   } catch (StreamingException e) {
     LOG.error("Failed to initialize output stream.");
     throw new RuntimeException("Failed to initialize output stream", e);
   }
 }
Exemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 public Map<String, Object> getComponentConfiguration() {
   return output.getConfig();
 }