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
/* may be this should be included by the gdi user */
37
#include "sge_hostname.h"
44
* allowed values for command field of a gdi request
45
* (see sge_gdi_packet_class_t and sge_gdi_task_class_t
48
/* OPERATION -------------- */
59
/* SUB COMMAND ----------- */
61
/* for SGE_JOB_LIST => SGE_GDI_ADD */
62
SGE_GDI_RETURN_NEW_VERSION = (1<<8),
64
/* for SGE_JOB_LIST => SGE_GDI_DEL, SGE_GDI_MOD */
65
SGE_GDI_ALL_JOBS = (1<<9),
66
SGE_GDI_ALL_USERS = (1<<10),
68
/* for SGE_QUEUE_LIST, SGE_EXECHOST_LIST => SGE_GDI_MOD */
69
SGE_GDI_SET = 0, /* overwrite the sublist with given values */
70
SGE_GDI_CHANGE = (1<<11), /* change the given elements */
71
SGE_GDI_APPEND = (1<<12), /* add some elements into a sublist */
72
SGE_GDI_REMOVE = (1<<13), /* remove some elements from a sublist */
73
SGE_GDI_SET_ALL = (1<<14), /*
74
* overwrite the sublist with given values
75
* and erase all domain/host specific values
76
* not given with the current request
78
SGE_GDI_EXECD_RESTART = (1<<15)
81
#define SGE_GDI_OPERATION (0xFF)
82
#define SGE_GDI_SUBCOMMAND (~SGE_GDI_OPERATION)
84
#define SGE_GDI_GET_OPERATION(x) ((x)&SGE_GDI_OPERATION)
85
#define SGE_GDI_GET_SUBCOMMAND(x) ((x)&SGE_GDI_SUBCOMMAND)
86
#define SGE_GDI_IS_SUBCOMMAND_SET(x,y) ((x)&(y))
89
* allowed values for target field of GDI request
90
* (see sge_gdi_packet_class_t and sge_gdi_task_class_t
93
SGE_ADMINHOST_LIST = 1,
106
SGE_SC_LIST, /* schedconf list */
113
SGE_JOB_SCHEDD_INFO_LIST,
115
SGE_USER_MAPPING_LIST,
123
** Special target numbers for �complex requests� which shall be handled
124
** directly at the master in order to reduce network traffic and replication
125
** of master lists. They are only useful for SGE_GDI_GET requests
126
** ATTENTION: the numbers below must not collide with the numbers in the enum
134
/* sge_gdi_multi enums */
141
/* preserves state between multiple calls to sge_gdi_multi() */
142
typedef struct _state_gdi_multi state_gdi_multi;
144
struct _state_gdi_multi {
145
void *packet; /* TODO: EB: this is a sge_gdi_packet_class_t pointer - fix includes */
147
state_gdi_multi *next;
150
/* to be used for initializing state_gdi_multi */
151
#define STATE_GDI_MULTI_INIT { NULL, NULL, NULL}
153
bool sge_gdi_extract_answer(lList **alpp, u_long32 cmd, u_long32 target, int id, lList *mal, lList **olpp);
155
/* from gdi_checkpermissions.h */
156
#define MANAGER_CHECK (1<<0)
157
#define OPERATOR_CHECK (1<<1)
159
#define USER_CHECK (1<<2)
160
#define SGE_USER_CHECK (1<<3)
163
/* from gdi_setup.h */
164
/* these values are standarized gdi return values */
174
#define MASTER_KILL (1<<0)
175
#define SCHEDD_KILL (1<<1)
176
#define EXECD_KILL (1<<2)
177
#define JOB_KILL (1<<3)
178
#define EVENTCLIENT_KILL (1<<4)
179
#define THREAD_START (1<<5)
185
#endif /* __SGE_GDI_H */