The deactivate() on the spout will be called when the topology is
deactivated. Below is the output of storm deactivate help. This will
deactivate the whole topology and this can be from the Storm UI as well.
Does you topology have more than one Spout and are you looking to stop only
a subset of those Spouts?

$ storm help deactivate
Syntax: [storm deactivate topology-name]

    Deactivates the specified topology's spouts.



On Thu, Aug 13, 2015 at 2:12 PM Javier Gonzalez <[email protected]> wrote:

> On a more broader term, can you share the strategies you've used to pause
> (not emit anything else into the topology and not read anything else from
> the data source) a topology's spouts?
>
> Thanks,
> Javier
> On Aug 13, 2015 2:53 PM, "Javier Gonzalez" <[email protected]> wrote:
>
>> Hi,
>>
>> I have a use case where I would need to stop a spout from emitting for a
>> period of time. I'm looking at the activate /deactivate methods, but
>> there's not much information apart from the API and the java base classes
>> have empty implementations. Can anybody shed any insight on how those work?
>>
>> Thanks,
>> Javier
>> (storm 0.9.4 btw)
>>
>

Reply via email to