xrootd
|
Public Member Functions | |
bool | Write (std::unique_ptr< Action > action) |
bool | Open () |
bool | IsValid () |
void | SetPath (const std::string &path) |
Static Public Member Functions | |
static Output & | Instance () |
static Output & | Get () |
Private Member Functions | |
Output () | |
Constructor. | |
Output (const Output &)=delete | |
Output (Output &&)=delete | |
Output & | operator= (const Output &)=delete |
Output & | operator= (Output &&)=delete |
~Output () | |
Destructor. | |
Private Attributes | |
std::mutex | mtx |
int | fd |
std::string | path |
Singleton object used for thread-safe writing the recored data into a csv file
|
inlineprivate |
Constructor.
|
privatedelete |
|
privatedelete |
|
inlineprivate |
Destructor.
References XrdCl::AppMsg, close, fd, XrdCl::DefaultEnv::GetLog(), and XrdCl::Log::Warning().
|
inlinestatic |
References XrdCl::Recorder::output.
Referenced by Instance(), and XrdCl::Recorder::SetOutput().
|
inlinestatic |
Get instance, make sure the output file is open
References XrdCl::AppMsg, XrdCl::Log::Error(), Get(), XrdCl::DefaultEnv::GetLog(), IsValid(), mtx, Open(), and XrdCl::Recorder::output.
|
inline |
References fd.
Referenced by Instance(), and XrdCl::Recorder::IsValid().
|
inline |
Open the csv files
path | : path to the csv file |
References XrdCl::AppMsg, fd, XrdCl::DefaultEnv::GetLog(), open, path, and XrdCl::Log::Warning().
Referenced by Instance().
|
inline |
References path.
Referenced by XrdCl::Recorder::SetOutput().
|
inline |
References XrdCl::AppMsg, fd, XrdCl::DefaultEnv::GetLog(), mtx, XrdCl::Log::Warning(), and write.
Referenced by XrdCl::Recorder::RecordHandler::HandleResponse(), and XrdCl::Recorder::RecordHandler::HandleResponseWithHosts().
|
private |
Referenced by Instance(), and Write().