Back to index

nordugrid-arc-nox  1.1.0~rc6
resource.h
Go to the documentation of this file.
00001 #ifndef SCHED_RESOURCE
00002 #define SCHED_RESOURCE
00003 
00004 #include <string>
00005 #include <arc/message/MCC.h>
00006 #include <arc/client/ClientInterface.h>
00007 #include <arc/XMLNode.h>
00008 
00009 namespace GridScheduler {
00010 
00011 class Resource {
00012         private:
00013             std::string id;
00014             std::string url;
00015             Arc::ClientSOAP *client;
00016             Arc::NS ns;
00017             Arc::MCCConfig cfg;
00018         public:
00019             Resource(void);
00020             Resource(const Resource& r);
00021             Resource(const std::string &url_str, std::map<std::string, std::string> &cli_config);
00022             ~Resource(void);
00023             Arc::ClientSOAP* getSOAPClient(void) { return client; };
00024             const std::string CreateActivity(const Arc::XMLNode &jsdl);
00025             const std::string GetActivityStatus(const std::string &arex_job_id);
00026             bool TerminateActivity(const std::string &arex_job_id);
00027             const std::string &getURL(void) { return url; };
00028             Resource &operator=(const Resource &r);
00029             bool refresh(void);
00030 };
00031 
00032 } // namespace Arc
00033 
00034 #endif // SCHED_RESOURCE