2003-06-11 23:36:48 +00:00
|
|
|
// The contents of this file are subject to the BOINC Public License
|
2002-12-03 18:57:40 +00:00
|
|
|
// Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
// compliance with the License. You may obtain a copy of the License at
|
2003-06-11 23:36:48 +00:00
|
|
|
// http://boinc.berkeley.edu/license_1.0.txt
|
2003-08-15 22:39:56 +00:00
|
|
|
//
|
2002-12-03 18:57:40 +00:00
|
|
|
// Software distributed under the License is distributed on an "AS IS"
|
|
|
|
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
|
|
// License for the specific language governing rights and limitations
|
2003-08-15 22:39:56 +00:00
|
|
|
// under the License.
|
|
|
|
//
|
|
|
|
// The Original Code is the Berkeley Open Infrastructure for Network Computing.
|
|
|
|
//
|
2002-12-03 18:57:40 +00:00
|
|
|
// The Initial Developer of the Original Code is the SETI@home project.
|
|
|
|
// Portions created by the SETI@home project are Copyright (C) 2002
|
2003-08-15 22:39:56 +00:00
|
|
|
// University of California at Berkeley. All Rights Reserved.
|
|
|
|
//
|
2002-12-03 18:57:40 +00:00
|
|
|
// Contributor(s):
|
|
|
|
//
|
|
|
|
|
2003-09-02 21:16:55 +00:00
|
|
|
#ifndef _SCHED_CONFIG_
|
|
|
|
#define _SCHED_CONFIG_
|
2002-10-04 20:35:56 +00:00
|
|
|
|
2002-12-03 18:57:40 +00:00
|
|
|
// parsed version of server configuration file
|
2002-10-03 18:33:46 +00:00
|
|
|
//
|
2003-09-02 21:16:55 +00:00
|
|
|
class SCHED_CONFIG {
|
2002-10-03 18:33:46 +00:00
|
|
|
public:
|
2004-05-02 15:55:17 +00:00
|
|
|
char long_name[256];
|
2002-10-03 18:33:46 +00:00
|
|
|
char db_name[256];
|
2004-01-15 23:53:13 +00:00
|
|
|
char db_user[256];
|
2002-10-03 18:33:46 +00:00
|
|
|
char db_passwd[256];
|
2003-12-11 19:05:52 +00:00
|
|
|
char db_host[256];
|
2002-10-03 18:33:46 +00:00
|
|
|
int shmem_key;
|
|
|
|
char key_dir[256];
|
2002-10-14 23:10:12 +00:00
|
|
|
char download_url[256];
|
2002-12-17 19:00:43 +00:00
|
|
|
char download_dir[256];
|
2004-08-06 11:42:41 +00:00
|
|
|
char download_dir_alt[256];
|
|
|
|
// old download dir, assumed to be flat
|
|
|
|
// (file deleter looks here if not in main dir)
|
2002-10-14 23:10:12 +00:00
|
|
|
char upload_url[256];
|
2002-10-03 18:33:46 +00:00
|
|
|
char upload_dir[256];
|
2003-10-16 19:03:49 +00:00
|
|
|
bool one_result_per_user_per_wu;
|
2004-06-24 21:00:13 +00:00
|
|
|
bool msg_to_host;
|
2003-12-31 23:09:21 +00:00
|
|
|
int min_sendwork_interval;
|
2004-02-03 21:48:49 +00:00
|
|
|
int max_wus_to_send;
|
2004-04-14 23:32:17 +00:00
|
|
|
bool non_cpu_intensive;
|
2004-05-18 18:33:01 +00:00
|
|
|
bool homogeneous_redundancy;
|
2004-09-10 21:02:11 +00:00
|
|
|
bool locality_scheduling;
|
2004-06-07 03:34:07 +00:00
|
|
|
bool ignore_upload_certificates;
|
2004-09-24 21:28:12 +00:00
|
|
|
bool dont_generate_upload_certificates;
|
2004-07-15 18:54:17 +00:00
|
|
|
bool enforce_delay_bound;
|
2004-09-24 20:17:52 +00:00
|
|
|
#if 0
|
2004-08-05 22:14:23 +00:00
|
|
|
bool deletion_policy_priority;
|
|
|
|
bool deletion_policy_expire;
|
|
|
|
bool delete_from_self;
|
2004-09-24 20:17:52 +00:00
|
|
|
#endif
|
2004-08-04 10:34:33 +00:00
|
|
|
bool use_transactions;
|
2004-05-27 18:13:00 +00:00
|
|
|
int daily_result_quota; // max results per host per day
|
2004-08-05 11:35:09 +00:00
|
|
|
int uldl_dir_fanout; // fanout of ul/dl dirs; 0 if none
|
2002-10-03 18:33:46 +00:00
|
|
|
|
2004-04-30 23:18:56 +00:00
|
|
|
int parse(char*);
|
2003-09-02 21:16:55 +00:00
|
|
|
int parse_file(char* dir=".");
|
2002-10-03 18:33:46 +00:00
|
|
|
};
|
2002-10-04 20:35:56 +00:00
|
|
|
|
2004-04-04 02:59:42 +00:00
|
|
|
// get the project's home directory
|
|
|
|
// (assumed to be the parent of the CWD)
|
|
|
|
//
|
|
|
|
void get_project_dir(char*, int);
|
|
|
|
|
2002-10-04 20:35:56 +00:00
|
|
|
#endif
|