search for: managementagent

Displaying 14 results from an estimated 14 matches for "managementagent".

2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...tput, const CPUWrapper& cpu) +ostream& operator<<(ostream& output, const CPUWrapper& cpu) { output << "Processor" << endl; output << "CPU #: " << cpu.cpunum << endl; @@ -61,7 +61,7 @@ void CPUWrapper::setupQMFObject(ManagementAgent *agent, Manageable *parent) { mgmt_object = new _qmf::CPU(agent, this, parent); agent->addObject(mgmt_object); - syncQMFObject(); + syncQMFObject(); } void CPUWrapper::cleanupQMFObject(void) @@ -85,7 +85,7 @@ void CPUWrapper::syncQMFObject(void) /** * void fillCPUIn...
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...index ac04f47..885068b 100644 --- a/src/host.cpp +++ b/src/host.cpp @@ -37,213 +37,80 @@ using namespace std; using qpid::management::Manageable; namespace _qmf = qmf::com::redhat::matahari; -ostream& operator<<(ostream &output, const HostWrapper& host) +void +HostAgent::setup(ManagementAgent* agent) { - output << "Node" << endl << endl; - output << "UUID: " << host.uuid << endl; - output << "Hostname: " << host.hostname << endl; - output << "Memory: " << host.memory &l...
2010 May 19
2
Squashed commits...
Refactoring the previous patch ended up creating two deltas. This patch pushes them both together into a single commit.
2010 Apr 19
1
[PATCH matahari] Removes all code for the previous CPUWrapper class.
...lt; endl; - output << "Cache (kB): " << cpu.cache << endl; - output << "Vendor: " << cpu.vendor << endl; - output << "Flags: " << cpu.flags << endl; - return output; -} - -void CPUWrapper::setupQMFObject(ManagementAgent *agent, Manageable *parent) -{ - mgmt_object = new _qmf::CPU(agent, this, parent); - agent->addObject(mgmt_object); - syncQMFObject(); -} - -void CPUWrapper::cleanupQMFObject(void) -{ - mgmt_object->resourceDestroy(); -} - -void CPUWrapper::syncQMFObject(void) -{ - mgmt_object-...
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...c5a8f..34d4550 100644 --- a/src/host.cpp +++ b/src/host.cpp @@ -25,6 +25,7 @@ #include <sys/utsname.h> #include "host.h" +#include "platform.h" #include "qmf/com/redhat/matahari/Host.h" using namespace qpid::management; @@ -41,6 +42,14 @@ HostAgent::setup(ManagementAgent* agent) // discover the aspects of the host processors.setup(agent, this); + networkdevices = Platform::instance()->get_network_devices(); + + for(vector<NetworkDeviceAgent>::iterator iter = networkdevices.begin(); + iter != networkdevices.end(); + iter++) + { +...
2010 Mar 22
1
Resend with loadavg as a statistic...
After some feedback from Slow, mainly about the load_average API being a method rather than an ongoing statistic. So I've converted the code over to instead update the load average statistic on a regular basis.
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...schema.xml +$(first): schema.xml $(generated_file_list) qmf-gen -o ./qmf ./schema.xml BUILT_SOURCES = $(generated_file_list) $(first) diff --git a/src/host.cpp b/src/host.cpp index 0d22211..c81d2f1 100644 --- a/src/host.cpp +++ b/src/host.cpp @@ -78,6 +78,8 @@ void HostWrapper::setupQMFObjects(ManagementAgent *agent) agent->addObject(mgmt_object); syncQMFHostObject(); + processors.setup(agent); + // Iterate over list and set up CPU objects for (vector<CPUWrapper*>::iterator iter = cpus.begin(); iter!= cpus.end(); diff --git a/src/host.h b/src/host.h index 06bd...
2010 Mar 22
1
Small change and resend...
This patch includes one small change: the Processors::get_load_average() method is now const since it does not change the object's state.
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were removed with this patch. So, I'm pushing an updated patch that contains none of the HAL code in it.
2010 May 13
0
[PATCH matahari] Moving QMF functionality into a transport layer.
...tsname.h> - #include "host.h" -#include "platform.h" -#include "qmf/com/redhat/matahari/Host.h" -using namespace qpid::management; using namespace std; -using qpid::management::Manageable; -namespace _qmf = qmf::com::redhat::matahari; - void -HostAgent::setup(ManagementAgent* agent) +Host::set_uuid(const string uuid) { - management_object = new _qmf::Host(agent, this); - agent->addObject(management_object); - - // discover the aspects of the host - processors.setup(agent, this); - networkdevices = Platform::instance()->get_network_devices(); - - for(vector...
2010 May 25
3
Supercedes previous patch...
The previous patch, for whatever reason, fails to apply on top of tip. This patch is reimplemented and, hopefully, fixed.
2010 Apr 19
1
[PATCH matahari] Replaces the existing HAL code for ProcessorAgent with udev.
...de "hal.h" -#include "processors.h" +// TODO remove this wrapper once rhbz#583747 is fixed +extern "C" { +#include <libudev.h> +} using namespace std; namespace _qmf = qmf::com::redhat::matahari; -extern DBusError dbus_error; - void ProcessorsAgent::setup(ManagementAgent* agent, Manageable* parent) { @@ -43,17 +37,79 @@ ProcessorsAgent::setup(ManagementAgent* agent, Manageable* parent) management_object = new _qmf::Processors(agent, this, parent); agent->addObject(management_object); - LibHalContext* context = get_hal_ctx(); + int core_count = 0; + s...
2010 May 24
0
[PATCH matahari] Moves the CPU properties into the Host API space.
.../hostagent.cpp \ - qmf/hostagent.h \ - qmf/processorsagent.cpp \ - qmf/processorsagent.h + qmf/hostagent.h $(generated_file_list): $(generated_file_list) diff --git a/src/host.cpp b/src/host.cpp index 29b84ec..6d9a1fe 100644 --- a/src/host.cpp +++ b/src/host.cpp @@ -99,14 +99,19 @@ Host::setup(ManagementAgent* agent, HostAgent* hostAgent) void Host::update() { - _processors.update(); - for(vector<NetworkDeviceAgent>::iterator iter = _networkdevices.begin(); iter != _networkdevices.end(); iter++) { iter->update(); } + + for(set<HostListener*>::iterato...
2010 Apr 21
1
[PATCH matahari] Created a new platform-abstraction layer named Platform.
...<iostream> -#include <pcre.h> - -// TODO remove this wrapper once rhbz#583747 is fixed -extern "C" { -#include <libudev.h> -} +#include "platform.h" using namespace std; namespace _qmf = qmf::com::redhat::matahari; @@ -37,79 +30,10 @@ ProcessorsAgent::setup(ManagementAgent* agent, Manageable* parent) management_object = new _qmf::Processors(agent, this, parent); agent->addObject(management_object); - int core_count = 0; - string model = "unknown"; - - struct udev* udev = udev_new(); - struct udev_enumerate* enumerator = udev_enumerate_new(ude...