Changes between Version 9 and Version 10 of HTMLGfx


Ignore:
Timestamp:
Dec 28, 2014, 11:50:01 AM (10 years ago)
Author:
romw
Comment:

Add documentation about the url selection process

Legend:

Unmodified
Added
Removed
Modified
  • HTMLGfx

    v9 v10  
    8484Reference: [BasicApi#GraphicsStatus boinc_graphics_status.xml]
    8585
     86=== State URL Selection Process ===
     87URL selection works by the following process:
     88{{{
     89    switch_to_url = default_url
     90
     91    if ((status.abort_request or status.quit_request or status.no_heartbeat) and (exiting_url not empty))
     92        switch_to_url = exiting_url
     93    else if (status.suspended and (suspended_url not empty))
     94        switch_to_url = suspended_url
     95    else if (status.network_suspended and (network_suspended_url not empty))
     96        switch_to_url = network_suspended_url
     97    else if (running_url not empty)
     98        switch_to_url = running_url
     99
     100    if ((is_vboxwrapper_job && web_api_port) && (switch_to_url is empty))
     101        switch_to_url  = "http://localhost:" + web_api_port + "/";
     102}}}
     103
    86104=== Vboxwrapper WebAPI Port ===
    87105