Back to index

nordugrid-arc-nox  1.1.0~rc6
JobSupervisor.h
Go to the documentation of this file.
00001 // -*- indent-tabs-mode: nil -*-
00002 
00003 #ifndef __ARC_JOBSUPERVISOR_H__
00004 #define __ARC_JOBSUPERVISOR_H__
00005 
00006 #include <list>
00007 #include <string>
00008 
00009 #include <arc/URL.h>
00010 #include <arc/client/JobController.h>
00011 
00012 namespace Arc {
00013 
00014   class Logger;
00015   class UserConfig;
00016 
00018 
00023   class JobSupervisor {
00024   public:
00026 
00036     JobSupervisor(const UserConfig& usercfg,
00037                   const std::list<std::string>& jobs);
00038 
00039     ~JobSupervisor();
00040 
00042 
00046     const std::list<JobController*>& GetJobControllers() {
00047       return loader.GetJobControllers();
00048     }
00049 
00050     bool JobsFound() const { return jobsFound; }
00051 
00052   private:
00053     static Logger logger;
00054     JobControllerLoader loader;
00055     bool jobsFound;
00056   };
00057 
00058 } //namespace ARC
00059 
00060 #endif // __ARC_JOBSUPERVISOR_H__