1
#ifndef __SGE_SELECT_QUEUEL_H
2
#define __SGE_SELECT_QUEUEL_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_boundaries.h"
43
/****** spool/--LDR_Type***************************************
46
* LDR_Type -- is a high level structure to monitor changes
47
* in consumables, which are used as load threasholds.
50
* SGE_REF(LDR_global,CULL_ANY_SUBTYPE, CULL_DEFAULT)
51
* Reference to a global cunsumable object
53
* SGE_REF(LDR_host,CULL_ANY_SUBTYPE, CULL_DEFAULT)
54
* Reference to a host consumable object
56
* SGE_REF(LDR_queue,CULL_ANY_SUBTYPE, CULL_DEFAULT)
57
* Reference to a queue consumable object
59
* SGE_LIST(LDR_queue_ref_list, QR_Type, CULL_DEFAULT)
60
* A list of queues instances, which are using all these
61
* consumables as load thresholds.
64
* All three consumables form a kind of queue_consumable_category.
65
* All queues which are listed in here are using the same consumables
66
* to compute the load alarm. The whole list is using references because
67
* it is easier to monitor changes in one of the consumable objects and
68
* the function calculation the load alarm for each queue knows exactly
69
* which queues need to be recalculated.
73
* This list a fixed position list. Do not use what filtering on the
74
* elements or the code will break!
76
****************************************************************************
79
LDR_queue_ref_list_pos = 0,
87
LDR_queue_ref_list = LDR_LOWERBOUND,
95
SGE_LIST(LDR_queue_ref_list, QR_Type, CULL_DEFAULT)
96
SGE_STRING(LDR_limit, CULL_DEFAULT)
97
SGE_REF(LDR_global,CULL_ANY_SUBTYPE, CULL_DEFAULT)
98
SGE_REF(LDR_host,CULL_ANY_SUBTYPE, CULL_DEFAULT)
99
SGE_REF(LDR_queue,CULL_ANY_SUBTYPE, CULL_DEFAULT)
103
NAME("LDR_queue_ref_list")
110
#define LDRS sizeof(LDRN)/sizeof(char*)
112
/****** spool/--QR_Type***************************************
115
* QR_Type -- sub list of queue references
118
* SGE_REF(QR_Queue,CULL_ANY_SUBTYPE, CULL_DEFAULT
119
* References a queue instance object
122
* Lists all queue instance objects in the same
123
* queue_consumable_category
125
****************************************************************************
132
QRL_queue = QRL_LOWERBOUND
136
SGE_REF(QRL_queue,CULL_ANY_SUBTYPE, CULL_DEFAULT)
143
#define QRL_S sizeof(QRL_N)/sizeof(char*)