|
Public Types |
typedef std::map< int, Port,
std::less< uint64_t > > | HashTable |
| | Shorthand implementation of the std::map used to keep track of this node's ports.
|
| enum | NodeType |
| | The type of an infiniband node, either a host channel adapter (HCA) or switch.
|
Public Member Functions |
|
| Node (ib_portid_t defaultPath) |
| | Constructor with a predefined path.
|
|
| Node (const Node &rhs) |
| | Copy constructor.
|
|
Node & | operator= (const Node &rhs) |
| | Assignment operator.
|
| bool | operator== (const Node &rhs) |
| | Equality operator.
|
| bool | operator!= (const Node &rhs) |
| | Inequality operator.
|
|
| ~Node () |
| | Default destructor.
|
| uint64_t | getGuid () const |
| | Get this node's GUID.
|
| const ib_portid_t * | getPath () const |
| | get this node's path
|
| uint32_t | getLid () const |
| int | getInfo () |
| | Query this node for relevant information.
|
| Node | handlePort (uint32_t portnum) |
| | Check the specified port for a remote node.
|
| NodeType | getType () |
| | Get this Node's type.
|
| int | extendDirectedRoutePath (int nextport) |
| | Extend this node's directed route path to the specified port.
|
| uint32_t | getNumPorts () |
| | Get the number of ports available for this node.
|
| int | getLocalPort () |
| | Get this node's local port.
|
|
void | query () |
| | Update all the port counters for this node's ports.
|
| void | addInfo (BambooLib::XMLElement *myDevice) |
| | Append this node's information.
|
| void | setHostname (const std::string &hostname) |
| | Set this node's hostname.
|
| const std::string & | getHostname () |
| | Get the hostname for this Node.
|
Static Public Member Functions |
| static const char * | fountain_convert (const NodeType &t) |
| | Convert a NodeType into a c-string.
|
| static std::string | getNodeName (uint64_t nodeguid) |
| | Converts a guid into a hexadecimal string 16 characters long padded with zeros.
|
| static std::string | getNodeName (const Node &node) |
| | Converts a Node objects guid into a hexadecimal string 16 characters long padded with zeros.
|
Private Attributes |
|
HashTable | ports |
| | A hash table of the Infiniband nodes connected to this node. The key is the port number, and the value is the guid of the remote node.
|
| ib_portid_t | path |
| NodeType | type |
| uint32_t | numports |
| uint64_t | nodeguid |
| uint32_t | lid |
| int | localport |
| uint64_t | portguid |
| std::string | nodeDescription |
| std::string | hostname_ |