refactoring: introducing PeriodicHostMeterTask class