storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaspar Muñoz <gmu...@stratio.com>
Subject Re: Set Component Configuration after during Prepare Method
Date Mon, 26 May 2014 10:40:35 GMT
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 <gmunoz@stratio.com>:

> 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.
>
>

Mime
View raw message