4.1 Flow of system operation

System operation includes starting and shutting down the system and using query groups. The following shows the flow of operations in a stream data processing system.

Figure 4-1 Flow of system operation

[Figure]

The following subsections explain the steps.

Organization of this section
(1) Starting the system
(2) Using queries and query groups
(3) Displaying analysis results on a dashboard
(4) Shutting down the system

(1) Starting the system

You start the system by starting the SDP server, query groups, and adaptors in the following order:

  1. Start the SDP server
    Start the SDP server. For details about how to start the SDP server, see 4.2.1 Starting the SDP server.
  2. Register query groups
    Register query groups into the SDP server. For details about how to register query groups, see 4.2.2 Registering query groups.
  3. Start query groups
    Start the query groups that have been registered into the SDP server. For details about how to start query groups, see 4.2.3 Starting query groups.
  4. Start adaptors
    Start the standard adaptors or custom adaptors. For details about how to start the standard adaptors, see 4.2.4 Starting adaptors (standard adaptors); for details about how to start custom adaptors, see 4.2.5 Starting adaptors (custom adaptors).
  5. Check the status of adaptor groups
    If you are using the standard adaptors, check to see if the adaptor groups are running normally. For details about how to check adaptor group status, see 4.2.6 Checking the status of adaptor groups.

(2) Using queries and query groups

If necessary, you can use queries and query groups by performing the operations explained below.

  1. Re-execute queries
    Re-execute queries that have already been executed. For details about how to re-execute queries, see 4.3.1 Re-executing queries.
  2. Display the status of query groups
    Display the status of query groups and the accumulation status of input and output streams. For details about how to display the status of query groups, 4.3.2 Displaying the status of query groups.

(3) Displaying analysis results on a dashboard

The following describes how to use the standard adaptors to output stream data summary analysis results to a dashboard:

  1. Start Dashboard Server
    Start the Web server, PRF daemon, and Web container server; then start Dashboard Server. For details about how to start Dashboard Server, see 4.5.1 Starting Dashboard Server.
  2. Use Dashboard Viewer to display analysis results
    Use Dashboard Viewer to open the dashboard window and display analysis results. For details about how to use Dashboard Viewer to display analysis results, see 4.5.2 Using Dashboard Viewer to display analysis results.
  3. Shut down Dashboard Server.
    Shut down the Web container server, PRF daemon, and Web server, and then shut down Dashboard Server. For details about how to shut down Dashboard Server, see 4.5.3 Shutting down Dashboard Server.

(4) Shutting down the system

Terminate the adaptors, query groups, and SDP server in the order described below, and then shut down the system.

  1. Terminate the adaptors
    Terminate the standard or custom adaptors. If you are using custom adaptors in the RMI connection mode, you must implement a termination process within the custom adaptors because Stream Data Platform - AF commands cannot be used to terminate them.
    For details about how to terminate the standard adaptors, see 4.4.1 Terminating adaptors (standard adaptors); for details about how to terminate custom adaptors, see 4.4.2 Terminating adaptors (custom adaptors).
  2. Check the status of adaptor groups
    Check that the adaptor groups have terminated normally. For details about how to check the status of adaptor groups, see 4.2.6 Checking the status of adaptor groups.
  3. Terminate the query groups
    Terminate the query groups. For details about how to terminate the query groups, see 4.4.3 Terminating query groups.
  4. Shut down the SDP server
    Shut down the SDP server. For details about how to shut down the SDP server, see 4.4.4 Shutting down the SDP server.