NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Monitoring::DiskCollector Class Reference

#include <DiskCollector.hpp>

Collaboration diagram for NES::Monitoring::DiskCollector:
[legend]

Public Member Functions

 DiskCollector ()
 
MetricCollectorType getType () override
 Returns the type of metric collector. More...
 
bool fillBuffer (Runtime::TupleBuffer &tupleBuffer) override
 Fill a buffer with a given metric. More...
 
SchemaPtr getSchema () override
 Return the schema representing the metrics gathered by the collector. More...
 
const MetricPtr readMetric () const override
 Read the disk metrics based on the underlying utility systems reader and return the metrics. More...
 
- Public Member Functions inherited from NES::Monitoring::MetricCollector
virtual ~MetricCollector ()=default
 
WorkerId getWorkerId () const
 
void setNodeId (const WorkerId nodeId)
 

Additional Inherited Members

- Protected Member Functions inherited from NES::Monitoring::MetricCollector
 MetricCollector ()
 
 MetricCollector (WorkerId workerId)
 
 MetricCollector (const MetricCollector &)=default
 
 MetricCollector (MetricCollector &&)=default
 
MetricCollectoroperator= (const MetricCollector &)=default
 
MetricCollectoroperator= (MetricCollector &&)=default
 

Detailed Description

The DiskCollector class enables measuring and writing records of class Metrics/Gauge/DiskMetrics into a TupleBuffer.

Constructor & Destructor Documentation

◆ DiskCollector()

NES::Monitoring::DiskCollector::DiskCollector ( )
explicit

References NES_INFO.

Member Function Documentation

◆ fillBuffer()

bool NES::Monitoring::DiskCollector::fillBuffer ( Runtime::TupleBuffer tupleBuffer)
overridevirtual

Fill a buffer with a given metric.

Parameters
tupleBufferThe tuple buffer
Returns
True if successful, else false

Implements NES::Monitoring::MetricCollector.

References NES::Monitoring::MetricCollector::getWorkerId(), NES_ERROR, NES::Monitoring::DiskMetrics::nodeId, and NES::Monitoring::writeToBuffer().

Here is the call graph for this function:

◆ getSchema()

SchemaPtr NES::Monitoring::DiskCollector::getSchema ( )
overridevirtual

Return the schema representing the metrics gathered by the collector.

Returns
The schema

Implements NES::Monitoring::MetricCollector.

◆ getType()

MetricCollectorType NES::Monitoring::DiskCollector::getType ( )
overridevirtual

Returns the type of metric collector.

Returns
the metric collector type

Implements NES::Monitoring::MetricCollector.

References NES::Monitoring::DISK_COLLECTOR.

◆ readMetric()

const MetricPtr NES::Monitoring::DiskCollector::readMetric ( ) const
overridevirtual

Read the disk metrics based on the underlying utility systems reader and return the metrics.

Returns
The metrics object

Implements NES::Monitoring::MetricCollector.

References NES::Monitoring::DiskMetric, NES::Monitoring::MetricCollector::getWorkerId(), backward::details::move(), and NES::Monitoring::DiskMetrics::nodeId.

Here is the call graph for this function:

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