00001 #ifndef JobInfoSvc_H 00002 #define JobInfoSvc_H 00003 00004 #include "GaudiKernel/IInterface.h" 00005 #include "GaudiKernel/IIncidentListener.h" 00006 #include "GaudiKernel/Kernel.h" 00007 #include "GaudiKernel/Service.h" 00008 #include "JobInfoSvc/IJobInfoSvc.h" 00009 00010 00011 class JobInfoSvc: public Service, virtual public IJobInfoSvc, 00012 virtual public IIncidentListener{ 00013 00014 public: 00015 00016 JobInfoSvc(const std::string& name, ISvcLocator* pSvcLocator); 00017 ~JobInfoSvc(){}; 00018 StatusCode initialize(); 00019 StatusCode finalize(); 00020 StatusCode queryInterface( const InterfaceID& riid, void** ppvInterface ); 00021 00022 // Incident handler 00023 void handle(const Incident&); 00024 00025 00026 int xmlrpc(int evtNum); 00027 std::string getJobOutputFile(); 00028 00029 private: 00030 long m_count; 00031 std::string m_outputFileName; 00032 std::string m_xmlrpcServer; 00033 int m_xmlrpcPort; 00034 std::string m_xmlrpcUrl; 00035 std::string m_xmlrpcMethod; 00036 00037 }; 00038 00039 00040 #endif 00041