4.4.4 Shutting down the SDP server

You use the sdpstop command to shut down the SDP server.

There are two ways to shut down the SDP server:

Organization of this subsection
(1) Normal termination of SDP server
(2) Forced termination of SDP server

(1) Normal termination of SDP server

This termination method terminates the SDP server after all query groups currently executing and all custom adaptors in the in-process connection mode have terminated normally.

If a custom adaptor in the in-process connection mode is still running, the SDP server calls the stop method in the class with the StreamInprocessUP interface implemented and performs termination processing on the custom adaptor in the in-process connection mode.

To terminate the SDP server normally, execute the sdpstop command. The following shows an example of command execution:

working-directory\bin\sdpstop

For details about the sdpstop command, see sdpstop (stops the SDP server) in 7. Commands.

(2) Forced termination of SDP server

This termination method terminates the SDP server immediately without waiting for termination of the query groups currently executing or the custom adaptors in the in-process connection mode. All tuples in the input stream queue are discarded.

To terminate the SDP server forcibly, execute the sdpstop command with the -force option specified. The following shows an example of command execution:

working-directory\bin\sdpstop -force

For details about the sdpstop command, see sdpstop (stops the SDP server) in 7. Commands.