ParCompMark::Cluster Class Reference
#include <PCMCluster.h>
Inheritance diagram for ParCompMark::Cluster:
Detailed Description
Class contain hosts.Description of the physical grid.
Definition at line 64 of file PCMCluster.h.
Public Member Functions | |
Constructors & destructor | |
Cluster () | |
Default constructor. | |
virtual | ~Cluster () |
The destructor. | |
Getters & setters | |
Container< HostInfo, Mutex >::Pointer & | getHosts () |
Getter of mHosts. | |
OutputNode::Pointer & | getClusterDescription () |
Getter of mClusterDescription. | |
Methods | |
virtual void | refreshData () |
Refresh output node data. | |
virtual std::string | serialize2Squirrel () |
Serialize the cluster to Squirrel structure code snipplet. | |
virtual std::string | serialize2XML () |
Serialize the cluster to XML. | |
Static Public Member Functions | |
Class methods | |
static Cluster * | parseXML (const std::string &strXml) |
Creates a Cluster class instance based on xml. | |
Protected Attributes | |
Variables | |
Container< HostInfo, Mutex >::Pointer | mHosts |
Hosts in the cluster. | |
OutputNode::Pointer | mClusterDescription |
Cluster pointer. |
Constructor & Destructor Documentation
ParCompMark::Cluster::Cluster | ( | ) |
Default constructor.
Definition at line 41 of file PCMCluster.cpp.
References mHosts.
Referenced by parseXML().
ParCompMark::Cluster::~Cluster | ( | ) | [virtual] |
Member Function Documentation
OutputNode::Pointer & ParCompMark::Cluster::getClusterDescription | ( | ) | [inline] |
Getter of mClusterDescription.
Returns value of mClusterDescription.
- Returns:
- The value of mClusterDescription
Definition at line 236 of file PCMCluster.h.
Getter of mHosts.
Returns value of mHosts.
- Returns:
- The value of mHosts
Definition at line 229 of file PCMCluster.h.
Cluster * ParCompMark::Cluster::parseXML | ( | const std::string & | strXml | ) | [static] |
Creates a Cluster class instance based on xml.
- Parameters:
-
[in] strXml Description of system.
- Returns:
- Returns the pointer of the Cluster class instance created based on the xml
Definition at line 62 of file PCMCluster.cpp.
References Cluster(), ParCompMark::Pointer< T, Lock >::isNotNull(), mHosts, and ParCompMark::HostInfo::parseXML().
Here is the call graph for this function:
void ParCompMark::Cluster::refreshData | ( | ) | [virtual] |
Refresh output node data.
Definition at line 105 of file PCMCluster.cpp.
References ParCompMark::OutputNode::INFORMATION, ParCompMark::Pointer< T, Lock >::isNotNull(), ParCompMark::Pointer< T, Lock >::kill(), mClusterDescription, and mHosts.
Referenced by serialize2XML().
Here is the call graph for this function:
std::string ParCompMark::Cluster::serialize2Squirrel | ( | ) | [virtual] |
Serialize the cluster to Squirrel structure code snipplet.
- Returns:
- Serialized Squirrel structure code snipplet.
Definition at line 121 of file PCMCluster.cpp.
References mHosts.
std::string ParCompMark::Cluster::serialize2XML | ( | ) | [virtual] |
Serialize the cluster to XML.
- Returns:
- Serialized cluster.
Definition at line 144 of file PCMCluster.cpp.
References mClusterDescription, and refreshData().
Here is the call graph for this function:
Member Data Documentation
Cluster pointer.
- Remarks:
- This is own attribute of this class.
Definition at line 95 of file PCMCluster.h.
Referenced by refreshData(), and serialize2XML().
Container< HostInfo, Mutex >::Pointer ParCompMark::Cluster::mHosts [protected] |
Hosts in the cluster.
- Remarks:
- This is own attribute of this class.
Definition at line 88 of file PCMCluster.h.
Referenced by Cluster(), parseXML(), refreshData(), and serialize2Squirrel().
The documentation for this class was generated from the following files: