1
#ifndef __SGE_LOADSENSORL_H
2
#define __SGE_LOADSENSORL_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"
45
/****** sgeobj/loadsensor/--LS_Type *******************************************
47
* LS_Type - CULL load sensor element
51
* name of this load sensor, no hashing,
52
* we only have few loadsensors/host
54
* SGE_STRING(LS_command)
55
* absolute path of the ls script
58
* pid of the ls process
61
* stdin to the ls process (type: FILE*)
64
* stdout of the ls process (type: FILE*)
67
* stderr of the ls process (type: FILE*)
69
* SGE_BOOL(LS_has_to_restart)
70
* should we restart the ls script?
73
* tag for internal use
75
* SGE_LIST(LS_incomplete)
76
* current values we got from the ls script
78
* SGE_LIST(LS_complete)
79
* last complete set of ls values
81
* SGE_ULONG(LS_last_mod)
82
* last modification time of ls script
85
* The attributes of this element show the state of a load sensor.
86
* A list of these elements is used in the execd.
87
******************************************************************************/
89
LS_name = LS_LOWERBOUND,
103
SGE_STRING(LS_name, CULL_DEFAULT)
104
SGE_STRING(LS_command, CULL_DEFAULT)
105
SGE_STRING(LS_pid, CULL_DEFAULT)
106
SGE_REF(LS_in, SGE_ANY_SUBTYPE, CULL_DEFAULT) /* type is FILE * */
107
SGE_REF(LS_out, SGE_ANY_SUBTYPE, CULL_DEFAULT) /* type is FILE * */
108
SGE_REF(LS_err, SGE_ANY_SUBTYPE, CULL_DEFAULT) /* type is FILE * */
109
SGE_BOOL(LS_has_to_restart, CULL_DEFAULT)
110
SGE_ULONG(LS_tag, CULL_DEFAULT)
111
SGE_LIST(LS_incomplete, LR_Type, CULL_DEFAULT)
112
SGE_LIST(LS_complete, LR_Type, CULL_DEFAULT)
113
SGE_ULONG(LS_last_mod, CULL_DEFAULT)
123
NAME("LS_has_to_restart")
125
NAME("LS_incomplete")
132
#define LSS sizeof(LSN)/sizeof(char*)
136
#endif /* __SGE_LOADSENSORL_H */