Anyone knows how to do it? I load external configuration during prepare method and one property of this configuration is interval of seconds for tick tuple. Can I set tick tuple seconds in prepare method when getComponentConfiguration has already been called?
2014-05-21 18:25 GMT+02:00 Gaspar Muñoz <[email protected]>: > I want to set a *tick tuple* and I always do that in > getComponentConfiguration() without problems. > > But in this case for a variety of reasons I need do it during *prepare > method* and I don't know how to set tick tuple at this point > (getComponentConfiguration has already called). > > Is it possible change component configuration during prepare method in a > bolt? > > I tried this and doesn't work. > > String json_conf = > _context.getComponentCommon(_context.getThisComponentId()) > .get_json_conf(); > //Add option topology.tick.tuple.freq.secs and seconds. > > _context.getComponentCommon(_context.getThisComponentId()).set_json_conf(json_conf) > > But doesn't seem to be applied. > > Thanks. > >
