#include <FaultyEventStreamHandler.h>
Public Member Functions | |
FaultyEventStreamHandler (const SharedResourcesPtr, const DbFileHandlerPtr, const std::string &streamName) | |
Public Member Functions inherited from stor::StreamHandler | |
void | closeAllFiles () |
bool | closeFilesForLumiSection (const uint32_t &lumiSection, std::string &) |
void | closeTimedOutFiles (utils::TimePoint_t currentTime=utils::getCurrentTime()) |
StreamHandler (const SharedResourcesPtr, const DbFileHandlerPtr) | |
void | writeEvent (const I2OChain &event) |
virtual | ~StreamHandler () |
Private Member Functions | |
virtual double | fractionToDisk () const |
virtual FileHandlerPtr | getFileHandler (const I2OChain &event) |
virtual int | getStreamMaxFileSize () const |
virtual FileHandlerPtr | newFileHandler (const I2OChain &event) |
virtual std::string | streamLabel () const |
Private Attributes | |
InitMsgCollectionPtr | initMsgCollection_ |
Additional Inherited Members | |
Protected Types inherited from stor::StreamHandler | |
typedef std::map< std::string, unsigned int > | CoreFileNamesMap |
typedef boost::shared_ptr < FileHandler > | FileHandlerPtr |
typedef std::vector < FileHandlerPtr > | FileHandlers |
Protected Member Functions inherited from stor::StreamHandler | |
unsigned long long | getMaxFileSize () const |
FilesMonitorCollection::FileRecordPtr | getNewFileRecord (const I2OChain &event) |
Protected Attributes inherited from stor::StreamHandler | |
const DbFileHandlerPtr | dbFileHandler_ |
const DiskWritingParams | diskWritingParams_ |
FileHandlers | fileHandlers_ |
const SharedResourcesPtr | sharedResources_ |
const StatisticsReporterPtr | statReporter_ |
const StreamsMonitorCollection::StreamRecordPtr | streamRecord_ |
CoreFileNamesMap | usedCoreFileNames_ |
Handle the faulty event stream written to disk.
Definition at line 26 of file FaultyEventStreamHandler.h.
stor::FaultyEventStreamHandler::FaultyEventStreamHandler | ( | const SharedResourcesPtr | sharedResources, |
const DbFileHandlerPtr | dbFileHandler, | ||
const std::string & | streamName | ||
) |
Definition at line 16 of file FaultyEventStreamHandler.cc.
References stor::StreamHandler::fractionToDisk().
|
inlineprivatevirtual |
Return the fraction-to-disk parameter
Implements stor::StreamHandler.
Definition at line 49 of file FaultyEventStreamHandler.h.
References stor::StreamHandler::streamRecord_.
|
privatevirtual |
Get the file handler responsible for the event
Reimplemented from stor::StreamHandler.
Definition at line 30 of file FaultyEventStreamHandler.cc.
References stor::StreamHandler::closeAllFiles(), and newFileHandler().
|
inlineprivatevirtual |
Return the maximum file size for the stream in MB
Implements stor::StreamHandler.
Definition at line 65 of file FaultyEventStreamHandler.h.
|
privatevirtual |
Return a new file handler for the provided event
Implements stor::StreamHandler.
Definition at line 39 of file FaultyEventStreamHandler.cc.
References stor::StreamHandler::dbFileHandler_, stor::StreamHandler::diskWritingParams_, stor::StreamHandler::fileHandlers_, stor::StreamHandler::getNewFileRecord(), initMsgCollection_, and stor::I2OChain::outputModuleId().
Referenced by getFileHandler().
|
inlineprivatevirtual |
Return the stream label
Implements stor::StreamHandler.
Definition at line 43 of file FaultyEventStreamHandler.h.
References stor::StreamHandler::streamRecord_.
|
private |
Definition at line 69 of file FaultyEventStreamHandler.h.
Referenced by newFileHandler().