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

« back to all changes in this revision

Viewing changes to source/libs/sgeobj/sge_eejobL.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_EEJOBL_H
 
2
#define __SGE_EEJOBL_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_boundaries.h"
 
37
#include "cull.h"
 
38
 
 
39
#ifdef  __cplusplus
 
40
extern "C" {
 
41
#endif
 
42
 
 
43
/* *INDENT-OFF* */ 
 
44
 
 
45
/*
 
46
 * This is the list type we use to sort the joblist 
 
47
 * in the sge scheduler 
 
48
 */
 
49
enum {
 
50
   FCAT_job_share = FCAT_LOWERBOUND,
 
51
   FCAT_user_share,
 
52
   FCAT_user,
 
53
   FCAT_project_share,
 
54
   FCAT_project,
 
55
   FCAT_dept_share,
 
56
   FCAT_dept,
 
57
   FCAT_jobrelated_ticket_first,
 
58
   FCAT_jobrelated_ticket_last
 
59
};
 
60
 
 
61
LISTDEF(FCAT_Type)
 
62
   SGE_ULONG(FCAT_job_share, CULL_DEFAULT)       /* all jobs in this functional category have this amount of jobs shares */
 
63
   SGE_ULONG(FCAT_user_share, CULL_DEFAULT)      /* all jobs in this functional category have this amount of user shares */
 
64
   SGE_REF(FCAT_user,CULL_ANY_SUBTYPE,  CULL_DEFAULT)              /* pointer to the user structure */
 
65
   SGE_ULONG(FCAT_project_share, CULL_DEFAULT)   /* all jobs in this functional category have this amount of project shares */
 
66
   SGE_REF(FCAT_project,CULL_ANY_SUBTYPE,  CULL_DEFAULT)           /* pointer to the project structure */
 
67
   SGE_ULONG(FCAT_dept_share, CULL_DEFAULT)      /* all jobs in this functional category have this amount of department shares */
 
68
   SGE_REF(FCAT_dept,CULL_ANY_SUBTYPE,  CULL_DEFAULT)              /* pointer to the department structure */
 
69
   SGE_REF(FCAT_jobrelated_ticket_first, CULL_ANY_SUBTYPE, CULL_DEFAULT) /* pointer to the first element of job ticket list*/
 
70
   SGE_REF(FCAT_jobrelated_ticket_last, CULL_ANY_SUBTYPE, CULL_DEFAULT)  /* pointer to the last element in the hob ticket list*/
 
71
LISTEND 
 
72
 
 
73
NAMEDEF(FCATN)
 
74
   NAME("FCAT_job_share")
 
75
   NAME("FCAT_user_share")
 
76
   NAME("FACT_user")
 
77
   NAME("FCAT_project_share")
 
78
   NAME("FCAT_project")
 
79
   NAME("FCAT_dept_share")
 
80
   NAME("FCAT_dept")
 
81
   NAME("FCAT_jobrelated_ticket_first")
 
82
   NAME("FCAT_jobrelated_ticket_last")
 
83
NAMEEND
 
84
 
 
85
#define FCATS sizeof(FCATN)/sizeof(char*)
 
86
 
 
87
 
 
88
/*
 
89
 * This is the list type we use to sort the joblist 
 
90
 * in the sge scheduler 
 
91
 */
 
92
enum {
 
93
   SGEJ_priority = SGEJ_LOWERBOUND,
 
94
   SGEJ_job_number,
 
95
   SGEJ_job_name,
 
96
   SGEJ_owner,
 
97
   SGEJ_state,
 
98
   SGEJ_master_queue,
 
99
   SGEJ_job_reference
 
100
};
 
101
 
 
102
/* a boolean for the sort order */
 
103
enum {
 
104
  SGEJ_sort_decending = 0,
 
105
  SGEJ_sort_ascending
 
106
};
 
107
 
 
108
LISTDEF(SGEJ_Type)
 
109
   SGE_DOUBLE(SGEJ_priority, CULL_DEFAULT)
 
110
   SGE_ULONG(SGEJ_job_number, CULL_DEFAULT)
 
111
   SGE_STRING(SGEJ_job_name, CULL_DEFAULT)
 
112
   SGE_STRING(SGEJ_owner, CULL_DEFAULT)
 
113
   SGE_ULONG(SGEJ_state, CULL_DEFAULT)
 
114
   SGE_STRING(SGEJ_master_queue, CULL_DEFAULT)
 
115
   SGE_REF(SGEJ_job_reference, JRL_Type, CULL_DEFAULT)
 
116
LISTEND 
 
117
 
 
118
NAMEDEF(SGEJN)
 
119
   NAME("SGEJ_priority")
 
120
   NAME("SGEJ_job_number")
 
121
   NAME("SGEJ_job_name")
 
122
   NAME("SGEJ_owner")
 
123
   NAME("SGEJ_state")
 
124
   NAME("SGEJ_master_queue")
 
125
   NAME("SGEJ_job_reference")
 
126
NAMEEND
 
127
 
 
128
/* *INDENT-ON* */
 
129
 
 
130
#define SGEJS sizeof(SGEJN)/sizeof(char*)
 
131
#ifdef  __cplusplus
 
132
}
 
133
#endif
 
134
#endif                          /* __SGE_EEJOBL_H */