If you don't care about choosing moment to commit your data the why you
just don't use "autocommit" mode?
On 3/20/2014 3:06 PM, Manthosh Kumar T wrote:
I just want to call Connection.commit() for adding data to DB. Now I
call commit in the bolt after some threshold. But when the spout stops
emitting for some time, the uncomitted data are not yet added to DB.
So if calling a function when a topology is killed isn't possible, is
it possible to have a Time out in the bolt, so that I can commit data
when no Tuple is received for some time?
On 20 March 2014 16:39, Manthosh Kumar T <[email protected]
<mailto:[email protected]>> wrote:
Hi All,
When running a topology in cluster, is it possible to
call a function when in a bolt when a Topology is killed?. Or will
cluster.shutdown() work in the same way as in local mode when
running in Cluster mode?, if it is so, is it possible to call a
function in bolt when the cluster is shutdown?
--
Cheers,
Manthosh Kumar. T
--
Cheers,
Manthosh Kumar. T