1
#ifndef __QSTAT_PRINTING_H
2
#define __QSTAT_PRINTING_H
3
/*___INFO__MARK_BEGIN__*/
4
/*************************************************************************
6
* The Contents of this file are made available subject to the terms of
7
* the Sun Industry Standards Source License Version 1.2
9
* Sun Microsystems Inc., March, 2001
12
* Sun Industry Standards Source License Version 1.2
13
* =================================================
14
* The contents of this file are subject to the Sun Industry Standards
15
* Source License Version 1.2 (the "License"); You may not use this file
16
* except in compliance with the License. You may obtain a copy of the
17
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
19
* Software provided under this License is provided on an "AS IS" basis,
20
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
21
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
22
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
23
* See the License for the specific provisions governing your rights and
24
* obligations concerning the Software.
26
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
28
* Copyright: 2001 by Sun Microsystems, Inc.
30
* All Rights Reserved.
32
************************************************************************/
33
/*___INFO__MARK_END__*/
35
#define QSTAT_INDENT " "
36
#define QSTAT_INDENT2 " "
39
** used in qstat for specifying different display modes
40
** the display modes are stored in the job structures full_listing field
42
#define QSTAT_DISPLAY_FULL (1<<0)
43
#define QSTAT_DISPLAY_EXTENDED (1<<1)
44
#define QSTAT_DISPLAY_RESOURCES (1<<2)
45
#define QSTAT_DISPLAY_QRESOURCES (1<<3)
46
#define QSTAT_DISPLAY_TASKS (1<<4)
47
#define QSTAT_DISPLAY_NOEMPTYQ (1<<5)
48
#define QSTAT_DISPLAY_PENDING (1<<6)
49
#define QSTAT_DISPLAY_SUSPENDED (1<<7)
50
#define QSTAT_DISPLAY_RUNNING (1<<8)
51
#define QSTAT_DISPLAY_FINISHED (1<<9)
52
#define QSTAT_DISPLAY_ZOMBIES (1<<10)
53
#define QSTAT_DISPLAY_ALARMREASON (1<<11)
54
#define QSTAT_DISPLAY_USERHOLD (1<<12)
55
#define QSTAT_DISPLAY_SYSTEMHOLD (1<<13)
56
#define QSTAT_DISPLAY_OPERATORHOLD (1<<14)
57
#define QSTAT_DISPLAY_JOBARRAYHOLD (1<<15)
58
#define QSTAT_DISPLAY_JOBHOLD (1<<16)
59
#define QSTAT_DISPLAY_STARTTIMEHOLD (1<<17)
60
#define QSTAT_DISPLAY_URGENCY (1<<18)
61
#define QSTAT_DISPLAY_PRIORITY (1<<19)
62
#define QSTAT_DISPLAY_PEND_REMAIN (1<<20)
64
#define QSTAT_DISPLAY_HOLD (QSTAT_DISPLAY_USERHOLD|QSTAT_DISPLAY_SYSTEMHOLD|QSTAT_DISPLAY_OPERATORHOLD|QSTAT_DISPLAY_JOBARRAYHOLD|QSTAT_DISPLAY_JOBHOLD|QSTAT_DISPLAY_STARTTIMEHOLD)
65
#define QSTAT_DISPLAY_ALL (QSTAT_DISPLAY_PENDING|QSTAT_DISPLAY_SUSPENDED|QSTAT_DISPLAY_RUNNING|QSTAT_DISPLAY_FINISHED)
67
#define TAG_DEFAULT 0x00
68
#define TAG_SHOW_IT 0x01
69
#define TAG_FOUND_IT 0x02
70
#define TAG_SELECT_IT 0x04
73
void sge_printf_header(u_long32 full_listing, u_long32 sge_ext);
76
** for qhost_report_handler_t
78
#include "sge_qhost.h"
81
sge_print_jobs_queue(lListElem *qep, lList *job_list, const lList *pe_list,
82
lList *user_list, lList *ehl, lList *cl,
83
int print_jobs_of_queue, u_long32 full_listing,
84
char *indent, u_long32 group_opt, int queue_name_length,
85
qhost_report_handler_t *report_handler, lList **alpp);
87
#endif /* __QSTAT_PRINTING_H */