EMANE
1.2.1
|
Manager Queue metrics. More...
#include <queuemetricmanager.h>
Public Member Functions | |
QueueMetricManager (NEMId id) | |
~QueueMetricManager () | |
void | updateQueueMetric (std::uint16_t u16QueueId, std::uint32_t u32QueueSize, std::uint32_t u32QueueDepth, std::uint32_t u32NumDiscards, const Microseconds &queueDelay) |
bool | addQueueMetric (std::uint16_t u16QueueId, std::uint32_t u32QueueSize) |
bool | removeQueueMetric (std::uint16_t u16QueueId) |
Controls::R2RIQueueMetrics | getQueueMetrics () |
Manager Queue metrics.
Definition at line 49 of file queuemetricmanager.h.
EMANE::QueueMetricManager::QueueMetricManager | ( | EMANE::NEMId | id | ) |
Creates a QueueMetricManager instance
id | NEM id |
Definition at line 228 of file queuemetricmanager.cc.
EMANE::QueueMetricManager::~QueueMetricManager | ( | ) |
Destroys an instance
Definition at line 233 of file queuemetricmanager.cc.
bool EMANE::QueueMetricManager::addQueueMetric | ( | std::uint16_t | u16QueueId, |
std::uint32_t | u32QueueSize | ||
) |
Adds a queue metric entry
u16QueueId | The queue id |
u32QueueSize | The queue max size |
Definition at line 260 of file queuemetricmanager.cc.
EMANE::Controls::R2RIQueueMetrics EMANE::QueueMetricManager::getQueueMetrics | ( | ) |
bool EMANE::QueueMetricManager::removeQueueMetric | ( | std::uint16_t | u16QueueId | ) |
Removes a queue metric entry
u16QueueId | The queue id |
Definition at line 267 of file queuemetricmanager.cc.
void EMANE::QueueMetricManager::updateQueueMetric | ( | std::uint16_t | u16QueueId, |
std::uint32_t | u32QueueSize, | ||
std::uint32_t | u32QueueDepth, | ||
std::uint32_t | u32NumDiscards, | ||
const Microseconds & | queueDelay | ||
) |
Updates the queue metric
u16QueueId | The queue id |
u32QueueSize | The queue size |
u32QueueDepth | The queue depth |
u32NumDiscards | The queue discards |
queueDelay | The queue delay time |
Definition at line 245 of file queuemetricmanager.cc.