Skip to content

Commit

Permalink
EH: CS-538 Add dummy name/value lists to all major objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabler-hpc committed Sep 9, 2024
1 parent de4144b commit 8851d6f
Show file tree
Hide file tree
Showing 44 changed files with 517 additions and 25 deletions.
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_advance_reservation_AR_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@
* SGE_ULONG(AR_qi_errors) - @todo add summary
* @todo add description
*
* SGE_LIST(AR_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
Expand Down Expand Up @@ -146,7 +151,8 @@ enum {
AR_acl_list,
AR_xacl_list,
AR_type,
AR_qi_errors
AR_qi_errors,
AR_joker
};

LISTDEF(AR_Type)
Expand Down Expand Up @@ -178,6 +184,7 @@ LISTDEF(AR_Type)
SGE_LIST(AR_xacl_list, ARA_Type, CULL_SPOOL)
SGE_ULONG(AR_type, CULL_SPOOL)
SGE_ULONG(AR_qi_errors, CULL_DEFAULT)
SGE_LIST(AR_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(ARN)
Expand Down Expand Up @@ -209,6 +216,7 @@ NAMEDEF(ARN)
NAME("AR_xacl_list")
NAME("AR_type")
NAME("AR_qi_errors")
NAME("AR_joker")
NAMEEND

#define AR_SIZE sizeof(ARN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_binding_BN_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
* SGE_STRING(BN_parameter_explicit) - @todo add summary
* @todo add description
*
* SGE_LIST(BN_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
Expand All @@ -62,7 +67,8 @@ enum {
BN_parameter_socket_offset,
BN_parameter_core_offset,
BN_parameter_striding_step_size,
BN_parameter_explicit
BN_parameter_explicit,
BN_joker
};

LISTDEF(BN_Type)
Expand All @@ -73,6 +79,7 @@ LISTDEF(BN_Type)
SGE_ULONG(BN_parameter_core_offset, CULL_SUBLIST)
SGE_ULONG(BN_parameter_striding_step_size, CULL_SUBLIST)
SGE_STRING(BN_parameter_explicit, CULL_SUBLIST)
SGE_LIST(BN_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(BNN)
Expand All @@ -83,6 +90,7 @@ NAMEDEF(BNN)
NAME("BN_parameter_core_offset")
NAME("BN_parameter_striding_step_size")
NAME("BN_parameter_explicit")
NAME("BN_joker")
NAMEEND

#define BN_SIZE sizeof(BNN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_calendar_CAL_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,20 @@
* SGE_LIST(CAL_parsed_week_calendar) - Parsed Week Calendar
* The week calendar parsed to internal data structures.
*
* SGE_LIST(CAL_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
CAL_name = CAL_LOWERBOUND,
CAL_year_calendar,
CAL_week_calendar,
CAL_parsed_year_calendar,
CAL_parsed_week_calendar
CAL_parsed_week_calendar,
CAL_joker
};

LISTDEF(CAL_Type)
Expand All @@ -64,6 +70,7 @@ LISTDEF(CAL_Type)
SGE_STRING(CAL_week_calendar, CULL_SPOOL)
SGE_LIST(CAL_parsed_year_calendar, CA_Type, CULL_DEFAULT)
SGE_LIST(CAL_parsed_week_calendar, CA_Type, CULL_DEFAULT)
SGE_LIST(CAL_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(CALN)
Expand All @@ -72,6 +79,7 @@ NAMEDEF(CALN)
NAME("CAL_week_calendar")
NAME("CAL_parsed_year_calendar")
NAME("CAL_parsed_week_calendar")
NAME("CAL_joker")
NAMEEND

#define CAL_SIZE sizeof(CALN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_ckpt_CK_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
* SGE_STRING(CK_clean_command) - Clean Command
* Commandline to be executed after checkpointing to clean up.
*
* SGE_LIST(CK_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
Expand All @@ -86,7 +91,8 @@ enum {
CK_when,
CK_signal,
CK_job_pid,
CK_clean_command
CK_clean_command,
CK_joker
};

LISTDEF(CK_Type)
Expand All @@ -100,6 +106,7 @@ LISTDEF(CK_Type)
SGE_STRING(CK_signal, CULL_SPOOL)
SGE_ULONG(CK_job_pid, CULL_DEFAULT)
SGE_STRING(CK_clean_command, CULL_SPOOL)
SGE_LIST(CK_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(CKN)
Expand All @@ -113,6 +120,7 @@ NAMEDEF(CKN)
NAME("CK_signal")
NAME("CK_job_pid")
NAME("CK_clean_command")
NAME("CK_joker")
NAMEEND

#define CK_SIZE sizeof(CKN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_cqueue_CQ_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@
* SGE_ULONG(CQ_tag) - Tag
* @todo add description
*
* SGE_LIST(CQ_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
Expand Down Expand Up @@ -242,7 +247,8 @@ enum {
CQ_consumable_config_list,
CQ_subordinate_list,
CQ_qtype,
CQ_tag
CQ_tag,
CQ_joker
};

LISTDEF(CQ_Type)
Expand Down Expand Up @@ -298,6 +304,7 @@ LISTDEF(CQ_Type)
SGE_LIST(CQ_subordinate_list, CULL_ANY_SUBTYPE, CULL_SPOOL)
SGE_LIST(CQ_qtype, CULL_ANY_SUBTYPE, CULL_SPOOL)
SGE_ULONG(CQ_tag, CULL_DEFAULT)
SGE_LIST(CQ_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(CQN)
Expand Down Expand Up @@ -353,6 +360,7 @@ NAMEDEF(CQN)
NAME("CQ_subordinate_list")
NAME("CQ_qtype")
NAME("CQ_tag")
NAME("CQ_joker")
NAMEEND

#define CQ_SIZE sizeof(CQN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_hgroup_HGRP_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,32 @@
* Temporary list of cluster queues referencing a host group
* while processing creation or modification requests for host groups.
*
* SGE_LIST(HGRP_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
HGRP_name = HGRP_LOWERBOUND,
HGRP_host_list,
HGRP_cqueue_list
HGRP_cqueue_list,
HGRP_joker
};

LISTDEF(HGRP_Type)
SGE_HOST(HGRP_name, CULL_PRIMARY_KEY | CULL_UNIQUE | CULL_HASH | CULL_SPOOL)
SGE_LIST(HGRP_host_list, HR_Type, CULL_SPOOL)
SGE_LIST(HGRP_cqueue_list, CQ_Type, CULL_DEFAULT)
SGE_LIST(HGRP_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(HGRPN)
NAME("HGRP_name")
NAME("HGRP_host_list")
NAME("HGRP_cqueue_list")
NAME("HGRP_joker")
NAMEEND

#define HGRP_SIZE sizeof(HGRPN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_host_AH_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,26 @@
* SGE_HOST(AH_name) - host name
* name of the admin host. The host name must be resolvable.
*
* SGE_LIST(AH_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
AH_name = AH_LOWERBOUND
AH_name = AH_LOWERBOUND,
AH_joker
};

LISTDEF(AH_Type)
SGE_HOST(AH_name, CULL_PRIMARY_KEY | CULL_UNIQUE | CULL_HASH | CULL_SPOOL)
SGE_LIST(AH_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(AHN)
NAME("AH_name")
NAME("AH_joker")
NAMEEND

#define AH_SIZE sizeof(AHN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_host_EH_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@
* SGE_LIST(EH_merged_report_variables) - merged variables for reporting
* list of variables written to the report file, merged from global host and actual host
*
* SGE_LIST(EH_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
Expand Down Expand Up @@ -182,7 +187,8 @@ enum {
EH_reschedule_unknown_list,
EH_report_seqno,
EH_report_variables,
EH_merged_report_variables
EH_merged_report_variables,
EH_joker
};

LISTDEF(EH_Type)
Expand Down Expand Up @@ -220,6 +226,7 @@ LISTDEF(EH_Type)
SGE_ULONG(EH_report_seqno, CULL_DEFAULT)
SGE_LIST(EH_report_variables, STU_Type, CULL_SPOOL)
SGE_LIST(EH_merged_report_variables, STU_Type, CULL_DEFAULT)
SGE_LIST(EH_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(EHN)
Expand Down Expand Up @@ -257,6 +264,7 @@ NAMEDEF(EHN)
NAME("EH_report_seqno")
NAME("EH_report_variables")
NAME("EH_merged_report_variables")
NAME("EH_joker")
NAMEEND

#define EH_SIZE sizeof(EHN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_host_SH_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,26 @@
* SGE_HOST(SH_name) - host name
* Name of the submission host. It must be resolveable.
*
* SGE_LIST(SH_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
SH_name = SH_LOWERBOUND
SH_name = SH_LOWERBOUND,
SH_joker
};

LISTDEF(SH_Type)
SGE_HOST(SH_name, CULL_PRIMARY_KEY | CULL_UNIQUE | CULL_HASH | CULL_SPOOL)
SGE_LIST(SH_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(SHN)
NAME("SH_name")
NAME("SH_joker")
NAMEEND

#define SH_SIZE sizeof(SHN)/sizeof(char *)
Expand Down
10 changes: 9 additions & 1 deletion source/libs/sgeobj/cull/sge_ja_task_JAT_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@
* Task specific messages.
* Currently only used for storing the reason why a job is in error state.
*
* SGE_LIST(JAT_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
Expand Down Expand Up @@ -225,7 +230,8 @@ enum {
JAT_prio,
JAT_ntix,
JAT_wallclock_limit,
JAT_message_list
JAT_message_list,
JAT_joker
};

LISTDEF(JAT_Type)
Expand Down Expand Up @@ -265,6 +271,7 @@ LISTDEF(JAT_Type)
SGE_DOUBLE(JAT_ntix, CULL_DEFAULT)
SGE_ULONG64(JAT_wallclock_limit, CULL_SPOOL)
SGE_LIST(JAT_message_list, QIM_Type, CULL_SPOOL)
SGE_LIST(JAT_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(JATN)
Expand Down Expand Up @@ -304,6 +311,7 @@ NAMEDEF(JATN)
NAME("JAT_ntix")
NAME("JAT_wallclock_limit")
NAME("JAT_message_list")
NAME("JAT_joker")
NAMEEND

#define JAT_SIZE sizeof(JATN)/sizeof(char *)
Expand Down
13 changes: 12 additions & 1 deletion source/libs/sgeobj/cull/sge_job_JB_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,14 @@
* Arguments which contain whitespace or wildcards are enclosed in single quotes,
* so it should be possible to copy/paste the command line into a shell.
*
* SGE_LIST(JB_grp_list) - Supplementary Group List
* list of supplementary groups and corresponding ID's
*
* SGE_LIST(JB_joker) - Joker
* Placeholder which can be used for arbitrary data.
* Its purpose is to be able to add new attributes without changing the spooling format.
* It is a list of arbitrary type and it is spooled.
*
*/

enum {
Expand Down Expand Up @@ -455,7 +463,8 @@ enum {
JB_ja_task_concurrency,
JB_binding,
JB_submission_command_line,
JB_grp_list
JB_grp_list,
JB_joker
};

LISTDEF(JB_Type)
Expand Down Expand Up @@ -542,6 +551,7 @@ LISTDEF(JB_Type)
SGE_LIST(JB_binding, BN_Type, CULL_SPOOL)
SGE_STRING(JB_submission_command_line, CULL_SPOOL)
SGE_LIST(JB_grp_list, ST_Type, CULL_SPOOL)
SGE_LIST(JB_joker, VA_Type, CULL_SPOOL)
LISTEND

NAMEDEF(JBN)
Expand Down Expand Up @@ -628,6 +638,7 @@ NAMEDEF(JBN)
NAME("JB_binding")
NAME("JB_submission_command_line")
NAME("JB_grp_list")
NAME("JB_joker")
NAMEEND

#define JB_SIZE sizeof(JBN)/sizeof(char *)
Expand Down
Loading

0 comments on commit 8851d6f

Please sign in to comment.