10 #ifndef DP3_COMMON_NODEDESC_H_
11 #define DP3_COMMON_NODEDESC_H_
44 void setName(
const std::string& name) { itsName = name; }
51 void addFileSys(
const std::string& fsName,
const std::string& mountPoint);
54 void write(std::ostream& os,
const std::string& prefix)
const;
57 const std::string&
getName()
const {
return itsName; }
63 const std::vector<std::string>&
getFileSys()
const {
return itsFileSys; }
77 std::vector<std::string> itsFileSys;
78 std::vector<std::string> itsMounts;
Description of a node in a cluster.
Definition: NodeDesc.h:31
NodeDesc()
Definition: NodeDesc.h:38
void write(std::ostream &os, const std::string &prefix) const
Write it in parset format.
const std::string & getName() const
Get the name.
Definition: NodeDesc.h:57
NodeType
Define the node types.
Definition: NodeDesc.h:34
@ Any
Definition: NodeDesc.h:34
@ Storage
Definition: NodeDesc.h:34
@ Head
Definition: NodeDesc.h:34
@ Compute
Definition: NodeDesc.h:34
void setType(NodeType type)
Set node type.
Definition: NodeDesc.h:47
std::string findFileSys(const std::string &fileName) const
NodeType getType() const
Get the type.
Definition: NodeDesc.h:60
NodeDesc(const ParameterSet &)
Construct from the given parameterset.
void setName(const std::string &name)
Set node name.
Definition: NodeDesc.h:44
const std::vector< std::string > & getFileSys() const
Get the file systems it has access to.
Definition: NodeDesc.h:63
const std::vector< std::string > & getMountPoints() const
Get the mount points of the file systems.
Definition: NodeDesc.h:66
void addFileSys(const std::string &fsName, const std::string &mountPoint)
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53