THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
In order to do so, it is proposed to add a new boolean member variable mustQueueDroppedEvents
to the AbstractGatewaySender
that will tell if the primary gateway sender must store dropped events or not.
- This member variable must
mustQueueDroppedEvents
must be set to false (do not store dropped events) in the primary and secondary gateway sender instances:- At gateway sender creation if the
--manual-start
option was used. - Right after stopping the gateway sender using the gfsh
stop gateway sender
command.
- At gateway sender creation if the
- This member variable must
mustQueueDroppedEvents
must be set to true (store dropped events) in the primary and secondary gateway sender instances:- At gateway sender creation if the
--manual-start
option was not used or set to false. - Right before a
start gateway sender
gfsh command is executed.
- At gateway sender creation if the
The start gateway sender
and stop gateway sender
gfsh commands would be modified as follows in order to set the member value of the gateway sender accordinglyvalue of mustQueueDroppedEvents
as follows:
- Code will be added at the end of the current
stop gateway sender
gfsh command which will setmustQueueDroppedEvents
to false the new member variable (after the gateway senders have been stopped). - Code will be added at the beginning of the current
start gateway sender
gfsh command which will setmustQueueDroppedEvents
to true the new member variable (before the gateway senders are started).
...