|
XRootD
|
Execute queries given as a commandline. More...
#include <XrdClFSExecutor.hh>
Collaboration diagram for XrdCl::FSExecutor:Public Types | |
| typedef XRootDStatus(* | Command) (FileSystem *fs, Env *env, const CommandParams &args) |
| Definition of a command. More... | |
| typedef std::vector< std::string > | CommandParams |
| Definition of command argument list. More... | |
Public Member Functions | |
| FSExecutor (const URL &url, Env *env=0) | |
| ~FSExecutor () | |
| Destructor. More... | |
| bool | AddCommand (const std::string &name, Command command) |
| XRootDStatus | Execute (const CommandParams &args) |
| Env * | GetEnv () |
| Get the environment. More... | |
Execute queries given as a commandline.
Definition at line 34 of file XrdClFSExecutor.hh.
| typedef XRootDStatus(* XrdCl::FSExecutor::Command) (FileSystem *fs, Env *env, const CommandParams &args) |
Definition of a command.
Definition at line 45 of file XrdClFSExecutor.hh.
| typedef std::vector<std::string> XrdCl::FSExecutor::CommandParams |
Definition of command argument list.
Definition at line 40 of file XrdClFSExecutor.hh.
Constructor
| url | the server that the executor should contact |
| env | execution environment, the executor takes ownership over it |
Definition at line 31 of file XrdClFSExecutor.cc.
References XrdCl::URL::GetURL(), and XrdCl::Env::PutString().
Here is the call graph for this function:| XrdCl::FSExecutor::~FSExecutor | ( | ) |
Destructor.
Definition at line 46 of file XrdClFSExecutor.cc.
| bool XrdCl::FSExecutor::AddCommand | ( | const std::string & | name, |
| Command | command | ||
| ) |
Add a command to the set of known commands
| name | name of the command |
| command | function pointer |
Definition at line 55 of file XrdClFSExecutor.cc.
References XrdCl::AppMsg, XrdCl::Log::Error(), and XrdCl::DefaultEnv::GetLog().
Referenced by CreateExecutor().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FSExecutor::Execute | ( | const CommandParams & | args | ) |
Execute the given commandline
| args | : arguments for the commandline to be executed, first of which is the command name |
Definition at line 69 of file XrdClFSExecutor.cc.
References XrdCl::AppMsg, XrdCl::Log::Debug(), XrdCl::Log::Dump(), XrdCl::Log::Error(), XrdCl::errUnknownCommand, XrdCl::DefaultEnv::GetLog(), and XrdCl::stError.
Referenced by ExecuteCommand(), and ExecuteInteractive().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Get the environment.
Definition at line 83 of file XrdClFSExecutor.hh.
Referenced by ExecuteCommand(), and ExecuteInteractive().
Here is the caller graph for this function: