171 void ShowInfo(
int lvl,
const std::string &info);
Reference on memory from memory pool.
Represents command with its arguments.
Interface for implementing any kind of data output.
virtual void Write_Flush()
Flush output object, called when buffer with EOL type is appeared.
virtual bool Write_Stat(dabc::Command cmd)
Fill different statistic parameters into provided command.
DataOutput(const dabc::Url &url)
void ShowInfo(int lvl, const std::string &info)
bool WriteBuffer(Buffer &buf)
Write buffer to the output.
virtual unsigned Write_Buffer(Buffer &buf)
Start writing of buffer to output.
virtual bool Write_Init()
This is generic virtual method to initialize output before real work is started.
void SetInfoParName(const std::string &name)
Methods set parameter name, which could be used for debug output.
virtual unsigned Write_Check()
Check if output can be done.
virtual unsigned Write_Complete()
Complete writing of the buffer.
virtual std::string ProvideInfo()
Method can be used to get debug info about output.
virtual WorkerAddon * Write_GetAddon()
Returns addon, provided by data output If specified, supposed that I/O object is double-derived from ...
virtual bool Write_Restart(dabc::Command cmd)
Method used to restart output - like recreate new output file.
virtual bool Write_Retry()
Returns true if output object can be reinitialized for recover error.
virtual double Write_Timeout()
Timeout in seconds for write operation.
Defines and implements basic POSIX file interface.
Interface for implementing file outputs.
bool CheckBufferForNextFile(unsigned sz)
Return true if new file should be started.
void AccountBuffer(unsigned sz, int numev=0)
dabc::FileInterface * fIO
std::string ProduceFileName(const std::string &suffix)
int GetSizeLimitMB() const
virtual bool Write_Init()
This is generic virtual method to initialize output before real work is started.
const std::string & CurrentFileName() const
std::string fCurrentFileName
void SetIO(dabc::FileInterface *io)
virtual std::string ProvideInfo()
Method can be used to get debug info about output.
void ProduceNewFileName()
virtual bool Write_Stat(dabc::Command cmd)
Fill different statistic parameters into provided command.
FileOutput(const dabc::Url &url, const std::string &ext="")
Base class for output transport implementations.
Reference on the arbitrary object
Uniform Resource Locator interpreter.
Generic addon for dabc::Worker.
Reference on dabc::Worker