ParCompMark::HostInfo Class Reference
#include <PCMHostInfo.h>
Inheritance diagram for ParCompMark::HostInfo:
Detailed Description
Class for contain host information.
Definition at line 70 of file PCMHostInfo.h.
Public Types | |
typedef ParCompMark::HostInfo::NetIDName | NetIDName |
Struct contain network layer and ID what PC can control. | |
typedef ParCompMark::Pointer< HostInfo, Mutex > | Pointer |
Type for pointer on this class. | |
Public Member Functions | |
Constructors & destructor | |
HostInfo (const std::string &name, const OutputNode::NodeType &type) | |
Creates a host with a specified name. | |
virtual | ~HostInfo () |
The destructor. | |
Getters & setters | |
Container< CPU, Mutex >::Pointer & | getCPUs () |
Getter of mCPUs. | |
Container< GPU, Mutex >::Pointer & | getGPUs () |
Getter of mGPUs. | |
Container< HostInfo::NetIDName, DummyLock >::Pointer & | getNetIDNames () |
Getter of mNetIDNames. | |
const std::string & | getPCLibVersion () const |
Getter of mPCLibVersion. | |
const PCint & | getPCNumNetworks () const |
Getter of mPCNumNetworks. | |
const std::string & | getPCVendor () const |
Getter of mPCVendor. | |
const std::string & | getPCExtensions () const |
Getter of mPCExtensions. | |
const PCint & | getVolatileFrameletLimit () const |
Getter of mVolatileFrameletLimit. | |
const PCint & | getRetainOutputLimit () const |
Getter of mRetainOutputLimit. | |
Methods | |
virtual void | refreshData () |
Refresh output node data. | |
virtual void | refreshCPUs (OutputNode::Pointer &cpus) |
Refresh CPUs data on the hosts. | |
virtual void | refreshGPUs (OutputNode::Pointer &gpus) |
Refresh GPUs data on the hosts. | |
Static Public Member Functions | |
Class methods | |
static HostInfo::Pointer | parseXML (TiXmlElement *&tiHostinfo) |
Creates a HostInfo class instance based on xml. | |
Protected Attributes | |
Variables | |
Container< CPU, Mutex >::Pointer | mCPUs |
CPUs on this host. | |
Container< GPU, Mutex >::Pointer | mGPUs |
GPUs on this host. | |
Container< HostInfo::NetIDName, DummyLock >::Pointer | mNetIDNames |
Network layers and IDs what PC can control. | |
std::string | mPCLibVersion |
PC library version. | |
PCint | mPCNumNetworks |
Number of network transprot layers available for the PC API. | |
std::string | mPCVendor |
PC vendor. | |
std::string | mPCExtensions |
Loaded PC extensions. | |
PCint | mVolatileFrameletLimit |
The maximum value of volatile framelet supported by implementation. | |
PCint | mRetainOutputLimit |
The maximum value of retain output supported by implementation. | |
Classes | |
struct | NetIDName |
Struct contain network layer and ID what PC can control. More... |
Member Typedef Documentation
typedef struct ParCompMark::HostInfo::NetIDName ParCompMark::HostInfo::NetIDName |
Struct contain network layer and ID what PC can control.
Type for pointer on this class.
Reimplemented from ParCompMark::OutputNode.
Definition at line 100 of file PCMHostInfo.h.
Constructor & Destructor Documentation
ParCompMark::HostInfo::HostInfo | ( | const std::string & | name, | |
const OutputNode::NodeType & | type | |||
) |
Creates a host with a specified name.
- Parameters:
-
[in] name Name of the host. [in] type Type of the host node.
Definition at line 39 of file PCMHostInfo.cpp.
References mCPUs, mGPUs, mNetIDNames, mPCExtensions, mPCLibVersion, mPCNumNetworks, mPCVendor, mRetainOutputLimit, mVolatileFrameletLimit, and ParCompMark::OutputNode::setAttribute().
Referenced by parseXML().
Here is the call graph for this function:
ParCompMark::HostInfo::~HostInfo | ( | ) | [virtual] |
The destructor.
This class has virtual destructor.
Definition at line 77 of file PCMHostInfo.cpp.
References ParCompMark::Pointer< T, Lock >::isNotNull(), ParCompMark::Pointer< T, Lock >::kill(), mCPUs, mGPUs, and mNetIDNames.
Here is the call graph for this function:
Member Function Documentation
Getter of mCPUs.
Returns value of mCPUs.
- Returns:
- The value of mCPUs
Definition at line 357 of file PCMHostInfo.h.
Getter of mGPUs.
Returns value of mGPUs.
- Returns:
- The value of mGPUs
Definition at line 365 of file PCMHostInfo.h.
Container< HostInfo::NetIDName, DummyLock >::Pointer & ParCompMark::HostInfo::getNetIDNames | ( | ) | [inline] |
Getter of mNetIDNames.
Returns value of mNetIDNames.
- Returns:
- The value of mNetIDNames
Definition at line 373 of file PCMHostInfo.h.
const std::string & ParCompMark::HostInfo::getPCExtensions | ( | ) | const [inline] |
Getter of mPCExtensions.
Returns value of mPCExtensions.
- Returns:
- The value of mPCExtensions
Definition at line 401 of file PCMHostInfo.h.
const std::string & ParCompMark::HostInfo::getPCLibVersion | ( | ) | const [inline] |
Getter of mPCLibVersion.
Returns value of mPCLibVersion.
- Returns:
- The value of mPCLibVersion
Definition at line 380 of file PCMHostInfo.h.
const PCint & ParCompMark::HostInfo::getPCNumNetworks | ( | ) | const [inline] |
Getter of mPCNumNetworks.
Returns value of mPCNumNetworks.
- Returns:
- The value of mPCNumNetworks
Definition at line 387 of file PCMHostInfo.h.
const std::string & ParCompMark::HostInfo::getPCVendor | ( | ) | const [inline] |
Getter of mPCVendor.
Returns value of mPCVendor.
- Returns:
- The value of mPCVendor
Definition at line 394 of file PCMHostInfo.h.
const PCint & ParCompMark::HostInfo::getRetainOutputLimit | ( | ) | const [inline] |
Getter of mRetainOutputLimit.
Returns value of mRetainOutputLimit.
- Returns:
- The value of mRetainOutputLimit
Definition at line 415 of file PCMHostInfo.h.
const PCint & ParCompMark::HostInfo::getVolatileFrameletLimit | ( | ) | const [inline] |
Getter of mVolatileFrameletLimit.
Returns value of mVolatileFrameletLimit.
- Returns:
- The value of mVolatileFrameletLimit
Definition at line 408 of file PCMHostInfo.h.
HostInfo::Pointer ParCompMark::HostInfo::parseXML | ( | TiXmlElement *& | tiHostinfo | ) | [static] |
Creates a HostInfo class instance based on xml.
- Parameters:
-
[out] tiHostinfo Description of GPU.
- Returns:
- Returns the pointer of the HostInfo class instance created based on the xml
Definition at line 95 of file PCMHostInfo.cpp.
References ParCompMark::OutputNode::DEFINITION, HostInfo(), ParCompMark::OutputNode::INFORMATION, ParCompMark::GPU::parseXML(), ParCompMark::CPU::parseXML(), ParCompMark::OutputNode::REFERENCE, and ParCompMark::OutputNode::STATISTICS.
Referenced by ParCompMark::Cluster::parseXML().
Here is the call graph for this function:
void ParCompMark::HostInfo::refreshCPUs | ( | OutputNode::Pointer & | cpus | ) | [virtual] |
Refresh CPUs data on the hosts.
- Parameters:
-
[out] cpus CPUs root.
Definition at line 394 of file PCMHostInfo.cpp.
References ParCompMark::FileSystemManager::closeFile(), ParCompMark::FileSystemManager::getInstance(), ParCompMark::Pointer< T, Lock >::getPtr(), ParCompMark::OutputNode::INFORMATION, mCPUs, ParCompMark::FileSystemManager::openFileC(), and ParCompMark::Pointer< T, Lock >::reference().
Referenced by refreshData().
Here is the call graph for this function:
void ParCompMark::HostInfo::refreshData | ( | ) | [virtual] |
Refresh output node data.
Reimplemented from ParCompMark::OutputNode.
Definition at line 262 of file PCMHostInfo.cpp.
References ParCompMark::OutputNode::createChildNode(), Except, ParCompMark::OutputNode::INFORMATION, mNetIDNames, mPCExtensions, mPCNumNetworks, mPCVendor, mRetainOutputLimit, mVolatileFrameletLimit, refreshCPUs(), and refreshGPUs().
Referenced by ParCompMark::Application::soldierOperation().
Here is the call graph for this function:
void ParCompMark::HostInfo::refreshGPUs | ( | OutputNode::Pointer & | gpus | ) | [virtual] |
Refresh GPUs data on the hosts.
- Parameters:
-
[out] gpus GPUs root.
Definition at line 520 of file PCMHostInfo.cpp.
References ParCompMark::Pointer< T, Lock >::getPtr(), ParCompMark::OutputNode::INFORMATION, mGPUs, and ParCompMark::Pointer< T, Lock >::reference().
Referenced by refreshData().
Here is the call graph for this function:
Member Data Documentation
Container< CPU, Mutex >::Pointer ParCompMark::HostInfo::mCPUs [protected] |
CPUs on this host.
- Remarks:
- This is own attribute of this class.
Definition at line 116 of file PCMHostInfo.h.
Referenced by HostInfo(), refreshCPUs(), and ~HostInfo().
Container< GPU, Mutex >::Pointer ParCompMark::HostInfo::mGPUs [protected] |
GPUs on this host.
- Remarks:
- This is own attribute of this class.
Definition at line 123 of file PCMHostInfo.h.
Referenced by HostInfo(), refreshGPUs(), and ~HostInfo().
Container< HostInfo::NetIDName, DummyLock >::Pointer ParCompMark::HostInfo::mNetIDNames [protected] |
Network layers and IDs what PC can control.
- Remarks:
- This is own attribute of this class.
Definition at line 130 of file PCMHostInfo.h.
Referenced by HostInfo(), refreshData(), and ~HostInfo().
std::string ParCompMark::HostInfo::mPCExtensions [protected] |
Loaded PC extensions.
- Remarks:
- This is own attribute of this class.
Definition at line 158 of file PCMHostInfo.h.
Referenced by HostInfo(), and refreshData().
std::string ParCompMark::HostInfo::mPCLibVersion [protected] |
PC library version.
- Remarks:
- This is own attribute of this class.
Definition at line 137 of file PCMHostInfo.h.
Referenced by HostInfo().
PCint ParCompMark::HostInfo::mPCNumNetworks [protected] |
Number of network transprot layers available for the PC API.
- Remarks:
- This is own attribute of this class.
Definition at line 144 of file PCMHostInfo.h.
Referenced by HostInfo(), and refreshData().
std::string ParCompMark::HostInfo::mPCVendor [protected] |
PC vendor.
- Remarks:
- This is own attribute of this class.
Definition at line 151 of file PCMHostInfo.h.
Referenced by HostInfo(), and refreshData().
PCint ParCompMark::HostInfo::mRetainOutputLimit [protected] |
The maximum value of retain output supported by implementation.
- Remarks:
- This is own attribute of this class.
Definition at line 172 of file PCMHostInfo.h.
Referenced by HostInfo(), and refreshData().
PCint ParCompMark::HostInfo::mVolatileFrameletLimit [protected] |
The maximum value of volatile framelet supported by implementation.
- Remarks:
- This is own attribute of this class.
Definition at line 165 of file PCMHostInfo.h.
Referenced by HostInfo(), and refreshData().
The documentation for this class was generated from the following files: