Back to index

nordugrid-arc-nox  1.1.0~rc6
hopi.h
Go to the documentation of this file.
00001 #ifndef __ARC_Hopi_H__
00002 #define __ARC_Hopi_H__
00003 
00004 #include <arc/infosys/RegisteredService.h>
00005 #include <arc/message/Message.h>
00006 #include <arc/Logger.h>
00007 #include <arc/XMLNode.h>
00008 #include <string>
00009 
00010 namespace Hopi {
00011 
00012 class Hopi: public Arc::RegisteredService {
00013     protected:
00014         std::string doc_root;
00015         bool slave_mode;
00016         Arc::MessagePayload* Get(const std::string &path, const std::string &base_url, unsigned long long int range_start, unsigned long long int range_end);
00017         Arc::MCC_Status Put(const std::string &path, Arc::MessagePayload &buf);
00018     public:
00019         static Arc::Logger logger;
00020         Hopi(Arc::Config *cfg);
00021         virtual ~Hopi(void);
00022         virtual Arc::MCC_Status process(Arc::Message &inmsg, Arc::Message &outmsg);
00023         bool RegistrationCollector(Arc::XMLNode &doc);
00024 };
00025 
00026 } // namespace Hopi
00027 
00028 #endif // __ARC_Hopi_H__