added new field to jobstat structure
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Dec 2007 09:51:18 +0000 (09:51 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Dec 2007 09:51:18 +0000 (09:51 +0000)
- fixed C++ padding stuff

org.glite.lb.client/interface/JobStatus.h.T
org.glite.lb.client/src/JobStatus.cpp.T
org.glite.lb.client/src/StatusAttrNames.pl
org.glite.lb.types/status.T

index ab7dca7..5e77bc0 100644 (file)
@@ -77,8 +77,8 @@ public:
                        "\t/** $f->{comment} */\n\t\t$u = $StatusAttrNums{$u},\n" :
                        "#error \"$u not defined in StatusAttrNames\"\n";
        }
+       gen "\tATTR_MAX = $stno /**< Limit for range checking. */ ";
 @@@}
-                ATTR_MAX /**< Limit for range checking. */
        };
 
 @@@{
index 1a29c76..c2b3619 100644 (file)
@@ -405,11 +405,12 @@ JobStatus::getValJobStatusList(Attr attr) const
 }
 
 
-/* FIXME: this will not work with the current frozen assignment of constants in JobStatus.h */
 static std::string const attr_names[JobStatus::ATTR_MAX] = {
 @@@{
-       for (sort {$a cmp $b} getAllFields $status) {
-               gen "\t\"$_\",\n";
+       require '../src/StatusAttrNames.pl';
+       for (@main::StatusAttrNames) {
+               my $fn = lc $_;
+               gen "\t\"$fn\",\n";
        }
 @@@}
 };
index 026f477..b834d15 100644 (file)
@@ -67,4 +67,5 @@
        SUSPEND_REASON
        SUSPENDED
        USER_TAGS
+       REMOVE_FROM_PROXY
 /;
index 6cd6549..427e75c 100644 (file)
@@ -82,8 +82,9 @@ bool  suspended       Job is suspended
 string suspend_reason  Reason for the suspend
 
 string failure_reasons Concatenated job failure reasons, possibly from deeper middleware layers
+bool   remove_from_proxy       Job reached final status and may be removed from proxy
 
-_pad_  55
+_pad_  54
 
 string pbs_state       Job state which would probably return PBS qstat (Q/R/C/....)
 string  pbs_queue      Name of queue in which is job queued