~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/libs/sgeobj/sge_qinstance.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SGE_QINSTANCE_H
 
2
#define __SGE_QINSTANCE_H
 
3
 
 
4
/*___INFO__MARK_BEGIN__*/
 
5
/*************************************************************************
 
6
 * 
 
7
 *  The Contents of this file are made available subject to the terms of
 
8
 *  the Sun Industry Standards Source License Version 1.2
 
9
 * 
 
10
 *  Sun Microsystems Inc., March, 2001
 
11
 * 
 
12
 * 
 
13
 *  Sun Industry Standards Source License Version 1.2
 
14
 *  =================================================
 
15
 *  The contents of this file are subject to the Sun Industry Standards
 
16
 *  Source License Version 1.2 (the "License"); You may not use this file
 
17
 *  except in compliance with the License. You may obtain a copy of the
 
18
 *  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
 
19
 * 
 
20
 *  Software provided under this License is provided on an "AS IS" basis,
 
21
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 
22
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 
23
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 
24
 *  See the License for the specific provisions governing your rights and
 
25
 *  obligations concerning the Software.
 
26
 * 
 
27
 *   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
28
 * 
 
29
 *   Copyright: 2001 by Sun Microsystems, Inc.
 
30
 * 
 
31
 *   All Rights Reserved.
 
32
 * 
 
33
 ************************************************************************/
 
34
/*___INFO__MARK_END__*/
 
35
 
 
36
#include "sge_dstring.h"
 
37
#include "sge_qinstanceL.h"
 
38
 
 
39
bool
 
40
qinstance_validate(lListElem *this_elem, lList **answer_list, lList *master_exechost_list);
 
41
 
 
42
bool
 
43
qinstance_list_validate(lList *this_list, lList **answer_list, lList *master_exechost_list);
 
44
 
 
45
void
 
46
qinstance_set_full_name(lListElem *this_elem);
 
47
 
 
48
lListElem *
 
49
qinstance_list_locate(const lList *this_list, const char *hostname,
 
50
                      const char *cqueue_name);
 
51
 
 
52
lListElem *
 
53
qinstance_list_locate2(const lList *qinstance_list, const char *full_name);
 
54
 
 
55
const char *
 
56
qinstance_get_name(const lListElem *this_elem, dstring *string_buffer);
 
57
 
 
58
void
 
59
qinstance_list_set_tag(lList *this_list, u_long32 tag_value);
 
60
 
 
61
void
 
62
qinstance_increase_qversion(lListElem *this_elem);
 
63
 
 
64
bool 
 
65
qinstance_check_owner(const lListElem *queue, const char *user_name);
 
66
 
 
67
bool
 
68
qinstance_is_pe_referenced(const lListElem *this_elem, 
 
69
                           const lListElem *pe);
 
70
 
 
71
bool
 
72
qinstance_is_a_pe_referenced(const lListElem *this_elem);
 
73
 
 
74
bool
 
75
qinstance_is_ckpt_referenced(const lListElem *this_elem, 
 
76
                             const lListElem *ckpt);
 
77
 
 
78
bool
 
79
qinstance_is_a_ckpt_referenced(const lListElem *this_elem);
 
80
 
 
81
bool
 
82
qinstance_is_centry_referenced(const lListElem *this_elem, 
 
83
                               const lListElem *centry);
 
84
 
 
85
bool
 
86
qinstance_is_centry_a_complex_value(const lListElem *this_elem,
 
87
                                    const lListElem *name);
 
88
 
 
89
void
 
90
qinstance_set_slots_used(lListElem *this_elem, int new_slots);
 
91
 
 
92
int
 
93
qinstance_slots_used(const lListElem *this_elem);
 
94
 
 
95
int
 
96
qinstance_slots_reserved(const lListElem *this_elem);
 
97
 
 
98
void
 
99
qinstance_set_conf_slots_used(lListElem *this_elem);
 
100
 
 
101
bool
 
102
qinstance_is_calendar_referenced(const lListElem *this_elem, 
 
103
                                 const lListElem *calendar);
 
104
 
 
105
int
 
106
qinstance_debit_consumable(lListElem *this_elem, lListElem *job, 
 
107
                           lList *centry_list, int slots);
 
108
 
 
109
bool
 
110
qinstance_message_add(lListElem *this_elem, u_long32 type, const char *message);
 
111
 
 
112
bool
 
113
qinstance_message_trash_all_of_type_X(lListElem *this_elem, u_long32 type);
 
114
 
 
115
/* EB: TODO: queue -> qinstance */
 
116
 
 
117
int queue_reference_list_validate(lList **alpp, lList *qr_list,
 
118
                                  const char *attr_name, const char *obj_descr,
 
119
                                  const char *obj_name);
 
120
 
 
121
int
 
122
rc_debit_consumable(lListElem *jep, lListElem *ep, lList *centry_list, int slots,
 
123
                 int config_nm, int actual_nm, const char *obj_name);
 
124
 
 
125
lListElem *
 
126
explicit_job_request(lListElem *jep, const char *name);
 
127
 
 
128
bool
 
129
qinstance_list_find_matching(const lList *this_list, lList **answer_list,
 
130
                             const char *hostname_pattern, lList **qref_list);
 
131
 
 
132
bool
 
133
qinstance_list_verify_execd_job(const lList *queue_list, lList **answer_list);
 
134
 
 
135
bool
 
136
qinstance_verify(const lListElem *qep, lList **answer_list);
 
137
 
 
138
bool
 
139
qinstance_verify_full_name(lList **answer_list, const char *full_name);
 
140
 
 
141
void
 
142
qinstance_set_error(lListElem *qinstance, u_long32 type, const char *message, bool set_error);
 
143
#endif /* __SGE_QINSTANCE_H */