1
#ifndef __SGE_BOOTSTRAP_H
2
#define __SGE_BOOTSTRAP_H
3
/*___INFO__MARK_BEGIN__*/
4
/*************************************************************************
6
* The Contents of this file are made available subject to the terms of
7
* the Sun Industry Standards Source License Version 1.2
9
* Sun Microsystems Inc., March, 2001
12
* Sun Industry Standards Source License Version 1.2
13
* =================================================
14
* The contents of this file are subject to the Sun Industry Standards
15
* Source License Version 1.2 (the "License"); You may not use this file
16
* except in compliance with the License. You may obtain a copy of the
17
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
19
* Software provided under this License is provided on an "AS IS" basis,
20
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
21
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
22
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
23
* See the License for the specific provisions governing your rights and
24
* obligations concerning the Software.
26
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
28
* Copyright: 2001 by Sun Microsystems, Inc.
30
* All Rights Reserved.
32
************************************************************************/
33
/*___INFO__MARK_END__*/
35
#include "basis_types.h"
36
#include "sge_dstring.h"
37
#include "setup_path.h"
39
void bootstrap_mt_init(void);
43
const char *bootstrap_get_admin_user(void);
44
const char *bootstrap_get_default_domain(void);
45
bool bootstrap_get_ignore_fqdn(void);
46
const char *bootstrap_get_spooling_method(void);
47
const char *bootstrap_get_spooling_lib(void);
48
const char *bootstrap_get_spooling_params(void);
49
const char *bootstrap_get_binary_path(void);
50
const char *bootstrap_get_qmaster_spool_dir(void);
51
const char *bootstrap_get_security_mode(void);
52
bool bootstrap_get_job_spooling(void);
53
int bootstrap_get_listener_thread_count(void);
54
int bootstrap_get_worker_thread_count(void);
55
int bootstrap_get_scheduler_thread_count(void);
56
int bootstrap_get_jvm_thread_count(void);
58
void bootstrap_set_admin_user(const char *value);
59
void bootstrap_set_default_domain(const char *value);
60
void bootstrap_set_ignore_fqdn(bool value);
61
void bootstrap_set_spooling_method(const char *value);
62
void bootstrap_set_spooling_lib(const char *value);
63
void bootstrap_set_spooling_params(const char *value);
64
void bootstrap_set_binary_path(const char *value);
65
void bootstrap_set_qmaster_spool_dir(const char *value);
66
void bootstrap_set_security_mode(const char *value);
67
void bootstrap_set_job_spooling(bool value);
68
void bootstrap_set_listener_thread_count(int value);
69
void bootstrap_set_worker_thread_count(int value);
70
void bootstrap_set_scheduler_thread_count(int value);
71
void bootstrap_set_jvm_thread_count(int value);
75
bool sge_bootstrap(const char *bootstrap_file, dstring *error_dstring);
77
typedef struct sge_bootstrap_state_class_str sge_bootstrap_state_class_t;
79
struct sge_bootstrap_state_class_str {
80
void *sge_bootstrap_state_handle;
82
void (*dprintf)(sge_bootstrap_state_class_t *thiz);
84
const char* (*get_admin_user)(sge_bootstrap_state_class_t *thiz);
85
const char* (*get_default_domain)(sge_bootstrap_state_class_t *thiz);
86
bool (*get_ignore_fqdn)(sge_bootstrap_state_class_t *thiz);
87
const char* (*get_spooling_method)(sge_bootstrap_state_class_t *thiz);
88
const char* (*get_spooling_lib)(sge_bootstrap_state_class_t *thiz);
89
const char* (*get_spooling_params)(sge_bootstrap_state_class_t *thiz);
90
const char* (*get_binary_path)(sge_bootstrap_state_class_t *thiz);
91
const char* (*get_qmaster_spool_dir)(sge_bootstrap_state_class_t *thiz);
92
const char* (*get_security_mode)(sge_bootstrap_state_class_t *thiz);
93
bool (*get_job_spooling)(sge_bootstrap_state_class_t *thiz);
94
int (*get_listener_thread_count)(sge_bootstrap_state_class_t *thiz);
95
int (*get_worker_thread_count)(sge_bootstrap_state_class_t *thiz);
96
int (*get_scheduler_thread_count)(sge_bootstrap_state_class_t *thiz);
97
int (*get_jvm_thread_count)(sge_bootstrap_state_class_t *thiz);
99
void (*set_admin_user)(sge_bootstrap_state_class_t *thiz, const char *admin_user);
100
void (*set_default_domain)(sge_bootstrap_state_class_t *thiz, const char *default_domain);
101
void (*set_ignore_fqdn)(sge_bootstrap_state_class_t *thiz, bool ignore_fqdn);
102
void (*set_spooling_method)(sge_bootstrap_state_class_t *thiz, const char *spooling_method);
103
void (*set_spooling_lib)(sge_bootstrap_state_class_t *thiz, const char *spooling_lib);
104
void (*set_spooling_params)(sge_bootstrap_state_class_t *thiz, const char *spooling_params);
105
void (*set_binary_path)(sge_bootstrap_state_class_t *thiz, const char *binary_path);
106
void (*set_qmaster_spool_dir)(sge_bootstrap_state_class_t *thiz, const char *qmaster_spool_dir);
107
void (*set_security_mode)(sge_bootstrap_state_class_t *thiz, const char *security_mode);
108
void (*set_job_spooling)(sge_bootstrap_state_class_t *thiz, bool job_spooling);
109
void (*set_listener_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
110
void (*set_worker_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
111
void (*set_scheduler_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
112
void (*set_jvm_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
115
sge_bootstrap_state_class_t *sge_bootstrap_state_class_create(sge_path_state_class_t *sge_paths, sge_error_class_t *eh);
116
void sge_bootstrap_state_class_destroy(sge_bootstrap_state_class_t **pst);
118
void sge_bootstrap_state_set_thread_local(sge_bootstrap_state_class_t* ctx);
121
#endif /* __SGE_BOOTSTRAP_H */