Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:13

0001 #ifndef FWCore_Services_JobReportService_h
0002 #define FWCore_Services_JobReportService_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Services
0006 // Class  :     JobReport
0007 //
0008 /**\class JobReportService JobReportService.h FWCore/Services/src/JobReportService.h
0009 
0010 Description: A service that collections job handling information.
0011 
0012 Usage:
0013 The JobReport service collects 'job handling' information (currently
0014 file handling) from several sources, collates the information, and
0015 at appropriate intervales, reports the information to the job report,
0016 through the MessageLogger.
0017 
0018 */
0019 
0020 //
0021 // Original Author:  Marc Paterno
0022 //
0023 
0024 #include <string>
0025 
0026 #include "FWCore/MessageLogger/interface/JobReport.h"
0027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0028 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
0029 
0030 namespace edm {
0031   class ConfigurationDescriptions;
0032 
0033   namespace service {
0034     class JobReportService : public JobReport {
0035     public:
0036       JobReportService(ParameterSet const& ps, ActivityRegistry& reg);
0037       ~JobReportService();
0038 
0039       void postEndJob();
0040 
0041       void frameworkShutdownOnFailure();
0042 
0043       static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0044     };
0045 
0046     inline bool isProcessWideService(JobReportService const*) { return true; }
0047   }  // namespace service
0048 }  // namespace edm
0049 #endif