XRootD
Loading...
Searching...
No Matches
XrdCl::RecorderFactory Class Reference

XrdCl recorder plug-in factory. More...

#include <XrdClRecorderPlugin.hh>

+ Inheritance diagram for XrdCl::RecorderFactory:
+ Collaboration diagram for XrdCl::RecorderFactory:

Public Member Functions

 RecorderFactory (const std::map< std::string, std::string > *config)
 
virtual ~RecorderFactory ()
 Destructor.
 
virtual FilePlugInCreateFile (const std::string &url)
 Create a file plug-in for the given URL.
 
virtual FileSystemPlugInCreateFileSystem (const std::string &url)
 Create a file system plug-in for the given URL.
 
- Public Member Functions inherited from XrdCl::PlugInFactory
virtual ~PlugInFactory ()
 Destructor.
 
virtual FilePlugInCreateFile (const std::string &url)=0
 Create a file plug-in for the given URL.
 
virtual FileSystemPlugInCreateFileSystem (const std::string &url)=0
 Create a file system plug-in for the given URL.
 

Detailed Description

XrdCl recorder plug-in factory.

Definition at line 32 of file XrdClRecorderPlugin.hh.

Constructor & Destructor Documentation

◆ RecorderFactory()

XrdCl::RecorderFactory::RecorderFactory ( const std::map< std::string, std::string > *  config)
inline

Constructor

Parameters
configmap containing configuration parameters

Definition at line 40 of file XrdClRecorderPlugin.hh.

41 {
42 if( config )
43 {
44 auto itr = config->find( "output" );
45 Recorder::SetOutput( itr != config->end() ? itr->second : "" );
46 }
47 }
static void SetOutput(const std::string &cfgpath)

References XrdCl::Recorder::SetOutput().

+ Here is the call graph for this function:

◆ ~RecorderFactory()

virtual XrdCl::RecorderFactory::~RecorderFactory ( )
inlinevirtual

Destructor.

Definition at line 52 of file XrdClRecorderPlugin.hh.

53 {
54 }

Member Function Documentation

◆ CreateFile()

virtual FilePlugIn * XrdCl::RecorderFactory::CreateFile ( const std::string &  url)
inlinevirtual

Create a file plug-in for the given URL.

Implements XrdCl::PlugInFactory.

Definition at line 59 of file XrdClRecorderPlugin.hh.

60 {
61 std::unique_ptr<Recorder> ptr( new Recorder() );
62 if( !ptr->IsValid() )
63 return nullptr;
64 return static_cast<FilePlugIn*>( ptr.release() );
65 }

◆ CreateFileSystem()

virtual FileSystemPlugIn * XrdCl::RecorderFactory::CreateFileSystem ( const std::string &  url)
inlinevirtual

Create a file system plug-in for the given URL.

Implements XrdCl::PlugInFactory.

Definition at line 70 of file XrdClRecorderPlugin.hh.

71 {
72 Log* log = DefaultEnv::GetLog();
73 log->Error(1, "FileSystem plugin implementation not supported");
74 return static_cast<FileSystemPlugIn*>(0);
75 }
static Log * GetLog()
Get default log.
XrdSysError Log
Definition XrdConfig.cc:111

References XrdCl::Log::Error(), and XrdCl::DefaultEnv::GetLog().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: