search for: processorsagent

Displaying 13 results from an estimated 13 matches for "processorsagent".

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 May 24
0
[PATCH matahari] Moves the CPU properties into the Host API space.
...----- src/processors.cpp | 63 ------------------------------------------- src/processors.h | 46 ------------------------------- src/processorslistener.h | 29 ------------------- src/qmf/hostagent.cpp | 9 ++++++ src/qmf/hostagent.h | 1 + src/qmf/processorsagent.cpp | 49 --------------------------------- src/qmf/processorsagent.h | 50 ---------------------------------- src/schema.xml | 16 +++++------ 16 files changed, 64 insertions(+), 287 deletions(-) delete mode 100644 src/processors.cpp delete mode 100644 src/processors.h dele...
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...6 +25,7 @@ #include "cpu.h" #include "nic.h" +#include "processors.h" using namespace qpid::management; using namespace std; @@ -49,6 +50,8 @@ class HostWrapper : public Manageable vector<CPUWrapper*> cpus; vector<NICWrapper*> nics; + ProcessorsAgent processors; + // QMF related fields ManagementAgent *agent; qmf::com::redhat::matahari::Host *mgmt_object; diff --git a/src/processors.cpp b/src/processors.cpp new file mode 100644 index 0000000..d1b1f44 --- /dev/null +++ b/src/processors.cpp @@ -0,0 +1,86 @@ +/* processor.cpp - Copy...
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 15
1
[PATCH matahari] Refactored the Host agent.
Replaced the previous HostWrapper class with the new HostAgent class, which more closely resembles the style of the ProcessorsAgent class. Deleted the HostWrapper class entirely. Refactored the daemon entry point to reduce the number of methods invoked in order to start or stop the HostAgent instance. Moved the NICWrapper's setupQMFObject method from private to public so that it can be invoked by the HostAgent. This is a...
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 Apr 19
1
[PATCH matahari] Replaces the existing HAL code for ProcessorAgent with udev.
...lt;pcre.h> -#include "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(); + i...
2010 May 27
1
[PATCH matahari] Introduces a multiplexer for taking requests and mapping them to APIs.
...]) -AC_OUTPUT(Makefile src/Makefile) +AC_OUTPUT(Makefile src/Makefile src/tests/Makefile) diff --git a/src/Makefile.am b/src/Makefile.am index 498ee72..7b5245a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,7 +32,9 @@ matahari_SOURCES = \ qmf/hostagent.cpp \ qmf/hostagent.h \ qmf/processorsagent.cpp \ - qmf/processorsagent.h + qmf/processorsagent.h \ + virtio/multiplexer.cpp \ + virtio/multiplexer.h $(generated_file_list): $(generated_file_list) @@ -44,6 +46,6 @@ CLEANFILES = $(generated_file_list) $(first) matahari_CPPFLAGS = -fno-strict-aliasing matahari_LDFLAGS = -L/usr/local/l...
2010 Apr 21
1
[PATCH matahari] Created a new platform-abstraction layer named Platform.
...;fstream> -#include <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 =...
2010 Apr 19
1
[PATCH matahari] Removes all code for the previous CPUWrapper class.
This class has been replaced by the ProcessorsAgent. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- src/Makefile.am | 4 - src/cpu.cpp | 216 ------------------------------------------------------- src/cpu.h | 111 ---------------------------- src/host.cpp | 24 ------ src/host.h | 3 - src/schema.xml...
2010 May 13
0
[PATCH matahari] Moving QMF functionality into a transport layer.
...artbeat event occurs. + */ +class HeartbeatListener +{ + public: + virtual void heartbeat() = 0; +}; -class HostAgent : public Manageable +/* + Host represents the public contract for the set of host APIs. + */ +class Host { private: - qmf::com::redhat::matahari::Host* management_object; - ProcessorsAgent processors; - vector<NetworkDeviceAgent> networkdevices; + string _uuid; + string _hostname; + string _hypervisor; + string _architecture; + unsigned int _memory; + bool _beeping; public: - HostAgent() {} - virtual ~HostAgent() {} + void set_uuid(...
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...mf/com/redhat/matahari/Host.h" -#include "nic.h" +#include "networkdevice.h" #include "processors.h" using namespace qpid::management; @@ -39,7 +39,7 @@ class HostAgent : public Manageable private: qmf::com::redhat::matahari::Host* management_object; ProcessorsAgent processors; - vector<NICWrapper*> nics; + vector<NetworkDeviceAgent> networkdevices; public: HostAgent() {} diff --git a/src/linux_platform.cpp b/src/linux_platform.cpp index 26418f5..fbcfdb9 100644 --- a/src/linux_platform.cpp +++ b/src/linux_platform.cpp @@ -18,9 +18,14 @@...
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.