|
NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
#include <DiskCollector.hpp>
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 | |
| MetricCollector & | operator= (const MetricCollector &)=default |
| MetricCollector & | operator= (MetricCollector &&)=default |
The DiskCollector class enables measuring and writing records of class Metrics/Gauge/DiskMetrics into a TupleBuffer.
|
explicit |
References NES_INFO.
|
overridevirtual |
Fill a buffer with a given metric.
| tupleBuffer | The tuple buffer |
Implements NES::Monitoring::MetricCollector.
References NES::Monitoring::MetricCollector::getWorkerId(), NES_ERROR, NES::Monitoring::DiskMetrics::nodeId, and NES::Monitoring::writeToBuffer().
|
overridevirtual |
Return the schema representing the metrics gathered by the collector.
Implements NES::Monitoring::MetricCollector.
|
overridevirtual |
Returns the type of metric collector.
Implements NES::Monitoring::MetricCollector.
References NES::Monitoring::DISK_COLLECTOR.
|
overridevirtual |
Read the disk metrics based on the underlying utility systems reader and return the metrics.
Implements NES::Monitoring::MetricCollector.
References NES::Monitoring::DiskMetric, NES::Monitoring::MetricCollector::getWorkerId(), backward::details::move(), and NES::Monitoring::DiskMetrics::nodeId.