(Contents)

Persistent Line Dispatcher

See also: StarConnect Data Server Parameters

Synchronous communication is used for real time data exchange between an external system and Autoline. The external system places a synchronous request at the StarConnect data server which will forward this request to the Autoline server. This requires a connection between the StarConnect data server and the Autoline server. This connection, called a persistent line, is established by the Autoline server and remains open during the day in order that STCDS can use this line to place the request at the Autoline server.

Requests retrieved over the persistent line need processing immediately and the response is send back to STCDS. The response is not sent over the persistent line as this handles only the communication from STCDS to Autoline. The asynchronous communication channel is used to send back the information to the data server. These requests are handled by the request processor. It is possible to run multiple request processors per persistent line to avoid that the requests received from STCDS are waiting until the request processor is available.

The synchronous communication requires therefore three processes within Autoline:

  1. (Green square two arrows downwards) Persistent line dispatcher: The persistent line dispatcher is the main controlling process for the synchronous communication and performs the following tasks:

    Requests received from STCDS will contain an Operation ID. Every process that uses STCDS has a unique operation ID and is used by the line dispatcher to determine the processor module that handles the request. The Processing Modules form displays the configured operation ID's for a specific module. The dispatcher allocates a request to the first free processor that is running for the corresponding module based on the operation ID.

  2. Import3.gif Persistent line handler: The persistent line handler establishes the persistent line connection between Autoline and STCDS and start listening on the line until the STCDS send data to Autoline.

    STCDS sends on regular basis keep live messages to Autoline to avoid that the line is disconnected if it is idle for a long time. These messages are in principle ignored by the persistent line handler, but the connection is reinitiated if no keep live messages are received in the last 12 minutes.

    Requests that are received from STCDS are stored in the inbound queue for synchronous communication (MB.MS.scdsi file) and the persistent line handler informs the dispatcher about the new request that is received.

    Note: The persistent line process uses one KCML user license to provide support on the background processes. You might need an increase of the available user licenses when activating the persistent line in Autoline.

  3. Export.gif Request processor: The request processor is generating the response on the received request and sends it back to STCDS over the asynchronous communication line.

    The persistent line dispatcher starts automatically additional processor modules when the available processors are occupied. The request is allocated to the newly started processer. This makes parallel handling of requests, with a maximum of three request processors for the same type, possible.

    The persistent line dispatcher informs the request processor to handle a received request that is stored by the persistent line handler in the inbound queue for synchronous communication. The status of the inbound queue is set to Processed once the request processor has sent back the response and the request processor will report back to the persistent line dispatcher that it is available to handle a new request.

The dispatcher, persistent line handlers and the processors are running as different processes on the Autoline server. The communication between these processes is done via a Global object. The global object is a shared memory segment which holds the status of the different processes. The Persistent Line Dispatcher form displays the contents of this global object.

The Persistent Line Dispatcher form handles the main controlling process for the synchronous communication. You can monitor the status of the persistent lines and the processors.

Persistent Line Dispatcher Form

This form is displayed when you click Manufacturer-specific > MB. Mercedes-Benz > Menu - Utilities > StarConnect Data Server > Persistent Line Dispatcher. It handles the main controlling process for the synchronous communication.

Menu Bar and Toolbar:

Menu bar Toolbar Action
File > Exit Exit.gif Returns you to the previous menu.

Tools > Start dispatcher - Starts the dispatcher process and also the persistent line handlers plus processors. This option is only available if the dispatcher is not running.

Tip: You can setup the Dispatcher function to start and stop the daemons automatically in Timed operations with module MS and option MBMDSSCP (Persistent line dispatcher).
You can also use the Start All Backgrounds function manually or automatically in Timed operations with module SU and option STARTALL (Start all backgrounds), so that the Mercedes-Benz Daemon Monitor is triggered to start all concerning Mercedes-Benz daemons.

Tools > Stop dispatcher - Stops the dispatcher process and also the persistent line handlers plus processors. This option is only available if the dispatcher is running.

Tip: You can setup the Dispatcher function to start and stop the daemons automatically in Timed operations with module MS and option MBMDSSCP (Persistent line dispatcher).
You can also use the Start All Backgrounds function manually or automatically in Timed operations with module SU and option STARTALL (Start all backgrounds), so that the Mercedes-Benz Daemon Monitor is triggered to start all concerning Mercedes-Benz daemons.

Tools > Show logfile Displays the log that is generated by the persistent line processes.
Tools > View processed requests Displays the contents of the inbound queue for synchronous communication.

Help > Help Help2.gif Displays this help topic in a web browser.
Help > About Displays version and copyright information.

Persistent Line Handlers Grid:

Displays the details of the configured processes and their status.

External system ID: Displays the GSSN dealer number of the main outlet of the dealer (retailer). The Line handler and Processers are grouped per retailer, their descriptions are available in this field below the retailer number. The description of the processor is from the processing module.

Note: The first data gridline (below the headers) displays the details of the persistent line dispatcher.

Partition: Displays the partition number (unique ID allocated by KCML) of the process.

Status: Displays the status of the dispatcher, line handler or processor which is kept in the global object and validated by the dispatcher on regular basis:

Note: In case of the retailer number it displays the description of the retailer.

Requests: Displays the total number of requests for:

Last access: Displays the time in HH:MM:SS format:

Outstanding Synchronous Request Grid:

Displays the requests that are received on the persistent line, which are not processed yet.

External System ID: Displays the GSSN dealer number of the main outlet of the dealer (retailer) which has received the request.

ID: Displays an unique ID in the inbound queue for synchronous transfer.

Request ID: Displays the unique Request ID received from STCDS. This request ID is included in the response to STCDS.

Type: Displays the type of the request as configured by STCDS.

Operation: Displays the ID of the operation provided by STCDS. The operation ID is used to determine the processing module that handles the request.

Status: Displays the status of the request:

Processor: Displays the ID of the processor that is allocated to process this request. For example, 1 is the first processor in the list of this external system ID.

Related Topics:

Mercedes-Benz Daemon Monitor

Timed operations