#include <EventStreamHandler.h>
Public Member Functions | |
EventStreamHandler (const EventStreamConfigurationInfo &, const SharedResourcesPtr, const DbFileHandlerPtr) | |
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 int | getStreamMaxFileSize () const |
virtual FileHandlerPtr | newFileHandler (const I2OChain &event) |
virtual std::string | streamLabel () const |
Private Attributes | |
InitMsgCollectionPtr | initMsgCollection_ |
InitMsgSharedPtr | initMsgView_ |
EventStreamConfigurationInfo | streamConfig_ |
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 | |
virtual FileHandlerPtr | getFileHandler (const I2OChain &event) |
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 one event stream written to disk.
Definition at line 29 of file EventStreamHandler.h.
stor::EventStreamHandler::EventStreamHandler | ( | const EventStreamConfigurationInfo & | streamConfig, |
const SharedResourcesPtr | sharedResources, | ||
const DbFileHandlerPtr | dbFileHandler | ||
) |
Definition at line 13 of file EventStreamHandler.cc.
References StorageManager_cfg::streamLabel.
|
inlineprivatevirtual |
Return the fraction-to-disk parameter
Implements stor::StreamHandler.
Definition at line 52 of file EventStreamHandler.h.
References stor::EventStreamConfigurationInfo::fractionToDisk(), and streamConfig_.
|
inlineprivatevirtual |
Return the maximum file size for the stream in MB
Implements stor::StreamHandler.
Definition at line 63 of file EventStreamHandler.h.
References stor::EventStreamConfigurationInfo::maxFileSizeMB(), and streamConfig_.
|
privatevirtual |
Return a new file handler for the provided event
Implements stor::StreamHandler.
Definition at line 29 of file EventStreamHandler.cc.
References stor::StreamHandler::dbFileHandler_, stor::StreamHandler::fileHandlers_, stor::StreamHandler::getMaxFileSize(), stor::StreamHandler::getNewFileRecord(), initMsgCollection_, initMsgView_, and stor::I2OChain::outputModuleId().
|
inlineprivatevirtual |
Return the stream label
Implements stor::StreamHandler.
Definition at line 46 of file EventStreamHandler.h.
References streamConfig_, and stor::EventStreamConfigurationInfo::streamLabel().
|
private |
Definition at line 68 of file EventStreamHandler.h.
Referenced by newFileHandler().
|
private |
Definition at line 69 of file EventStreamHandler.h.
Referenced by newFileHandler().
|
private |
Definition at line 67 of file EventStreamHandler.h.
Referenced by fractionToDisk(), getStreamMaxFileSize(), and streamLabel().