File: sge_bootstrap.h

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 56,880 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,429; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,701; csh: 3,928; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (121 lines) | stat: -rw-r--r-- 5,801 bytes parent folder | download | duplicates (9)
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
#ifndef __SGE_BOOTSTRAP_H
#define __SGE_BOOTSTRAP_H
/*___INFO__MARK_BEGIN__*/
/*************************************************************************
 * 
 *  The Contents of this file are made available subject to the terms of
 *  the Sun Industry Standards Source License Version 1.2
 * 
 *  Sun Microsystems Inc., March, 2001
 * 
 * 
 *  Sun Industry Standards Source License Version 1.2
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.2 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
 * 
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 * 
 *   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 * 
 *   Copyright: 2001 by Sun Microsystems, Inc.
 * 
 *   All Rights Reserved.
 * 
 ************************************************************************/
/*___INFO__MARK_END__*/

#include "basis_types.h"
#include "sge_dstring.h"
#include "setup_path.h"

void bootstrap_mt_init(void);

#ifndef GDI_OFF

const char *bootstrap_get_admin_user(void);
const char *bootstrap_get_default_domain(void);
bool        bootstrap_get_ignore_fqdn(void);
const char *bootstrap_get_spooling_method(void);
const char *bootstrap_get_spooling_lib(void);
const char *bootstrap_get_spooling_params(void);
const char *bootstrap_get_binary_path(void);
const char *bootstrap_get_qmaster_spool_dir(void);
const char *bootstrap_get_security_mode(void);
bool        bootstrap_get_job_spooling(void);
int         bootstrap_get_listener_thread_count(void);
int         bootstrap_get_worker_thread_count(void);
int         bootstrap_get_scheduler_thread_count(void);
int         bootstrap_get_jvm_thread_count(void);

void bootstrap_set_admin_user(const char *value);
void bootstrap_set_default_domain(const char *value);
void bootstrap_set_ignore_fqdn(bool value);
void bootstrap_set_spooling_method(const char *value);
void bootstrap_set_spooling_lib(const char *value);
void bootstrap_set_spooling_params(const char *value);
void bootstrap_set_binary_path(const char *value);
void bootstrap_set_qmaster_spool_dir(const char *value);
void bootstrap_set_security_mode(const char *value);
void bootstrap_set_job_spooling(bool value);
void bootstrap_set_listener_thread_count(int value);
void bootstrap_set_worker_thread_count(int value);
void bootstrap_set_scheduler_thread_count(int value);
void bootstrap_set_jvm_thread_count(int value);

#endif

bool sge_bootstrap(const char *bootstrap_file, dstring *error_dstring);

typedef struct sge_bootstrap_state_class_str sge_bootstrap_state_class_t; 

struct sge_bootstrap_state_class_str {
   void *sge_bootstrap_state_handle;

   void (*dprintf)(sge_bootstrap_state_class_t *thiz);
   
   const char* (*get_admin_user)(sge_bootstrap_state_class_t *thiz);
   const char* (*get_default_domain)(sge_bootstrap_state_class_t *thiz);
   bool (*get_ignore_fqdn)(sge_bootstrap_state_class_t *thiz);
   const char* (*get_spooling_method)(sge_bootstrap_state_class_t *thiz);
   const char* (*get_spooling_lib)(sge_bootstrap_state_class_t *thiz);
   const char* (*get_spooling_params)(sge_bootstrap_state_class_t *thiz);
   const char* (*get_binary_path)(sge_bootstrap_state_class_t *thiz);
   const char* (*get_qmaster_spool_dir)(sge_bootstrap_state_class_t *thiz);
   const char* (*get_security_mode)(sge_bootstrap_state_class_t *thiz);
   bool (*get_job_spooling)(sge_bootstrap_state_class_t *thiz);
   int (*get_listener_thread_count)(sge_bootstrap_state_class_t *thiz);
   int (*get_worker_thread_count)(sge_bootstrap_state_class_t *thiz);
   int (*get_scheduler_thread_count)(sge_bootstrap_state_class_t *thiz);
   int (*get_jvm_thread_count)(sge_bootstrap_state_class_t *thiz);

   void (*set_admin_user)(sge_bootstrap_state_class_t *thiz, const char *admin_user);
   void (*set_default_domain)(sge_bootstrap_state_class_t *thiz, const char *default_domain);
   void (*set_ignore_fqdn)(sge_bootstrap_state_class_t *thiz, bool ignore_fqdn);
   void (*set_spooling_method)(sge_bootstrap_state_class_t *thiz, const char *spooling_method);
   void (*set_spooling_lib)(sge_bootstrap_state_class_t *thiz, const char *spooling_lib);
   void (*set_spooling_params)(sge_bootstrap_state_class_t *thiz, const char *spooling_params);
   void (*set_binary_path)(sge_bootstrap_state_class_t *thiz, const char *binary_path);
   void (*set_qmaster_spool_dir)(sge_bootstrap_state_class_t *thiz, const char *qmaster_spool_dir);
   void (*set_security_mode)(sge_bootstrap_state_class_t *thiz, const char *security_mode);
   void (*set_job_spooling)(sge_bootstrap_state_class_t *thiz, bool job_spooling);
   void (*set_listener_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
   void (*set_worker_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
   void (*set_scheduler_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
   void (*set_jvm_thread_count)(sge_bootstrap_state_class_t *thiz, int thread_count);
};

sge_bootstrap_state_class_t *sge_bootstrap_state_class_create(sge_path_state_class_t *sge_paths, sge_error_class_t *eh);
void sge_bootstrap_state_class_destroy(sge_bootstrap_state_class_t **pst);

void sge_bootstrap_state_set_thread_local(sge_bootstrap_state_class_t* ctx);


#endif /* __SGE_BOOTSTRAP_H */