1
#ifndef __SGE_QINSTANCE_H
2
#define __SGE_QINSTANCE_H
4
/*___INFO__MARK_BEGIN__*/
5
/*************************************************************************
7
* The Contents of this file are made available subject to the terms of
8
* the Sun Industry Standards Source License Version 1.2
10
* Sun Microsystems Inc., March, 2001
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
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.
27
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
29
* Copyright: 2001 by Sun Microsystems, Inc.
31
* All Rights Reserved.
33
************************************************************************/
34
/*___INFO__MARK_END__*/
36
#include "sge_dstring.h"
37
#include "sge_qinstanceL.h"
40
qinstance_validate(lListElem *this_elem, lList **answer_list, lList *master_exechost_list);
43
qinstance_list_validate(lList *this_list, lList **answer_list, lList *master_exechost_list);
46
qinstance_set_full_name(lListElem *this_elem);
49
qinstance_list_locate(const lList *this_list, const char *hostname,
50
const char *cqueue_name);
53
qinstance_list_locate2(const lList *qinstance_list, const char *full_name);
56
qinstance_get_name(const lListElem *this_elem, dstring *string_buffer);
59
qinstance_list_set_tag(lList *this_list, u_long32 tag_value);
62
qinstance_increase_qversion(lListElem *this_elem);
65
qinstance_check_owner(const lListElem *queue, const char *user_name);
68
qinstance_is_pe_referenced(const lListElem *this_elem,
72
qinstance_is_a_pe_referenced(const lListElem *this_elem);
75
qinstance_is_ckpt_referenced(const lListElem *this_elem,
76
const lListElem *ckpt);
79
qinstance_is_a_ckpt_referenced(const lListElem *this_elem);
82
qinstance_is_centry_referenced(const lListElem *this_elem,
83
const lListElem *centry);
86
qinstance_is_centry_a_complex_value(const lListElem *this_elem,
87
const lListElem *name);
90
qinstance_set_slots_used(lListElem *this_elem, int new_slots);
93
qinstance_slots_used(const lListElem *this_elem);
96
qinstance_slots_reserved(const lListElem *this_elem);
99
qinstance_set_conf_slots_used(lListElem *this_elem);
102
qinstance_is_calendar_referenced(const lListElem *this_elem,
103
const lListElem *calendar);
106
qinstance_debit_consumable(lListElem *this_elem, lListElem *job,
107
lList *centry_list, int slots);
110
qinstance_message_add(lListElem *this_elem, u_long32 type, const char *message);
113
qinstance_message_trash_all_of_type_X(lListElem *this_elem, u_long32 type);
115
/* EB: TODO: queue -> qinstance */
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);
122
rc_debit_consumable(lListElem *jep, lListElem *ep, lList *centry_list, int slots,
123
int config_nm, int actual_nm, const char *obj_name);
126
explicit_job_request(lListElem *jep, const char *name);
129
qinstance_list_find_matching(const lList *this_list, lList **answer_list,
130
const char *hostname_pattern, lList **qref_list);
133
qinstance_list_verify_execd_job(const lList *queue_list, lList **answer_list);
136
qinstance_verify(const lListElem *qep, lList **answer_list);
139
qinstance_verify_full_name(lList **answer_list, const char *full_name);
142
qinstance_set_error(lListElem *qinstance, u_long32 type, const char *message, bool set_error);
143
#endif /* __SGE_QINSTANCE_H */