Back to index

nordugrid-arc-nox  1.1.0~rc6
job_sched_meta.h
Go to the documentation of this file.
00001 #ifndef SCHED_METADATA
00002 #define SCHED_METADATA
00003 
00004 #include <string>
00005 #include <list>
00006 #include <arc/XMLNode.h>
00007 #include <arc/DateTime.h>
00008 
00009 namespace Paul {
00010 
00011 class JobSchedMetaData {
00012 
00013     private:
00014         int reruns;
00015         Arc::Time start_time;
00016         Arc::Time end_time;
00017         unsigned last_check_time;
00018         int timeout;
00019         std::map<std::string,std::string> data; //scheduling data
00020         std::map<std::string,std::string> blacklisted_hosts; //host names
00021         std::string resource_id;
00022         std::string resource_job_id;
00023         std::string failure;
00024     public:
00025         JobSchedMetaData();
00026         JobSchedMetaData(int r);
00027         virtual ~JobSchedMetaData(void);
00028         void setResourceID(const std::string &id) { resource_id = id; };
00029         const std::string& getResourceID(void) { return resource_id; };
00030         void setResourceJobID(const std::string &id) { resource_job_id = id; };
00031         const std::string& getResourceJobID(void) { return resource_job_id; };
00032         const std::string& getFailure(void) { return failure; };
00033 };
00034 
00035 } // namespace Arc
00036 
00037 #endif // SCHED_METADATA