#include <InfinibandPort.h>
Public Member Functions | |
| Port (const Node *node, int portnum) | |
| Default constructor. | |
| Port (const Port &rhs) | |
| Copy constructor. | |
| Port & | operator= (const Port &rhs) |
| Assignment operator. | |
| void | query (uint32_t lid) |
| Update this ports port counters. | |
| void | setGuid (uint64_t guid) |
| Sets the remote node GUID for this port. | |
| void | addInfo (BambooLib::XMLElement *portElement) |
| Append this ports's usage information to the portElement. | |
Private Member Functions | |
| bool | checkStuckPortCounters () |
| Checks for port counters that have maxed out their values. | |
| void | calculatePortBandwidth () |
| Calculates the send and receive rates for this port over the specified interval. | |
Private Attributes | |
| uint64_t | remoteNodeGuid |
| uint32_t | portNumber |
| uint32_t | receiveBytesCurrent |
| uint32_t | receiveBytesLast |
| double | receiveRate |
| uint32_t | sendBytesCurrent |
| uint32_t | sendBytesLast |
| double | sendRate |
| uint32_t | receivePacketsCurrent |
| uint32_t | receivePacketsLast |
| double | receivePacketsRate |
| uint32_t | sendPacketsCurrent |
| uint32_t | sendPacketsLast |
| double | sendPacketsRate |
| uint32_t | symbolErrorsCurrent |
| The number of symbol errors for this port from the most recent call to update. | |
| uint32_t | symbolErrorsLast |
| The number of symbol errors for this port from the second most recent call to update. | |
| double | symbolErrorsRate |
| int | width |
| double | speed |
| Timer | queryTime |
| bool | getPortCounters |
| unsigned int | timeout |
| bool | resetPortCounters |
| uint32_t | resetMask |
|
||||||||||||
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
Append this ports's usage information to the portElement.
|
|
|
Checks for port counters that have maxed out their values.
|
|
|
Assignment operator.
|
|
|
Update this ports port counters.
|
|
|
Sets the remote node GUID for this port.
|
|
|
True if we should query port counter statistics for this port |
|
|
Our port number |
|
|
The time between calls to update, used for both send and receive bandwidth calculation |
|
|
The number of bytes received by this port from the most recent call to update |
|
|
The number of bytes received by this port from the second most recent call to update |
|
|
The number of packets received by this port from the most recent call to update |
|
|
The number of packets received by this port from the second most recent call to update |
|
|
The rate at which this port is receiving packets |
|
|
The rate at which this port is receiving bytes |
|
|
The guid of the remote node connected to this port |
|
|
The bitmask to use for resetting performance and error counters |
|
|
Each time the port counters are polled, if this is true they are reset back to 0 |
|
|
The number of bytes sent by this port from the most recent call to update |
|
|
The number of bytes sent by this port from the second most recent call to update |
|
|
The number of packets sent by this port from the most recent call to update |
|
|
The number of packets sent by this port from the second most recent call to update |
|
|
The rate at which this port is sending packets |
|
|
The rate at which this port is sending bytes |
|
|
The maximum speed of this port, eg 2.5 Gbps, 5.0 Gbps, 10.0 Gbps, 12.0 Gbps |
|
|
The rate at which this port notices symbol errors |
|
|
The timeout value for executing a port_performance_query on this port |
|
|
The width of this port, eg 1X, 2X, 4X, 8X, 12X |
1.4.6