EMANE  1.2.1
EMANE::QueueMetricManager Class Reference

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 ()
 

Detailed Description

Manager Queue metrics.

Definition at line 49 of file queuemetricmanager.h.

Constructor & Destructor Documentation

◆ QueueMetricManager()

EMANE::QueueMetricManager::QueueMetricManager ( EMANE::NEMId  id)

Creates a QueueMetricManager instance

Parameters
idNEM id

Definition at line 228 of file queuemetricmanager.cc.

◆ ~QueueMetricManager()

EMANE::QueueMetricManager::~QueueMetricManager ( )

Destroys an instance

Definition at line 233 of file queuemetricmanager.cc.

Member Function Documentation

◆ addQueueMetric()

bool EMANE::QueueMetricManager::addQueueMetric ( std::uint16_t  u16QueueId,
std::uint32_t  u32QueueSize 
)

Adds a queue metric entry

Parameters
u16QueueIdThe queue id
u32QueueSizeThe queue max size
Returns
true if successful

Definition at line 260 of file queuemetricmanager.cc.

◆ getQueueMetrics()

EMANE::Controls::R2RIQueueMetrics EMANE::QueueMetricManager::getQueueMetrics ( )

Gets the queue metrics

Returns
metrics

Definition at line 238 of file queuemetricmanager.cc.

◆ removeQueueMetric()

bool EMANE::QueueMetricManager::removeQueueMetric ( std::uint16_t  u16QueueId)

Removes a queue metric entry

Parameters
u16QueueIdThe queue id
Returns
true if successful

Definition at line 267 of file queuemetricmanager.cc.

◆ updateQueueMetric()

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

Parameters
u16QueueIdThe queue id
u32QueueSizeThe queue size
u32QueueDepthThe queue depth
u32NumDiscardsThe queue discards
queueDelayThe queue delay time

Definition at line 245 of file queuemetricmanager.cc.


The documentation for this class was generated from the following files: