ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Classes | Namespaces | Functions
rsyncAsyncProcess.hpp File Reference

daq::RsyncAsyncProcess and related class declarations. More...

#include <daq/config.hpp>
#include <chrono>
#include <optional>
#include <string>
#include <vector>
#include <boost/signals2/signal.hpp>
#include <daq/process/asyncProcess.hpp>

Go to the source code of this file.

Classes

struct  daq::RsyncOptions
 Options controlling rsync invocation. More...
 
struct  daq::RsyncProgress
 Describes file transfer progress,. More...
 
class  daq::RsyncAsyncProcessIf
 More specialized version for rsync which also monitors transfer progress. More...
 
class  daq::RsyncAsyncProcess
 Represents an rsync process as an asynchronous operation. More...
 

Namespaces

 daq
 

Functions

std::optional< RsyncProgress > daq::ParseRsyncProgress (std::string const &line) noexcept
 Parse progress update from rsync. More...
 

Detailed Description

daq::RsyncAsyncProcess and related class declarations.

Definition in file rsyncAsyncProcess.hpp.


Class Documentation

◆ daq::RsyncOptions

struct daq::RsyncOptions

Options controlling rsync invocation.

Definition at line 28 of file rsyncAsyncProcess.hpp.

Class Members
optional< unsigned > bw_limit Enables rate-limiting in kb/s.
optional< bool > inplace –inplace/–no-inplace
optional< string > rsync Binary to use.
optional< seconds > timeout I/O timeout.
optional< bool > whole_file Transfer with/without delta xfer algorithm.

◆ daq::RsyncProgress

struct daq::RsyncProgress

Describes file transfer progress,.

Definition at line 55 of file rsyncAsyncProcess.hpp.

Class Members
float progress Progress as fraction of 1 (complete == 1.0)
seconds remaining Estimated remaining time.
float speed Transfer speed in bytes/sec.
uint64_t transferred Number of transferred bytes.