Ne pas démarrer par défaut les threads : MGScreenConnector, StopButtonPoller, VDVClientsPoller, VDVServerConnector
Conditionner leur démarrage par un paramètre. Voir également pour Terminus.
How to test:
-
Start Synthese with an empty database (or with a database that has not the global variables set to the right values.)
-
In order to start a thread, you need to set all the right global variables. Resetting one of the variables when the thread is started will not stop the thread.
-
To start
IneoNCEConnection
thread, you need to set 3 variables:ineo_nce_port
,ineo_nce_host
,ineo_nce_client_active
.
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=ineo_nce_port&actionParam_value="value"&actionParam_persistent=1&sid=root:root
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=ineo_nce_host&actionParam_value="value"&actionParam_persistent=1&sid=root:root
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=ineo_nce_client_active&actionParam_value=1&actionParam_persistent=1&sid=root:root
- To start
StopButtonPoller
thread, you need to set 3 variables:stop_monitoring_file
,stop_monitoring_period_ms
,stop_client_active
.
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=stop_monitoring_file&actionParam_value="value"&actionParam_persistent=1&sid=root:root
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=stop_monitoring_period_ms&actionParam_value="value"&actionParam_persistent=1&sid=root:root
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=stop_client_active&actionParam_value=1&actionParam_persistent=1&sid=root:root
- To start
MGScreenConnection
thread, you need to set 3 variables:mg_screen_port
,mg_screen_host
,mg_client_active
.
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=mg_screen_port&actionParam_value="value"&actionParam_persistent=1&sid=root:root
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=mg_screen_host&actionParam_value="value"&actionParam_persistent=1&sid=root:root
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=mg_client_active&actionParam_value=1&actionParam_persistent=1&sid=root:root
- To start
VDVClientsPoller
thread, you need to set 1 variable:vdv_server_active
.
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=vdv_server_active&actionParam_value=1&actionParam_persistent=1&sid=root:root
- To start
VDVServersConnector
thread, you need to set 1 variable:vdv_client_active
.
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=vdv_client_active&actionParam_value=1&actionParam_persistent=1&sid=root:root
- To start
MessageActivation
andNotification
thread, you need to set 1 variable:message_management_active
. By default, those threads are started, so to test that, you need to either launch Synthese with:
--param message_management_active=0
or launch Synthese and do:
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=message_management_active&actionParam_value=0&actionParam_persistent=1&sid=root:root
and restart Synthese. Then:
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=message_management_active&actionParam_value=1&actionParam_persistent=1&sid=root:root
-
To check that the threads have been started, you need to go to the
Threads Admin
page and check for the threads name. -
Stop and restart Synthese to check that the threads you have started during the last session have been started on startup.
-
If you want to not have a certain thread on startup, just reset the
active
flag. For example forMGScreenConnection
threads, do:
SERVICE=action&output_format=json&action_name=global_variable_update&actionParam_variable=mg_client_active&actionParam_value=0&actionParam_persistent=1&sid=root:root
- Check also threads execution by adding parameters directly when launching Synthese.