Changes between Version 6 and Version 7 of ValidationLowLevel


Ignore:
Timestamp:
Apr 18, 2009, 5:19:13 PM (15 years ago)
Author:
Nicolas
Comment:

Change extension to .cpp.

Legend:

Unmodified
Added
Removed
Modified
  • ValidationLowLevel

    v6 v7  
    33BOINC's [ValidationSimple simple validator framework] is sufficient in almost all cases. If for some reason you need more control, you can use the low-level framework (on which the simple framework is based).
    44
    5 To make a validator program using the low-level framework, link validator.C with two application-specific functions:
     5To make a validator program using the low-level framework, link validator.cpp with two application-specific functions:
    66{{{
    77int check_set(
     
    1313    * If, when an output file for a result has a nonrecoverable error (e.g. the directory is there but the file isn't, or the file is present but has invalid contents), then it must set the result's outcome (in memory, not database) to outcome=RESULT_OUTCOME_VALIDATE_ERROR and validate_state=VALIDATE_STATE_INVALID.
    1414
    15       Use BOINC's [BackendUtilities back-end utility functions] (in sched/validate_util.C) to get file pathnames and to distinguish recoverable and nonrecoverable file-open errors.
     15      Use BOINC's [BackendUtilities back-end utility functions] (in sched/validate_util.cpp) to get file pathnames and to distinguish recoverable and nonrecoverable file-open errors.
    1616    * If a canonical result is found, check_set() must set the validate_state field of each non-ERROR result (in memory, not database) to either validate_state=VALIDATE_STATE_VALID or validate_state=VALIDATE_STATE_INVALID.
    1717    * If a recoverable error occurs while reading output files (e.g. a directory wasn't visible due to NFS mount failure) then check_set() should return retry=true. This tells the validator to arrange for this WU to be processed again in a few hours.
     
    2828Neither function should delete files or access the BOINC database.
    2929
    30 Examples of these two functions may be found in validate_util2.C, which implements the [ValidationSimple simple validator framework].
     30Examples of these two functions may be found in validate_util2.cpp, which implements the [ValidationSimple simple validator framework].
    3131
    3232== Pseudocode ==