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 <arc/ByteArray.h>
00005 #include <string>
00006 #include <arc/DateTime.h>
00007 
00008 namespace Arc {
00009 
00010 class JobSchedMetaData {
00011 
00012     private:
00013         std::string resource_id_;
00014         std::string failure_;
00015         Arc::Time last_checked_;
00016         Arc::Time last_updated_;
00017         Arc::Time created_;
00018         Arc::Time start_time_;
00019         Arc::Time end_time_;
00020         // for serialization
00021         ByteArray buffer_;
00022     public:
00023         JobSchedMetaData(void);
00024         JobSchedMetaData(const JobSchedMetaData &s); // copy constructor
00025         JobSchedMetaData(ByteArray &buffer); // unserialize
00026         ByteArray &serialize(void);
00027         ~JobSchedMetaData(void);
00028         void setResourceID(const std::string &id) { resource_id_ = id; };
00029         const std::string& getResourceID(void) { return resource_id_; };
00030         void setFailure(const std::string &f) { failure_ = f; };
00031         const std::string& getFailure(void) { return failure_; };
00032         void setLastChecked(const Arc::Time &last_checked) { last_checked_ = last_checked; };
00033         Arc::Time &getLastChecked(void) { return last_checked_; };
00034         void setLastUpdated(const Arc::Time &last_updated) { last_updated_ = last_updated; };
00035         Arc::Time &getLastUpdated(void) { return last_updated_; };
00036         void setCreatedTime(const Arc::Time &created) { created_ = created; };
00037         Arc::Time &getCreatedTime(void) { return created_; };
00038         void setStartTime(const Arc::Time &start_time) { start_time_ = start_time; };
00039         Arc::Time &getStartTime(void) { return start_time_; };
00040         void setEndTime(const Arc::Time &end_time) { end_time_ = end_time; };
00041         Arc::Time &getEndTime(void) { return end_time_; };
00042         operator std::string(void) const;
00043 };
00044 
00045 } // namespace Arc
00046 
00047 #endif // SCHED_METADATA