Back to index

nordugrid-arc-nox  1.1.0~rc6
LutsDestination.h
Go to the documentation of this file.
00001 #ifndef LUTSDESTINATION_H
00002 #define LUTSDESTINATION_H
00003 
00004 #include "Destination.h"
00005 #include "JobLogFile.h"
00006 #include <stdexcept>
00007 #include <string>
00008 #include <map>
00009 #include <arc/XMLNode.h>
00010 #include <arc/client/ClientInterface.h>
00011 #include <arc/message/MCC.h>
00012 #include <arc/message/MCCLoader.h>
00013 #include <arc/message/Message.h>
00014 #include <arc/message/PayloadSOAP.h>
00015 
00016 namespace Arc
00017 {
00018 
00020   class LutsDestination:public Destination
00021   {
00022   private:
00023     Arc::Logger logger;
00024     Arc::MCCLoader *mccloader;
00025     Arc::MCC* soapmcc;
00026     Arc::Config clientchain;
00028     int max_ur_set_size;
00030     int urn;
00032     std::list<JobLogFile> joblogs;
00034     Arc::XMLNode usagerecordset;
00035     
00036     int submit_batch();
00037     Arc::MCC_Status send_request(const std::string &urset);
00038     void clear();
00039 
00040   public:
00044     LutsDestination(JobLogFile& joblog);
00048     void report(JobLogFile& joblog);
00049     void finish();
00050     ~LutsDestination();
00051   };
00052 
00053 }
00054 
00055 #endif