|
CatapultServer
v0.5.0.1 (Elephant)
|


Public Member Functions | |
| FileQueueWriter (const std::string &directory) | |
| Creates a file queue writer around directory. More... | |
| FileQueueWriter (const std::string &directory, const std::string &indexFilename) | |
| Creates a file queue writer around directory containing a (writer) index file (indexFilename). More... | |
| void | write (const RawBuffer &buffer) override |
| void | flush () override |
Public Member Functions inherited from catapult::io::OutputStream | |
| virtual | ~OutputStream ()=default |
Private Attributes | |
| boost::filesystem::path | m_directory |
| IndexFile | m_indexFile |
| uint64_t | m_indexValue |
| std::unique_ptr< BufferedOutputFileStream > | m_pOutputStream |
File based queue writer where each message is represented by a file (with incrementing names) in a directory.
|
explicit |
Creates a file queue writer around directory.
| catapult::io::FileQueueWriter::FileQueueWriter | ( | const std::string & | directory, |
| const std::string & | indexFilename | ||
| ) |
Creates a file queue writer around directory containing a (writer) index file (indexFilename).
|
overridevirtual |
Commits all pending data.
| catapult_file_io_error | if flush failed. |
Implements catapult::io::OutputStream.

|
overridevirtual |
Writes data pointed to by buffer to this stream.
| catapult_file_io_error | if proper amount of data could not be written. |
Implements catapult::io::OutputStream.
|
private |
|
private |
|
private |
|
private |