23 #include <boost/lexical_cast.hpp>
24 #include <boost/filesystem/fstream.hpp>
28 using namespace jsoncollector;
34 const std::vector<std::string> EvFDaqDirector::MergeTypeNames_ = {
"",
"DAT",
"PB",
"JSNDATA"};
37 struct flock make_flock(short
type, short whence, off_t
start, off_t len, pid_t
pid)
49 base_dir_(pset.getUntrackedParameter<std::
string> (
"baseDir",
".")),
50 bu_base_dir_(pset.getUntrackedParameter<std::
string> (
"buBaseDir",
".")),
51 directorBu_(pset.getUntrackedParameter<bool> (
"directorIsBu",
false)),
52 run_(pset.getUntrackedParameter<unsigned int> (
"runNumber",0)),
53 outputAdler32Recheck_(pset.getUntrackedParameter<bool>(
"outputAdler32Recheck",
false)),
54 requireTSPSet_(pset.getUntrackedParameter<bool>(
"requireTransfersPSet",
false)),
55 selectedTransferMode_(pset.getUntrackedParameter<std::
string>(
"selectedTransferMode",
"")),
56 hltSourceDirectory_(pset.getUntrackedParameter<std::
string>(
"hltSourceDirectory",
"")),
57 fuLockPollInterval_(pset.getUntrackedParameter<unsigned int>(
"fuLockPollInterval",2000)),
58 emptyLumisectionMode_(pset.getUntrackedParameter<bool>(
"emptyLumisectionMode",
true)),
59 microMergeDisabled_(pset.getUntrackedParameter<bool>(
"microMergeDisabled",
true)),
60 mergeTypePset_(pset.getUntrackedParameter<std::
string>(
"mergeTypePset",
"")),
64 fu_readwritelock_fd_(-1),
65 data_readwrite_fd_(-1),
66 fulocal_rwlock_fd_(-1),
67 fulocal_rwlock_fd2_(-1),
76 dirManager_(base_dir_),
80 bu_w_flk( make_flock( F_WRLCK, SEEK_SET, 0, 0, 0 )),
81 bu_r_flk( make_flock( F_RDLCK, SEEK_SET, 0, 0, 0 )),
82 bu_w_fulk( make_flock( F_UNLCK, SEEK_SET, 0, 0, 0 )),
83 bu_r_fulk( make_flock( F_UNLCK, SEEK_SET, 0, 0, 0 )),
84 fu_rw_flk( make_flock ( F_WRLCK, SEEK_SET, 0, 0, getpid() )),
85 fu_rw_fulk( make_flock( F_UNLCK, SEEK_SET, 0, 0, getpid() )),
86 data_rw_flk( make_flock ( F_WRLCK, SEEK_SET, 0, 0, getpid() )),
87 data_rw_fulk( make_flock( F_UNLCK, SEEK_SET, 0, 0, getpid() ))
103 gethostname(hostname,32);
106 char * fuLockPollIntervalPtr = getenv(
"FFF_LOCKPOLLINTERVAL");
107 if (fuLockPollIntervalPtr) {
112 catch( boost::bad_lexical_cast
const& ) {
117 char * emptyLumiModePtr = getenv(
"FFF_EMPTYLSMODE");
118 if (emptyLumiModePtr) {
120 edm::LogInfo(
"EvFDaqDirector") <<
"Setting empty lumisection mode";
123 char * microMergeDisabledPtr = getenv(
"FFF_MICROMERGEDISABLED");
124 if (microMergeDisabledPtr) {
126 edm::LogInfo(
"EvFDaqDirector") <<
"Disabling dat file micro-merge by the HLT process (delegated to the hlt daemon)";
132 std::stringstream
ss;
133 ss <<
"run" << std::setfill(
'0') << std::setw(6) <<
run_;
138 int retval =
mkdir(
base_dir_.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
139 if (retval != 0 && errno != EEXIST) {
140 throw cms::Exception(
"DaqDirector") <<
" Error checking for base dir -: "
141 <<
base_dir_ <<
" mkdir error:" << strerror(errno);
147 S_IRWXU | S_IRWXG | S_IROTH | S_IRWXO | S_IXOTH);
148 if (retval != 0 && errno != EEXIST) {
149 throw cms::Exception(
"DaqDirector") <<
" Error creating run dir -: "
150 <<
run_dir_ <<
" mkdir error:" << strerror(errno);
158 fulocal_rwlock_fd_ = open(fulocal_lock_.c_str(), O_RDWR | O_CREAT, S_IRWXU | S_IWGRP | S_IRGRP | S_IWOTH | S_IROTH);
160 throw cms::Exception(
"DaqDirector") <<
" Error creating/opening a local lock file -: " << fulocal_lock_.c_str() <<
" : " << strerror(errno);
161 chmod(fulocal_lock_.c_str(),0777);
164 fulocal_rwlock_fd2_ = open(fulocal_lock_.c_str(), O_RDWR, S_IRWXU | S_IWGRP | S_IRGRP | S_IWOTH | S_IROTH);
166 throw cms::Exception(
"DaqDirector") <<
" Error opening a local lock file -: " << fulocal_lock_.c_str() <<
" : " << strerror(errno);
179 S_IRWXU | S_IRWXG | S_IRWXO);
180 if (retval != 0 && errno != EEXIST) {
183 <<
" mkdir error:" << strerror(errno) <<
"\n";
187 S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
188 if (retval != 0 && errno != EEXIST) {
189 throw cms::Exception(
"DaqDirector") <<
" Error creating bu run open dir -: "
196 O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
198 edm::LogWarning(
"EvFDaqDirector") <<
"problem with creating filedesc for buwritelock -: "
201 edm::LogInfo(
"EvFDaqDirector") <<
"creating filedesc for buwritelock -: "
205 edm::LogWarning(
"EvFDaqDirector")<<
"Error creating write lock stream -: " << strerror(errno);
220 retval =
mkdir(tmphltdir.c_str(),S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
221 if (retval != 0 && errno != EEXIST)
223 <<
" Error creating bu run dir -: " << hltdir
224 <<
" mkdir error:" << strerror(errno) <<
"\n";
226 boost::filesystem::copy_file(
hltSourceDirectory_+
"/HltConfig.py",tmphltdir+
"/HltConfig.py");
228 boost::filesystem::copy_file(
hltSourceDirectory_+
"/fffParameters.jsn",tmphltdir+
"/fffParameters.jsn");
230 boost::filesystem::rename(tmphltdir,hltdir);
242 if (retval != 0 && errno != EEXIST) {
243 throw cms::Exception(
"DaqDirector") <<
" Error checking for bu base dir -: "
244 <<
bu_base_dir_ <<
" mkdir error:" << strerror(errno) <<
"\n";
286 desc.
setComment(
"Service used for file locking arbitration and for propagating information between other EvF components");
289 desc.
addUntracked<
unsigned int> (
"runNumber",0)->setComment(
"Run Number in ramdisk to open");
290 desc.
addUntracked<
bool>(
"outputAdler32Recheck",
false)->setComment(
"Check Adler32 of per-process output files while micro-merging");
291 desc.
addUntracked<
bool>(
"requireTransfersPSet",
false)->setComment(
"Require complete transferSystem PSet in the process configuration");
292 desc.
addUntracked<
std::string>(
"selectedTransferMode",
"")->setComment(
"Selected transfer mode (choice in Lvl0 propagated as Python parameter");
293 desc.
addUntracked<
unsigned int>(
"fuLockPollInterval",2000)->setComment(
"Lock polling interval in microseconds for the input directory file lock");
294 desc.
addUntracked<
bool>(
"emptyLumisectionMode",
true)->setComment(
"Enables writing stream output metadata even when no events are processed in a lumisection");
295 desc.
addUntracked<
bool>(
"microMergeDisabled",
true)->setComment(
"Disabled micro-merging by the Output Module, so it is later done by hltd service");
296 desc.
addUntracked<
std::string>(
"mergingPset",
"")->setComment(
"Name of merging PSet to look for merging type definitions for streams");
298 descriptions.
add(
"EvFDaqDirector", desc);
314 <<
run_dir_ <<
". This is not the highest run "
333 edm::LogWarning(
"EvFDaqDirector") <<
" Handles to check for files to delete were not set by the input source...";
340 if (it->second->lumi_ == ls) {
342 LogDebug(
"EvFDaqDirector") <<
"Deleting input file -:" << it->second->fileName_;
347 catch (
const boost::filesystem::filesystem_error& ex)
349 edm::LogError(
"EvFDaqDirector") <<
" - deleteFile BOOST FILESYSTEM ERROR CAUGHT -: " << ex.what() <<
". Trying again.";
354 catch (
const boost::filesystem::filesystem_error&) {}
358 edm::LogError(
"EvFDaqDirector") <<
" - deleteFile std::exception CAUGHT -: " << ex.what() <<
". Trying again.";
472 int retval =
remove(filename.c_str());
474 edm::LogError(
"EvFDaqDirector") <<
"Could not remove used file -: " << filename <<
". error = "
486 int lock_attempts = 0;
497 edm::LogWarning(
"EvFDaqDirector") <<
"Detected stop request from hltd. Ending run for this process after LS -: " << stopFileLS;
503 timeval ts_lockbegin;
504 gettimeofday(&ts_lockbegin,0);
512 if (lock_attempts>5000000 || errno==116) {
514 edm::LogWarning(
"EvFDaqDirector") <<
"Stale lock file handle. Checking if run directory and fu.lock file are present" << std::endl;
516 edm::LogWarning(
"EvFDaqDirector") <<
"Unable to obtain a lock for 5 seconds. Checking if run directory and fu.lock file are present -: errno "
517 << errno <<
":"<< strerror(errno) << std::endl;
521 edm::LogWarning(
"EvFDaqDirector") <<
"Detected local EoLS for lumisection "<<
ls ;
533 gettimeofday(&ts_lockend,0);
534 long deltat = (ts_lockend.tv_usec-ts_lockbegin.tv_usec) + (ts_lockend.tv_sec-ts_lockbegin.tv_sec)*1000000;
535 if (deltat>0.) lockWaitTime=deltat;
539 if(retval!=0)
return fileStatus;
543 gettimeofday(&ts_lockend,0);
558 unsigned int currentLs = readLs;
559 bool bumpedOk =
false;
562 if (ls && ls+1 < currentLs) ls++;
565 bumpedOk =
bumpFile(readLs, readIndex, nextFile, fsize, stopFileLS);
567 if (ls && readLs>currentLs && currentLs > ls) {
575 if (ls==0 && readLs>currentLs) {
597 LogDebug(
"EvFDaqDirector") <<
"Written to file -: " << readLs <<
":" << readIndex + 1;
600 throw cms::Exception(
"EvFDaqDirector") <<
"seek on fu read/write lock for updating failed with error " << strerror(errno);
603 else if (currentLs < readLs) {
612 LogDebug(
"EvFDaqDirector") <<
"Written to file -: " << readLs <<
":" <<
readIndex;
615 throw cms::Exception(
"EvFDaqDirector") <<
"seek on fu read/write lock for updating failed with error " << strerror(errno);
619 edm::LogError(
"EvFDaqDirector") <<
"seek on fu read/write lock for reading failed with error " << strerror(errno);
622 edm::LogError(
"EvFDaqDirector") <<
"fu read/write lock stream is invalid " << strerror(errno);
626 timeval ts_preunlock;
627 gettimeofday(&ts_preunlock,0);
628 int locked_period_int = ts_preunlock.tv_sec - ts_lockend.tv_sec;
629 double locked_period=locked_period_int+double(ts_preunlock.tv_usec - ts_lockend.tv_usec)/1000000;
638 if (retvalu==-1)
edm::LogError(
"EvFDaqDirector") <<
"Error unlocking the fu.lock " << strerror(errno);
641 edm::LogDebug(
"EvFDaqDirector") <<
"Waited during lock -: " << locked_period <<
" seconds";
644 if ( fileStatus ==
noFile ) {
649 if (stopFileLS>=0 && (
int)ls > stopFileLS) {
650 edm::LogInfo(
"EvFDaqDirector") <<
"Reached maximum lumisection set by hltd";
659 boost::filesystem::ifstream ij(BUEoLSFile);
663 if (!reader.
parse(ij, deserializeRoot)) {
664 edm::LogError(
"EvFDaqDirector") <<
"Cannot deserialize input JSON file -:" << BUEoLSFile;
679 if (def.find(
'/')==0)
684 if (stat(fullpath.c_str(), &buf) == 0) {
687 DataPointDefinition::getDataPointDefinitionFor(fullpath, &eolsDpd,&defLabel);
692 DataPointDefinition::getDataPointDefinitionFor(fullpath, &eolsDpd,&defLabel);
694 for (
unsigned int i=0;
i<eolsDpd.
getNames().size();
i++)
701 if (def.size()<=1 || def.find(
'/')==std::string::npos) {
705 def = def.substr(def.find(
'/')+1);
712 edm::LogError(
"EvFDaqDirector") <<
" error reading number of files from BU JSON -: " << BUEoLSFile;
715 return boost::lexical_cast<
int>(
data);
729 if (maxLS>=0 && ls > (
unsigned int)maxLS)
return false;
732 std::stringstream
ss;
733 unsigned int nextIndex =
index;
738 if (stat(nextFile.c_str(), &buf) == 0) {
747 bool eolFound = (stat(BUEoLSFile.c_str(), &buf) == 0);
751 if (stat(nextFile.c_str(), &buf) == 0) {
758 if (indexFilesInLS < 0)
763 if ((
int)index<indexFilesInLS) {
765 edm::LogError(
"EvFDaqDirector") <<
"Potential miss of index file in LS -: " << ls <<
". Missing "
766 << nextFile <<
" because " << indexFilesInLS-1 <<
" is the highest index expected. Will not update fu.lock file";
775 if (maxLS>=0 && ls > (
unsigned int)maxLS)
return false;
778 if (stat(nextFile.c_str(), &buf) == 0) {
789 eolFound = (stat(BUEoLSFile.c_str(), &buf) == 0);
798 edm::LogError(
"EvFDaqDirector") <<
"Error creating fu read/write lock stream "
801 edm::LogInfo(
"EvFDaqDirector") <<
"Initializing FU LOCK FILE";
810 S_IRWXU | S_IWGRP | S_IRGRP | S_IWOTH | S_IROTH);
811 chmod(fulockfile.c_str(),0766);
816 edm::LogError(
"EvFDaqDirector") <<
"problem with creating filedesc for fuwritelock -: " << fulockfile.c_str()
817 <<
" create:" << create <<
" error:" << strerror(errno);
819 LogDebug(
"EvFDaqDirector") <<
"creating filedesc for fureadwritelock -: "
830 edm::LogError(
"EvFDaqDirector") <<
"problem with creating filedesc for datamerge "
833 LogDebug(
"EvFDaqDirector") <<
"creating filedesc for datamerge -: "
880 if (!boost::filesystem::is_directory(openPath)) {
881 LogDebug(
"EvFDaqDirector") <<
"<open> FU dir not found. Creating... -:" << openPath.string();
882 boost::filesystem::create_directories(openPath);
889 boost::filesystem::ifstream ij(file);
893 if (!reader.
parse(ij, deserializeRoot)) {
894 edm::LogError(
"EvFDaqDirector") <<
"Cannot deserialize input JSON file -:" <<
file;
898 int ret = deserializeRoot.
get(
"lastLS",
"").
asInt();
915 std::vector<std::string>
destinations = tsPset.getParameter<std::vector<std::string>>(
"destinations");
916 for (
auto &
dest: destinations) destinationsVal.append(
dest);
917 (*transferSystemJson_)[
"destinations"]=destinationsVal;
920 std::vector<std::string> modes = tsPset.getParameter< std::vector<std::string> >(
"transferModes");
922 (*transferSystemJson_)[
"transferModes"]=modesVal;
924 for (
auto psKeyItr =tsPset.psetTable().begin();psKeyItr!=tsPset.psetTable().end(); ++ psKeyItr) {
925 if (psKeyItr->first!=
"destinations" && psKeyItr->first!=
"transferModes") {
928 for (
auto &
mode : modes) {
930 if (!streamDef.
existsAs<std::vector<std::string>>(
mode,
true))
931 throw cms::Exception(
"EvFDaqDirector") <<
" Missing transfer system specification for -:" << psKeyItr->first <<
" (transferMode " <<
mode <<
")";
932 std::vector<std::string> streamDestinations = streamDef.
getParameter<std::vector<std::string>>(
mode);
936 if (!streamDestinations.size())
937 throw cms::Exception(
"EvFDaqDirector") <<
" Missing transter system destination(s) for -: "<< psKeyItr->first <<
", mode:" <<
mode;
939 for (
auto & sdest:streamDestinations) {
940 bool sDestValid=
false;
941 sDestsValue.append(sdest);
942 for (
auto &
dest: destinations) {
943 if (
dest==sdest) sDestValid=
true;
946 throw cms::Exception(
"EvFDaqDirector") <<
" Invalid transter system destination specified for -: "<< psKeyItr->first <<
", mode:" <<
mode <<
", dest:"<<sdest;
948 streamVal[
mode]=sDestsValue;
950 (*transferSystemJson_)[psKeyItr->first] = streamVal;
956 throw cms::Exception(
"EvFDaqDirector") <<
"transferSystem PSet not found";
964 streamRequestName = stream;
966 std::stringstream
msg;
967 msg <<
"Transfer system mode definitions missing for -: " << stream;
971 edm::LogWarning(
"EvFDaqDirector") << msg.str() <<
" (permissive mode)";
977 edm::LogWarning(
"EvFDaqDirector") <<
"Selected mode string is not provided as DaqDirector parameter."
978 <<
"Switch on requireTSPSet parameter to enforce this requirement. Setting mode to empty string.";
982 throw cms::Exception(
"EvFDaqDirector") <<
"Selected mode string is not provided as DaqDirector parameter.";
987 std::stringstream
msg;
988 msg <<
"Selected transfer mode " <<
selectedTransferMode_ <<
" is not specified for stream " << streamRequestName;
992 edm::LogWarning(
"EvFDaqDirector") << msg.str() <<
" (permissive mode)";
1001 if (ret!=
"") ret +=
",";
1002 ret+=(*it).asString();
1026 edm::LogInfo(
"EvFDaqDirector") <<
" No merging type specified for stream " << stream <<
". Using default value";
1032 return mergeTypeItr->second;
1037 int proc_flag_fd = open(proc_flag.c_str(), O_RDWR | O_CREAT, S_IRWXU | S_IWGRP | S_IRGRP | S_IWOTH | S_IROTH);
1038 close(proc_flag_fd);
unsigned int maxNumberOfThreads() const
T getParameter(std::string const &) const
std::string getStreamDestinations(std::string const &stream) const
Value get(UInt index, const Value &defaultValue) const
std::vector< std::string > & getData()
tuple ret
prodAgent to be discontinued
std::string protocolBufferHistogramFileNameWithInstance(const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
tuple start
Check for commandline option errors.
std::string bolsFileName(const unsigned int run, const unsigned int ls)
std::string streamerDataChecksumFileNameWithInstance(const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
std::string getMergedProtocolBufferHistogramFilePath(const unsigned int ls, std::string const &stream) const
void watchPreallocate(Preallocate::slot_type const &iSlot)
std::vector< int > streamFileTracker_
const_iterator begin() const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
std::list< std::pair< int, InputFile * > > * filesToDeletePtr_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::string getMergedDatChecksumFilePath(const unsigned int ls, std::string const &stream) const
std::shared_ptr< Json::Value > transferSystemJson_
void setAllowAnything()
allow any parameter label/value pairs
void openFULockfileStream(std::string &fuLockFilePath, bool create)
void accumulateFileSize(unsigned int lumi, unsigned long fileSize)
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
std::string getInitFilePath(std::string const &stream) const
std::string getMergedRootHistogramFilePath(const unsigned int ls, std::string const &stream) const
std::string inputRawFileName(const unsigned int run, const unsigned int ls, const unsigned int index)
ParameterSet const & getParameterSet(ParameterSetID const &id)
pthread_mutex_t init_lock_
LuminosityBlockID const & luminosityBlockID() const
std::string getProtocolBufferHistogramFilePath(const unsigned int ls, std::string const &stream) const
std::string getRawFilePath(const unsigned int ls, const unsigned int index) const
std::string getOpenInitFilePath(std::string const &stream) const
std::string getOpenRawFilePath(const unsigned int ls, const unsigned int index) const
Value & append(const Value &value)
Append value to array at the end.
void createProcessingNotificationMaybe() const
bool parse(const std::string &document, Value &root, bool collectComments=true)
Read a Value from a JSON document.
std::map< std::string, std::string > mergeTypeMap_
std::string getEoLSFilePathOnBU(const unsigned int ls) const
std::string getEoRFilePath() const
unsigned long previousFileSize_
ParameterSetID const & parameterSetID() const
void createRunOpendirMaybe()
unsigned int maxNumberOfStreams() const
std::string hltSourceDirectory_
std::string getOpenProtocolBufferHistogramFilePath(const unsigned int ls, std::string const &stream) const
void setComment(std::string const &value)
std::mutex * fileDeleteLockPtr_
std::string mergeTypePset_
std::string streamerDataFileNameWithInstance(const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
std::string getMergedDatFilePath(const unsigned int ls, std::string const &stream) const
bool check(const std::string &)
std::string getStreamMergeType(std::string const &stream, MergeType defaultType)
FileStatus updateFuLock(unsigned int &ls, std::string &nextFile, uint32_t &fsize, uint64_t &lockWaitTime)
std::string getOpenOutputJsonFilePath(const unsigned int ls, std::string const &stream) const
std::string getOpenRootHistogramFilePath(const unsigned int ls, std::string const &stream) const
std::string getRootHistogramFilePath(const unsigned int ls, std::string const &stream) const
std::string getOpenDatFilePath(const unsigned int ls, std::string const &stream) const
std::string inputJsonFileName(const unsigned int run, const unsigned int ls, const unsigned int index)
std::string stopFilePath_
FILE * maybeCreateAndLockFileHeadForStream(unsigned int ls, std::string &stream)
void unlockAndCloseMergeStream()
void tryInitializeFuLockFile()
void removeFile(unsigned int ls, unsigned int index)
unsigned int stop_ls_override_
std::string selectedTransferMode_
std::string streamerJsonFileNameWithPid(const unsigned int run, const unsigned int ls, std::string const &stream)
std::string getOpenInputJsonFilePath(const unsigned int ls, const unsigned int index) const
std::string eorFileName(const unsigned int run)
int readLastLSEntry(std::string const &file)
virtual void deserialize(Json::Value &root)
unsigned int eolsNFilesIndex_
bool emptyLumisectionMode_
std::string getDatFilePath(const unsigned int ls, std::string const &stream) const
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &)
void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const &iSlot)
std::string getOutputJsonFilePath(const unsigned int ls, std::string const &stream) const
int getNFilesFromEoLS(std::string BUEoLSFile)
void preBeginRun(edm::GlobalContext const &globalContext)
std::string rootHistogramFileNameWithPid(const unsigned int run, const unsigned int ls, std::string const &stream)
void preSourceEvent(edm::StreamID const &streamID)
std::string initFileNameWithPid(const unsigned int run, const unsigned int ls, std::string const &stream)
unsigned long long uint64_t
void checkMergeTypePSet(edm::ProcessContext const &pc)
ParameterSet const & getParameterSet(std::string const &) const
void preGlobalEndLumi(edm::GlobalContext const &globalContext)
void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const &iSlot)
LuminosityBlockNumber_t luminosityBlock() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string & getDefinition()
evf::FastMonitoringService * fms_
void watchPreBeginJob(PreBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
std::string rootHistogramFileNameWithInstance(const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
std::string findHighestRunDir()
std::string getBoLSFilePathOnFU(const unsigned int ls) const
char data[epos_bytes_allocation]
void postEndRun(edm::GlobalContext const &globalContext)
Unserialize a JSON document into a Value.
static const std::vector< std::string > MergeTypeNames_
const_iterator end() const
void checkTransferSystemPSet(edm::ProcessContext const &pc)
std::vector< std::string > const & getNames()
std::string getEoLSFilePathOnFU(const unsigned int ls) const
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
bool bumpFile(unsigned int &ls, unsigned int &index, std::string &nextFile, uint32_t &fsize, int maxLS)
volatile std::atomic< bool > shutdown_flag false
void preallocate(edm::service::SystemBounds const &bounds)
struct flock data_rw_fulk
Iterator for object and array value.
std::string getInputJsonFilePath(const unsigned int ls, const unsigned int index) const
std::string getRunOpenDirPath() const
std::string protocolBufferHistogramFileNameWithPid(const unsigned int run, const unsigned int ls, std::string const &stream)
unsigned int fuLockPollInterval_
std::string eolsFileName(const unsigned int run, const unsigned int ls)
std::string streamerDataFileNameWithPid(const unsigned int run, const unsigned int ls, std::string const &stream)
std::string getEoRFilePathOnFU() const
std::string bu_run_open_dir_
array value (ordered list)