search for: mgmt_object

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

Did you mean: get_object
2010 Apr 19
1
[PATCH matahari] Removes all code for the previous CPUWrapper class.
...ot; << 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->set_cpunum(cpunum); - mgmt_object->set...
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...per*>::iterator iter = nics.begin(); + iter != nics.end(); + iter++) { - // update all statistics - processors.update_load_averages(); - sleep(5); - } -} - -void HostWrapper::setupQMFObjects(ManagementAgent *agent) -{ - // Set up Host object - mgmt_object = new _qmf::Host(agent, this); - agent->addObject(mgmt_object); - syncQMFHostObject(); - - processors.setup(agent, this); - - // Iterate over list and set up CPU objects - for (vector<CPUWrapper*>::iterator iter = cpus.begin(); - iter!= cpus.end(); - iter++)...
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
....netmask << endl; - output << "Broadcast: " << nic.broadcast << endl; - output << "Bandwidth: " << nic.bandwidth << endl; - return output; -} - -void NICWrapper::setupQMFObject(ManagementAgent *agent, Manageable *parent) -{ - mgmt_object = new _qmf::NIC(agent, this, parent); - agent->addObject(mgmt_object); - syncQMFObject(); -} - -void NICWrapper::cleanupQMFObject(void) -{ - mgmt_object->resourceDestroy(); -} - -void NICWrapper::syncQMFObject(void) -{ - mgmt_object->set_interface(interfaceName); - mgmt_obje...
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 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...ator<<(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 fillCPUInfo(vector <CPUWrapper*> &cpus, Managem...
2010 Mar 16
0
[PATCH] Added the new Processors agent.
..._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 06bdbf0..148c91f 100644 --- a/src/host.h +++ b/sr...
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 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.