waitAndgetMultiServerData

waitAndgetMultiServerData ( string serverName , string _id , bool[default:false] _dontWait ) : mixed

Returns the data distributed by distributeMultiServers, for each appropriate server.
If there is no data, the script just wait until a data is implemented.
See the example of distributeMultiServers.

See also

distributeMultiServers
clearMultiServerData
setSharedOnlineConfiguration
getSharedOnlineConfiguration
getCloudIdServer

Parameters

serverName

The name assigned to this machine

_id (optional)

You must set here the same ID than in distributeMultiServers. If there is no ID, the unique script ID is used. This parameter is usefull if you share information between sevral scripts.

_dontWait (optional)

Does not wait. If there is no data, it return null. Usefull in iterative mode.