Decouple Platform Sensors from central data structure

Description

Platform sensors gather data periodically and store them temporally in the central data structure (ConcurrentHashMap). Most platform sensors aggregate their data which results in a get and put on the ConcurrentHashMap during each gathering interval.

In preparation of the future elimination of the ConcurrentHashMap we need to decouple the platform sensors from the ConcurrentHashMap. The goals of this ticket are:

  • Platform sensors don't store their temporary aggregated data in the ConcurrentHashMap. Instead they keep their data locally and perform aggregation (if needed) on that data

  • if possible, they should try to avoid creating garbage (override object fields instead of creating new objects)

Additional benefits:

  • small performance improvements can be expected

    • reduces congestion on the ConcurrentHashMap

    • reduces the produced garbage by the agent

Environment

None

Assignee

Max Wassiljew

Reporter

Matthias Huber

Labels

None

Integrator

Ivan Senic

Components

Sprint

None

Fix versions

Priority

Medium
Configure