// CondorCodJobCreator.h #ifndef dial__CondorCodJobCreator_H #define dial__CondorCodJobCreator_H // Nagesh Chetan // April 2004 // // Factory to create CondorCodJob. #include "dataset_util/Text.h" #include "dial_job/JobCreator.h" class XmlElement; namespace dial { class CondorCodJobCreator : public JobCreator { private: // TBD std::string m_descfile; std::string m_jobdirectory; std::string m_machinefile; bool m_validity; public: // static functions // XML name. static std::string xml_name() { return "CondorCodJobCreator"; } // DTD. static const Text& dtd(); public: // Constructor. CondorCodJobCreator(std::string machinefile) ; // Validity. bool is_valid() const; // Create a new local job. Job* create_local_job(JobId jid, const Application& app, const Task& tsk, const dset::Dataset& dst,const JobPreferences& prf, std::string rundir, std::string runfile) const; // Convert. Job* convert(const Job& job) const; // Return user or site specific submit description info. //TBD std::string desc_file() const; // Return the file name that has the list of machines std::string machine_file() const; // XML. const XmlElement* xml() const; // Output stream. std::ostream& ostr(std::ostream& lhs) const; }; } // end namespace dial #endif // dial_CondorCodJobCreator_included