search for: hostwrapper

Displaying 8 results from an estimated 8 matches for "hostwrapper".

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 s...
2010 Apr 19
1
[PATCH matahari] Removes all code for the previous CPUWrapper class.
...include "qmf/com/redhat/matahari/CPU.h" - -using namespace qpid::management; -using namespace std; - -using qpid::management::Manageable; - -class CPUWrapper : public Manageable -{ - friend ostream& operator<<(ostream &output, const CPUWrapper& cpu); - friend class HostWrapper; - - // CPU Parameters - int cpunum; - int corenum; - int numcores; - - int model; - int family; - int cpuid_lvl; - double speed; - int cache; - - string vendor; - string flags; - - // QMF related fields - ManagementAgent *agent; - qmf::com::redhat::matahar...
2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...+1,4 @@ -/* Copyright (C) 2009 Red Hat, Inc. +/* host.cpp - Copyright (C) 2009 Red Hat, Inc. * Written by Arjun Roy <arroy at redhat.com> * * This program is free software; you can redistribute it and/or modify @@ -49,17 +49,17 @@ ostream& operator<<(ostream &output, const HostWrapper& host) vector<CPUWrapper*> cpus = host.cpus; vector<NICWrapper*> nics = host.nics; - for (vector<CPUWrapper*>::iterator iter = cpus.begin(); - iter!= cpus.end(); - iter++) { + for (vector<CPUWrapper*>::iterator iter = cpus.begin(); + iter!= c...
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.
...ated_file_list) -$(first): 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/s...
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
0
[PATCH matahari] Created the NetworkDevice agent.
...matahari/NIC.h" -#include "hal.h" - -using namespace qpid::management; -using namespace std; - -using qpid::management::Manageable; - -class NICWrapper : public Manageable -{ - friend ostream& operator <<(ostream &output, const NICWrapper& nic); - friend class HostWrapper; - - // NIC Parameters - string interfaceName; - string macaddr; - string ipaddr; - string netmask; - string broadcast; - int bandwidth; - - // QMF related fields - ManagementAgent *agent; - qmf::com::redhat::matahari::NIC *mgmt_object; - - // Methods to put up / ta...
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.