CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
jsoncollector::FastMonitor Class Reference

#include <FastMonitor.h>

Public Member Functions

void addFastPathDefinition (std::string const &defPathFast, std::string const defGroupFast, bool strict)
 
void commit (std::vector< unsigned int > *streamLumisPtr)
 
void discardCollected (unsigned int forLumi)
 
 FastMonitor (std::string const &defPath, std::string const defGroup, bool strictChecking, bool useSource=true, bool useDefinition=true)
 
 FastMonitor (DataPointDefinition *dpd, bool strictChecking, bool useSource=true, bool useDefinition=true)
 
std::string getCSVString (int sid=-1)
 
void getHostAndPID (std::string &sHPid)
 
JsonMonitorablegetMergedIntJForLumi (std::string const &name, unsigned int forLumi)
 
void outputCSV (std::string const &path, std::string const &csvString)
 
bool outputFullJSON (std::string const &path, unsigned int lumi)
 
bool outputFullJSONs (std::string const &pathstem, std::string const &ext, unsigned int lumi)
 
void registerFastGlobalMonitorable (JsonMonitorable *newMonitorable)
 
void registerGlobalMonitorable (JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void registerStreamMonitorableUIntVec (std::string const &name, std::vector< unsigned int > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void registerStreamMonitorableUIntVecAtomic (std::string const &name, std::vector< AtomicMonUInt * > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void setDefPath (std::string const &dpath)
 
void setNStreams (unsigned int nStreams)
 
void snap (unsigned int ls)
 
void snapGlobal (unsigned int ls)
 
void snapStreamAtomic (unsigned int ls, unsigned int streamID)
 
virtual ~FastMonitor ()
 

Private Attributes

std::vector< DataPoint * > dataPoints_
 
std::vector< DataPoint * > dataPointsFastOnly_
 
std::string defPath_
 
std::string defPathFast_
 
bool deleteDef_ = false
 
bool deleteDefFast_ = false
 
DataPointDefinitiondpd_
 
DataPointDefinitiondpdFast_
 
std::map< std::string, unsigned int > dpNameMap_
 
bool fastPathStrictChecking_
 
unsigned int fregDpCount_ = 0
 
bool haveFastPath_ = false
 
std::vector< unsigned int > jsonDpIndex_
 
std::vector< DataPoint * > jsonDpIndexFast_
 
unsigned int nStreams_
 
std::vector< DataPoint * > orphanedDps_
 
unsigned int recentSnaps_ = 0
 
unsigned int recentSnapsTimer_ = 0
 
unsigned int regDpCount_ = 0
 
std::string sourceInfo_
 
bool strictChecking_
 
std::unordered_set< std::string > uids_
 
bool useDefinition_
 
bool useSource_
 

Detailed Description

Definition at line 19 of file FastMonitor.h.

Constructor & Destructor Documentation

FastMonitor::FastMonitor ( std::string const &  defPath,
std::string const  defGroup,
bool  strictChecking,
bool  useSource = true,
bool  useDefinition = true 
)

Definition at line 23 of file FastMonitor.cc.

References defPath_, dpd_, jsoncollector::DataPointDefinition::getDataPointDefinitionFor(), getHostAndPID(), and sourceInfo_.

25  : defPath_(defPath),
26  strictChecking_(strictChecking),
27  useSource_(useSource),
28  useDefinition_(useDefinition),
29  nStreams_(1),
30  deleteDef_(true) {
31  //get host and PID info
32  if (useSource)
34 
35  //load definition file
36  dpd_ = new DataPointDefinition();
38 }
static bool getDataPointDefinitionFor(std::string &defFilePath, DataPointDefinition *dpd, const std::string *defaultGroup=nullptr)
DataPointDefinition * dpd_
Definition: FastMonitor.h:107
void getHostAndPID(std::string &sHPid)
Definition: FastMonitor.cc:285
FastMonitor::FastMonitor ( DataPointDefinition dpd,
bool  strictChecking,
bool  useSource = true,
bool  useDefinition = true 
)

Definition at line 40 of file FastMonitor.cc.

References getHostAndPID(), and sourceInfo_.

41  : strictChecking_(strictChecking), useSource_(useSource), useDefinition_(useDefinition), nStreams_(1), dpd_(dpd) {
42  //get host and PID info
43  if (useSource)
45 }
DataPointDefinition * dpd_
Definition: FastMonitor.h:107
void getHostAndPID(std::string &sHPid)
Definition: FastMonitor.cc:285
FastMonitor::~FastMonitor ( )
virtual

Definition at line 47 of file FastMonitor.cc.

References dataPoints_, deleteDef_, deleteDefFast_, Calorimetry_cff::dp, dpd_, and dpdFast_.

47  {
48  for (auto dp : dataPoints_)
49  delete dp;
50  if (deleteDef_)
51  delete dpd_;
52  if (deleteDefFast_)
53  delete dpdFast_;
54 }
DataPointDefinition * dpdFast_
Definition: FastMonitor.h:108
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
DataPointDefinition * dpd_
Definition: FastMonitor.h:107

Member Function Documentation

void FastMonitor::addFastPathDefinition ( std::string const &  defPathFast,
std::string const  defGroupFast,
bool  strict 
)

Definition at line 56 of file FastMonitor.cc.

References defPathFast_, deleteDefFast_, dpdFast_, fastPathStrictChecking_, jsoncollector::DataPointDefinition::getDataPointDefinitionFor(), and haveFastPath_.

56  {
57  haveFastPath_ = true;
58  defPathFast_ = defPathFast;
61  fastPathStrictChecking_ = strict;
62  deleteDefFast_ = true;
63 }
DataPointDefinition * dpdFast_
Definition: FastMonitor.h:108
static bool getDataPointDefinitionFor(std::string &defFilePath, DataPointDefinition *dpd, const std::string *defaultGroup=nullptr)
void FastMonitor::commit ( std::vector< unsigned int > *  streamLumisPtr)

Definition at line 115 of file FastMonitor.cc.

References dataPoints_, dataPointsFastOnly_, defPath_, defPathFast_, dpd_, dpdFast_, fastPathStrictChecking_, fregDpCount_, getName(), jsoncollector::DataPointDefinition::getNames(), jsoncollector::DataPointDefinition::getOperationFor(), haveFastPath_, mps_fire::i, dqmiolumiharvest::j, jsonDpIndex_, jsonDpIndexFast_, regDpCount_, sourceInfo_, strictChecking_, and jsoncollector::DataPoint::trackDummy().

Referenced by RawEventFileWriterForBU::RawEventFileWriterForBU(), evf::FastMonitoringThread::MonitorData::registerVariables(), and setNStreams().

115  {
116  std::vector<std::string> const& jsonNames = dpd_->getNames();
117  regDpCount_ = dataPoints_.size();
118  if (strictChecking_)
119  assert(jsonNames.size() == regDpCount_);
120 
121  std::map<unsigned int, bool> hasJson;
122  for (unsigned int i = 0; i < jsonNames.size(); i++) {
123  bool notFoundVar = true;
124  for (unsigned int j = 0; j < regDpCount_; j++) {
125  if (dataPoints_[j]->getName() == jsonNames[i]) {
126  dataPoints_[j]->setOperation(dpd_->getOperationFor(i));
127  jsonDpIndex_.push_back(j);
128  hasJson[j] = true;
129  notFoundVar = false;
130  break;
131  }
132  }
133  if (notFoundVar) {
134  assert(!strictChecking_);
135  //push dummy DP if not registered by the service so that we output required JSON/CSV
136  DataPoint* dummyDp = new DataPoint(sourceInfo_, defPath_);
137  dummyDp->trackDummy(jsonNames[i], true);
138  dataPoints_.push_back(dummyDp);
139  jsonDpIndex_.push_back(dataPoints_.size() - 1);
140  }
141  }
142  for (unsigned int i = 0; i < regDpCount_; i++) {
143  dataPoints_[i]->setStreamLumiPtr(streamLumisPtr);
144  }
145 
146  //fast path:
147  if (haveFastPath_) {
148  std::vector<std::string> const& fjsonNames = dpdFast_->getNames();
150  assert(!(fastPathStrictChecking_ && fjsonNames.size() == fregDpCount_));
151  std::map<unsigned int, bool> fhasJson;
152  for (unsigned int i = 0; i < fjsonNames.size(); i++) {
153  bool notFoundVar = true;
154  for (unsigned int j = 0; j < fregDpCount_; j++) {
155  if (dataPointsFastOnly_[j]->getName() == fjsonNames[i]) {
157  fhasJson[j] = true;
158  notFoundVar = false;
159  break;
160  }
161  }
162  if (notFoundVar) {
163  //try to find variable among slow variables
164 
165  bool notFoundVarSlow = true;
166  for (unsigned int j = 0; j < regDpCount_; j++) {
167  if (dataPoints_[j]->getName() == fjsonNames[i]) {
168  jsonDpIndexFast_.push_back(dataPoints_[j]);
169  //fhasJson[j]=true;
170  notFoundVarSlow = false;
171  break;
172  }
173  }
174 
175  assert(!(fastPathStrictChecking_ && !notFoundVarSlow));
176  //push dummy DP if not registered by the service so that we output required JSON/CSV
177  if (notFoundVarSlow) {
178  DataPoint* dummyDp = new DataPoint(sourceInfo_, defPathFast_);
179  dummyDp->trackDummy(fjsonNames[i], true);
180  dataPointsFastOnly_.push_back(dummyDp);
181  jsonDpIndexFast_.push_back(dummyDp);
182  }
183  }
184  }
185  }
186 }
DataPointDefinition * dpdFast_
Definition: FastMonitor.h:108
OperationType getOperationFor(unsigned int index)
void trackDummy(std::string const &name, bool setNAifZeroUpdates)
Definition: DataPoint.h:80
std::vector< DataPoint * > dataPointsFastOnly_
Definition: FastMonitor.h:113
std::vector< unsigned int > jsonDpIndex_
Definition: FastMonitor.h:114
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
TString getName(TString structure, int layer, TString geometry)
Definition: DMRtrends.cc:236
std::vector< DataPoint * > jsonDpIndexFast_
Definition: FastMonitor.h:115
DataPointDefinition * dpd_
Definition: FastMonitor.h:107
std::vector< std::string > const & getNames()
void FastMonitor::discardCollected ( unsigned int  forLumi)

Definition at line 280 of file FastMonitor.cc.

References dataPoints_, and Calorimetry_cff::dp.

Referenced by RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), and setNStreams().

280  {
281  for (auto dp : dataPoints_)
282  dp->discardCollected(forLumi);
283 }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::string FastMonitor::getCSVString ( int  sid = -1)

Definition at line 213 of file FastMonitor.cc.

References dqmiolumiharvest::j, jsonDpIndexFast_, and contentValuesCheck::ss.

Referenced by setNStreams().

213  {
214  //output what was specified in JSON in the same order (including dummies)
215  unsigned int monSize = jsonDpIndexFast_.size();
216  std::stringstream ss;
217  if (monSize) {
218  for (unsigned int j = 0; j < monSize; j++) {
219  ss << jsonDpIndexFast_[j]->fastOutCSV(sid);
220  if (j < monSize - 1)
221  ss << ",";
222  }
223  }
224  return ss.str();
225 }
std::vector< DataPoint * > jsonDpIndexFast_
Definition: FastMonitor.h:115
void FastMonitor::getHostAndPID ( std::string &  sHPid)

Definition at line 285 of file FastMonitor.cc.

References createfilelist::int.

Referenced by FastMonitor(), and setNStreams().

285  {
286  std::stringstream hpid;
287  int pid = (int)getpid();
288  char hostname[128];
289  gethostname(hostname, sizeof hostname);
290  hpid << hostname << "_" << pid;
291  sHPid = hpid.str();
292 }
JsonMonitorable * FastMonitor::getMergedIntJForLumi ( std::string const &  name,
unsigned int  forLumi 
)

Definition at line 236 of file FastMonitor.cc.

References dataPoints_, and dpNameMap_.

Referenced by setNStreams().

236  {
237  auto it = dpNameMap_.find(name);
238  assert(it != dpNameMap_.end());
239  return dataPoints_[it->second]->mergeAndRetrieveValue(forLumi);
240 }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
void FastMonitor::outputCSV ( std::string const &  path,
std::string const &  csvString 
)

Definition at line 227 of file FastMonitor.cc.

References defPathFast_, MillePedeFileConverter_cfg::out, download_sqlite_cfg::outputFile, and pileupReCalc_HLTpaths::trunc.

Referenced by setNStreams().

227  {
228  std::ofstream outputFile;
229  outputFile.open(path.c_str(), std::fstream::out | std::fstream::trunc);
230  outputFile << defPathFast_ << std::endl;
231  outputFile << csvString << std::endl;
232  outputFile.close();
233 }
bool FastMonitor::outputFullJSON ( std::string const &  path,
unsigned int  lumi 
)

Definition at line 264 of file FastMonitor.cc.

References dataPoints_, dqmiolumiharvest::j, jsonDpIndex_, LogDebug, recentSnaps_, recentSnapsTimer_, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, Json::StyledWriter::write(), cscNeutronWriter_cfi::writer, and jsoncollector::FileIO::writeStringToFile().

Referenced by RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), setNStreams(), and RawEventFileWriterForBU::stop().

264  {
265  LogDebug("FastMonitor") << "SNAP updates -: " << recentSnaps_ << " (by timer: " << recentSnapsTimer_
266  << ") in lumisection ";
267 
268  recentSnaps_ = recentSnapsTimer_ = 0;
269  Json::Value serializeRoot;
270  for (unsigned int j = 0; j < jsonDpIndex_.size(); j++) {
271  dataPoints_[jsonDpIndex_[j]]->mergeAndSerialize(serializeRoot, lumi, j == 0, -1);
272  }
273 
275  std::string&& result = writer.write(serializeRoot);
277  return true;
278 }
#define LogDebug(id)
Represents a JSON value.
Definition: value.h:99
std::vector< unsigned int > jsonDpIndex_
Definition: FastMonitor.h:114
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
static void writeStringToFile(std::string const &filename, std::string &content)
Definition: FileIO.cc:21
std::string write(const Value &root) override
Serialize a Value in JSON format.
unsigned int recentSnapsTimer_
Definition: FastMonitor.h:120
Writes a Value in JSON format in a human friendly way.
Definition: writer.h:63
bool FastMonitor::outputFullJSONs ( std::string const &  pathstem,
std::string const &  ext,
unsigned int  lumi 
)

Definition at line 242 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, dqmiolumiharvest::j, jsonDpIndex_, LogDebug, nStreams_, castor_dqm_sourceclient_file_cfg::path, recentSnaps_, recentSnapsTimer_, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, Json::StyledWriter::write(), cscNeutronWriter_cfi::writer, and jsoncollector::FileIO::writeStringToFile().

Referenced by setNStreams().

242  {
243  LogDebug("FastMonitor") << "SNAP updates -: " << recentSnaps_ << " (by timer: " << recentSnapsTimer_
244  << ") in lumisection ";
245 
246  recentSnaps_ = recentSnapsTimer_ = 0;
247  for (unsigned int i = 0; i < nStreams_; i++) {
248  Json::Value serializeRoot;
249  for (unsigned int j = 0; j < jsonDpIndex_.size(); j++) {
250  dataPoints_[jsonDpIndex_[j]]->mergeAndSerialize(serializeRoot, lumi, true, i);
251  }
252  //get extension
253  std::stringstream tidext;
254  tidext << "_tid" << i;
255  std::string path = pathstem + tidext.str() + ext;
256 
258  std::string&& result = writer.write(serializeRoot);
259  FileIO::writeStringToFile(path, result);
260  }
261  return true;
262 }
#define LogDebug(id)
Represents a JSON value.
Definition: value.h:99
std::vector< unsigned int > jsonDpIndex_
Definition: FastMonitor.h:114
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
static void writeStringToFile(std::string const &filename, std::string &content)
Definition: FileIO.cc:21
std::string write(const Value &root) override
Serialize a Value in JSON format.
unsigned int recentSnapsTimer_
Definition: FastMonitor.h:120
Definition: memstream.h:15
Writes a Value in JSON format in a human friendly way.
Definition: writer.h:63
void FastMonitor::registerFastGlobalMonitorable ( JsonMonitorable newMonitorable)

Definition at line 80 of file FastMonitor.cc.

References dataPointsFastOnly_, defPathFast_, Calorimetry_cff::dp, sourceInfo_, and jsoncollector::DataPoint::trackMonitorable().

Referenced by evf::FastMonitoringThread::MonitorData::registerVariables(), and setNStreams().

80  {
82  dp->trackMonitorable(newMonitorable, false);
83  dataPointsFastOnly_.push_back(dp);
84 }
std::vector< DataPoint * > dataPointsFastOnly_
Definition: FastMonitor.h:113
void trackMonitorable(JsonMonitorable *monitorable, bool NAifZeroUpdates)
Definition: DataPoint.cc:69
void FastMonitor::registerGlobalMonitorable ( JsonMonitorable newMonitorable,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 66 of file FastMonitor.cc.

References dataPoints_, defPath_, Calorimetry_cff::dp, dpNameMap_, jsoncollector::JsonMonitorable::getName(), edm::second(), jsoncollector::DataPoint::setNBins(), sourceInfo_, jsoncollector::DataPoint::trackMonitorable(), and uids_.

Referenced by RawEventFileWriterForBU::RawEventFileWriterForBU(), evf::FastMonitoringThread::MonitorData::registerVariables(), and setNStreams().

68  {
70  dp->trackMonitorable(newMonitorable, NAifZeroUpdates);
71  dp->setNBins(nBins);
72  dataPoints_.push_back(dp);
73  dpNameMap_[newMonitorable->getName()] = dataPoints_.size() - 1;
74 
75  //checks if the same name is registered twice
76  assert(uids_.insert(newMonitorable->getName()).second);
77 }
void setNBins(unsigned int *nBins)
Definition: DataPoint.h:107
virtual std::string & getName()
void trackMonitorable(JsonMonitorable *monitorable, bool NAifZeroUpdates)
Definition: DataPoint.cc:69
U second(std::pair< T, U > const &p)
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
std::unordered_set< std::string > uids_
Definition: FastMonitor.h:124
void FastMonitor::registerStreamMonitorableUIntVec ( std::string const &  name,
std::vector< unsigned int > *  inputs,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 87 of file FastMonitor.cc.

References dataPoints_, defPath_, Calorimetry_cff::dp, dpNameMap_, Skims_PA_cff::name, jsoncollector::DataPoint::setNBins(), sourceInfo_, jsoncollector::DataPoint::trackVectorUInt(), and uids_.

Referenced by evf::FastMonitoringThread::MonitorData::registerVariables(), and setNStreams().

90  {
92  dp->trackVectorUInt(name, inputs, NAifZeroUpdates);
93  dp->setNBins(nBins);
94  dataPoints_.push_back(dp);
95  dpNameMap_[name] = dataPoints_.size() - 1;
96  assert(uids_.insert(name).second);
97 }
void setNBins(unsigned int *nBins)
Definition: DataPoint.h:107
void trackVectorUInt(std::string const &name, std::vector< unsigned int > *monvec, bool NAifZeroUpdates)
Definition: DataPoint.cc:83
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
std::unordered_set< std::string > uids_
Definition: FastMonitor.h:124
void FastMonitor::registerStreamMonitorableUIntVecAtomic ( std::string const &  name,
std::vector< AtomicMonUInt * > *  inputs,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 100 of file FastMonitor.cc.

References dataPoints_, defPath_, Calorimetry_cff::dp, dpNameMap_, Skims_PA_cff::name, jsoncollector::DataPoint::setNBins(), sourceInfo_, AlCaHLTBitMon_QueryRunRegistry::string, jsoncollector::DataPoint::trackVectorUIntAtomic(), uids_, and useDefinition_.

Referenced by evf::FastMonitoringThread::MonitorData::registerVariables(), and setNStreams().

103  {
104  std::string definitionToPass;
105  if (useDefinition_)
106  definitionToPass = defPath_;
107  DataPoint* dp = new DataPoint(definitionToPass, sourceInfo_);
108  dp->trackVectorUIntAtomic(name, inputs, NAifZeroUpdates);
109  dp->setNBins(nBins);
110  dataPoints_.push_back(dp);
111  dpNameMap_[name] = dataPoints_.size() - 1;
112  assert(uids_.insert(name).second);
113 }
void setNBins(unsigned int *nBins)
Definition: DataPoint.h:107
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
std::unordered_set< std::string > uids_
Definition: FastMonitor.h:124
void trackVectorUIntAtomic(std::string const &name, std::vector< AtomicMonUInt * > *monvec, bool NAifZeroUpdates)
Definition: DataPoint.cc:92
void jsoncollector::FastMonitor::setDefPath ( std::string const &  dpath)
inline

Definition at line 32 of file FastMonitor.h.

References dataPoints_, defPath_, and Calorimetry_cff::dp.

Referenced by RawEventFileWriterForBU::writeJsds().

32  {
33  defPath_ = dpath;
34  for (auto dp : dataPoints_)
35  dp->updateDefinition(dpath);
36  }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
void jsoncollector::FastMonitor::setNStreams ( unsigned int  nStreams)
inline
void FastMonitor::snap ( unsigned int  ls)

Definition at line 189 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, recentSnaps_, recentSnapsTimer_, and regDpCount_.

Referenced by RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), setNStreams(), and RawEventFileWriterForBU::stop().

189  {
190  recentSnaps_++;
192  for (unsigned int i = 0; i < regDpCount_; i++) {
193  dataPoints_[i]->snap(ls);
194  }
195 }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
def ls(path, rec=False)
Definition: eostools.py:349
unsigned int recentSnapsTimer_
Definition: FastMonitor.h:120
void FastMonitor::snapGlobal ( unsigned int  ls)

Definition at line 198 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, recentSnaps_, and regDpCount_.

Referenced by setNStreams().

198  {
199  recentSnaps_++;
200  for (unsigned int i = 0; i < regDpCount_; i++) {
201  dataPoints_[i]->snapGlobal(ls);
202  }
203 }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
def ls(path, rec=False)
Definition: eostools.py:349
void FastMonitor::snapStreamAtomic ( unsigned int  ls,
unsigned int  streamID 
)

Definition at line 206 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, recentSnaps_, and regDpCount_.

Referenced by setNStreams().

206  {
207  recentSnaps_++;
208  for (unsigned int i = 0; i < regDpCount_; i++) {
209  dataPoints_[i]->snapStreamAtomic(ls, streamID);
210  }
211 }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
def ls(path, rec=False)
Definition: eostools.py:349

Member Data Documentation

std::vector<DataPoint*> jsoncollector::FastMonitor::dataPoints_
private
std::vector<DataPoint*> jsoncollector::FastMonitor::dataPointsFastOnly_
private

Definition at line 113 of file FastMonitor.h.

Referenced by commit(), and registerFastGlobalMonitorable().

std::string jsoncollector::FastMonitor::defPath_
private
std::string jsoncollector::FastMonitor::defPathFast_
private
bool jsoncollector::FastMonitor::deleteDef_ = false
private

Definition at line 109 of file FastMonitor.h.

Referenced by ~FastMonitor().

bool jsoncollector::FastMonitor::deleteDefFast_ = false
private

Definition at line 110 of file FastMonitor.h.

Referenced by addFastPathDefinition(), and ~FastMonitor().

DataPointDefinition* jsoncollector::FastMonitor::dpd_
private

Definition at line 107 of file FastMonitor.h.

Referenced by commit(), FastMonitor(), and ~FastMonitor().

DataPointDefinition* jsoncollector::FastMonitor::dpdFast_
private

Definition at line 108 of file FastMonitor.h.

Referenced by addFastPathDefinition(), commit(), and ~FastMonitor().

std::map<std::string, unsigned int> jsoncollector::FastMonitor::dpNameMap_
private
bool jsoncollector::FastMonitor::fastPathStrictChecking_
private

Definition at line 99 of file FastMonitor.h.

Referenced by addFastPathDefinition(), and commit().

unsigned int jsoncollector::FastMonitor::fregDpCount_ = 0
private

Definition at line 122 of file FastMonitor.h.

Referenced by commit().

bool jsoncollector::FastMonitor::haveFastPath_ = false
private

Definition at line 102 of file FastMonitor.h.

Referenced by addFastPathDefinition(), and commit().

std::vector<unsigned int> jsoncollector::FastMonitor::jsonDpIndex_
private

Definition at line 114 of file FastMonitor.h.

Referenced by commit(), outputFullJSON(), and outputFullJSONs().

std::vector<DataPoint*> jsoncollector::FastMonitor::jsonDpIndexFast_
private

Definition at line 115 of file FastMonitor.h.

Referenced by commit(), and getCSVString().

unsigned int jsoncollector::FastMonitor::nStreams_
private

Definition at line 104 of file FastMonitor.h.

Referenced by outputFullJSONs(), and setNStreams().

std::vector<DataPoint*> jsoncollector::FastMonitor::orphanedDps_
private

Definition at line 116 of file FastMonitor.h.

unsigned int jsoncollector::FastMonitor::recentSnaps_ = 0
private

Definition at line 119 of file FastMonitor.h.

Referenced by outputFullJSON(), outputFullJSONs(), snap(), snapGlobal(), and snapStreamAtomic().

unsigned int jsoncollector::FastMonitor::recentSnapsTimer_ = 0
private

Definition at line 120 of file FastMonitor.h.

Referenced by outputFullJSON(), outputFullJSONs(), and snap().

unsigned int jsoncollector::FastMonitor::regDpCount_ = 0
private

Definition at line 121 of file FastMonitor.h.

Referenced by commit(), snap(), snapGlobal(), and snapStreamAtomic().

std::string jsoncollector::FastMonitor::sourceInfo_
private
bool jsoncollector::FastMonitor::strictChecking_
private

Definition at line 98 of file FastMonitor.h.

Referenced by commit().

std::unordered_set<std::string> jsoncollector::FastMonitor::uids_
private
bool jsoncollector::FastMonitor::useDefinition_
private

Definition at line 101 of file FastMonitor.h.

Referenced by registerStreamMonitorableUIntVecAtomic().

bool jsoncollector::FastMonitor::useSource_
private

Definition at line 100 of file FastMonitor.h.