Start and Stop Gateway Senders

GemFire XD can start a gateway sender process by default, but you can also specify a manual start when you create a sender.

GemFire XD automatically starts a gateway sender process when you use the CREATE GATEWAYSENDER statement. If you specify the MANUALSTART TRUE clause when creating a sender, you must manually start the sender processes using the SYS.START_GATEWAYSENDER procedure. Specify the name of the sender that you want to start, as in:
CALL SYS.START_GATEWAYSENDER ("CLUSTER-1-SENDER");

This starts a primary gateway sender process in the configured server group, with all other members hosting "secondary" senders in standby mode.

To stop all gateway sender processes, first use the SYS.WAIT_FOR_SENDER_QUEUE_FLUSH procedure to flush the gateway sender queue of events. Then use SYS.STOP_GATEWAYSENDER to stop the queue:
CALL SYS.WAIT_FOR_SENDER_QUEUE_FLUSH('CLUSTER-1-SENDER', 'FALSE', 0);
CALL SYS.STOP_GATEWAYSENDER ("CLUSTER-1-SENDER");