Monitoring  3.3.4
O2 Monitoring library
ProcessDetails.h
Go to the documentation of this file.
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
15 
16 #ifndef ALICEO2_MONITORING_PROCESSDETAILS_H
17 #define ALICEO2_MONITORING_PROCESSDETAILS_H
18 
19 #include <string>
20 
21 namespace o2
22 {
24 namespace monitoring
25 {
26 
29 {
30  public:
33 
35  unsigned int getPid() const;
36 
38  std::string getProcessName() const;
39 
41  std::string getHostname() const;
42 
43  private:
45  unsigned int mPid;
46 
48  std::string mHostname;
49 
51  std::string mProcessName;
52 
54  void generatePid();
55 
57  void generateProcessName();
58 
60  void generateHostname();
61 };
62 
63 } // namespace monitoring
64 } // namespace o2
65 
66 #endif // ALICEO2_MONITORING_PROCESSDETAILS_H
Definition: Backend.h:23
Collects process and machine related details such as PID, process name, hostname. ...
Definition: ProcessDetails.h:28
std::string getProcessName() const
Process name getter.
Definition: ProcessDetails.cxx:79
std::string getHostname() const
Hostname getter.
Definition: ProcessDetails.cxx:84
ProcessDetails()
Generates all data.
Definition: ProcessDetails.cxx:30
unsigned int getPid() const
PID getter.
Definition: ProcessDetails.cxx:74