File: explain_state.php

package info (click to toggle)
boinc 5.4.11-4%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 21,440 kB
  • ctags: 16,986
  • sloc: cpp: 70,682; ansic: 45,747; php: 35,513; xml: 10,487; sh: 9,324; python: 4,291; makefile: 1,958; asm: 1,258; perl: 914; sql: 395; csh: 126; pascal: 124
file content (125 lines) | stat: -rw-r--r-- 3,555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php

require_once("../inc/util.inc");


$field = $_GET["field"];

switch($field) {
case "result_server_state":
    page_head("Server states");
    echo "
        <p>
        A result's <b>server state</b> keeps track of
        whether the result has been sent to a host,
        and if so whether the host has finished it.
        Possible values are:
        <p>
    ";
    start_table();
    row2_plain("<b>Inactive</b>",
        "The result is not ready to send
       (for example, because its input files are unavailable)"
    );
    row2_plain("<b>Unsent</b>",
        "The result is ready to send, but hasn't been sent yet."
    );
    row2_plain("<b>In Progress</b>",
        "The result has been sent; waiting for completion."
    );
    row2_plain("<b>Over</b>",
        "The result has been sent to a host and either
       it has timed out or the host has reported its completion."
    );
    break;

case "result_outcome":
    page_head("Outcomes");
    echo "
        <p>
        A result's <b>outcome</b> is defined if
        its server state is <b>over</b>.
        Possible values are:
        <p>
    ";
    start_table();
    row2_plain("<b>Unknown</b>",
        "The result was sent to a client, but the client has not
        yet completed the work and reported the outcome."
    );
    row2_plain("<b>Success</b>",
        "A client completed the result successfully."
    );
    row2_plain("<b>Couldn't send</b>",
        "The server wasn't able to send the result to a client
        (perhaps because its resource requirements were too large)"
    );
    row2_plain("<b>Client error</b>",
        "The result was sent to a client and an error occurred."
    );
    row2_plain("<b>No reply</b>",
        "The result was sent to a client
        and no reply was received within the time limit."
    );
    row2_plain("<b>Didn't need</b>",
        "The result wasn't sent to a client because
        enough other results were returned for this work unit."
    );
    row2_plain("<b>Validate error</b>",
        "The result was reported but could not be validated,
        typically because the output files were lost on the server."
    );
    break;

case "result_client_state":
    page_head("Client states");
    echo "<p>A result's <b>client state</b>
        indicates the stage of processing at which
        an error occurred.
        <p>
    ";
    start_table();
    row2_plain("<b>New</b>",
        "The client has not yet completed the work.  Since the
        processing is not over, the the final client state at
        outcome is not yet known."
    );
    row2_plain("<b>Done</b>",
        "No error occurred."
    );
    row2_plain("<b>Downloading</b>",
        "The client couldn't download the application or input files."
    );
    row2_plain("<b>Computing</b>",
        "An error occurred during computation."
    );
    row2_plain("<b>Uploading</b>",
        "The client couldn't upload the output files."
    );
    break;

case "result_time":
    page_head("Time reported and deadline");
    echo "
        <p>
        A result's <b>Time reported or deadline</b> field depends
        on whether the result has been reported yet:
        <p>
    ";
    start_table();
    row2("Already reported", "The date/time it was reported");
    row2("Not reported yet, deadline in the future",
        "Deadline, shown in green."
    );
    row2("Not reported yet, deadline in the past",
        "Deadline, shown in red."
    );
    break;

default:
    page_head("Unknown field");
}

end_table();
page_tail();
?>