Confdump Agent
1.4.0
|
Abstraction layer between Confdump/Sys and the Linux-specific functions. More...
#include <LinuxDumper.hpp>
Classes | |
struct | Impl |
class | SystemContext |
Context of the access to this system. More... | |
Public Member Functions | |
LinuxDumper () | |
virtual | ~LinuxDumper () |
SystemContext & | systemContext () |
Returns the current SystemContext. | |
QStringList | listTables () |
Result | queryTable (QString table) |
QString | computerIdentifier () |
Private Member Functions | |
virtual QStringList | doListTables () |
virtual Result | doQueryTable (QString table) |
virtual QString | doComputerIdentifier () |
Globally identify this computer. | |
Result | allConfigurationFiles () |
Result | allProcesses () |
Result | allEnvironmentVariables () const |
Result | operatingSystem () const |
Result | allSockets () |
Result | allNetworkInterfaces () const |
Result | allMountEntries (const boost::filesystem::path &fstab_path) |
Result | allInittabEntries () |
Private Attributes | |
boost::shared_ptr< Impl > | impl_ |
Abstraction layer between Confdump/Sys and the Linux-specific functions.
This class provides a query-based interface to the general Confdump/Sys code and performs the calls to the Linux-specific objects to fill the tables that are returned. These objects reside in the Confdump::System::Linux namespace.
Note : the "query" part is currently limited to specifying a table name.
Definition at line 44 of file LinuxDumper.hpp.
Definition at line 80 of file LinuxDumper.cpp.
References Confdump::System::Linux::allBlockDevices(), allConfigurationFiles(), allEnvironmentVariables(), Confdump::System::Linux::InitScript::allInitScripts(), allInittabEntries(), allMountEntries(), allNetworkInterfaces(), allProcesses(), Confdump::System::Linux::RcdScript::allRcdScripts(), allSockets(), impl_, operatingSystem(), and Confdump::System::Linux::Uptime::uptime().
Confdump::System::LinuxDumper::~LinuxDumper | ( | ) | [virtual] |
Definition at line 99 of file LinuxDumper.cpp.
Result Confdump::System::LinuxDumper::allConfigurationFiles | ( | ) | [private] |
Definition at line 223 of file LinuxDumper.cpp.
References Confdump::System::LinuxDumper::SystemContext::allConfigurationFiles(), and systemContext().
Referenced by LinuxDumper().
Result Confdump::System::LinuxDumper::allEnvironmentVariables | ( | ) | const [private] |
Definition at line 180 of file LinuxDumper.cpp.
Referenced by LinuxDumper().
Result Confdump::System::LinuxDumper::allInittabEntries | ( | ) | [private] |
Definition at line 236 of file LinuxDumper.cpp.
Referenced by LinuxDumper().
Result Confdump::System::LinuxDumper::allMountEntries | ( | const boost::filesystem::path & | fstab_path | ) | [private] |
Definition at line 228 of file LinuxDumper.cpp.
Referenced by LinuxDumper().
Result Confdump::System::LinuxDumper::allNetworkInterfaces | ( | ) | const [private] |
Definition at line 216 of file LinuxDumper.cpp.
References Confdump::Result::push_back().
Referenced by LinuxDumper().
Result Confdump::System::LinuxDumper::allProcesses | ( | ) | [private] |
Definition at line 160 of file LinuxDumper.cpp.
Referenced by LinuxDumper().
Result Confdump::System::LinuxDumper::allSockets | ( | ) | [private] |
Definition at line 208 of file LinuxDumper.cpp.
Referenced by LinuxDumper().
QString Confdump::Dumper::computerIdentifier | ( | ) | [inherited] |
Definition at line 41 of file Dumper.cpp.
References Confdump::Dumper::doComputerIdentifier().
QString Confdump::System::LinuxDumper::doComputerIdentifier | ( | ) | [private, virtual] |
Globally identify this computer.
Current implementation: the MAC address of eth0.
Reimplemented from Confdump::Dumper.
Definition at line 103 of file LinuxDumper.cpp.
References Confdump::System::Linux::NetworkInterface::macAddress.
QStringList Confdump::System::LinuxDumper::doListTables | ( | ) | [private, virtual] |
Default implementation : return an empty list.
Reimplemented from Confdump::Dumper.
Definition at line 196 of file LinuxDumper.cpp.
References impl_.
Result Confdump::System::LinuxDumper::doQueryTable | ( | QString | table | ) | [private, virtual] |
QStringList Confdump::Dumper::listTables | ( | ) | [inherited] |
Definition at line 31 of file Dumper.cpp.
References Confdump::Dumper::doListTables().
Result Confdump::System::LinuxDumper::operatingSystem | ( | ) | const [private] |
Definition at line 188 of file LinuxDumper.cpp.
References Confdump::Result::push_back().
Referenced by LinuxDumper().
Result Confdump::Dumper::queryTable | ( | QString | table | ) | [inherited] |
Definition at line 36 of file Dumper.cpp.
References Confdump::Dumper::doQueryTable().
Returns the current SystemContext.
Definition at line 108 of file LinuxDumper.cpp.
References impl_.
Referenced by allConfigurationFiles().
boost::shared_ptr< Impl > Confdump::System::LinuxDumper::impl_ [private] |
Definition at line 115 of file LinuxDumper.hpp.
Referenced by doListTables(), doQueryTable(), LinuxDumper(), and systemContext().