The base trait for metrics updaters implementations. The metrics updater is an object which provides
a unified way to update all the relevant metrics which are collected for the particular type of
activity. The connector provides InputMetricsUpdater and OutputMetricsUpdater which are aimed
to update all the read and write metrics respectively.
A method to be called when the task is finished.
A method to be called when the task is finished. It stops the task timer and flushes data.