private void initPlacementMetrics() {
codecToMisplacedBlocks = new HashMap<String, Map<Integer, MetricsLongValue>>();
for (Codec codec : Codec.getCodecs()) {
Map<Integer, MetricsLongValue> m = new HashMap<Integer, MetricsLongValue>();
for (int i = 0; i < MAX_MONITORED_MISPLACED_BLOCKS; ++i) {
m.put(i, new MetricsLongValue(misplacedMetricHeader +
"_" + codec.id + "_" + i, registry));
}
codecToMisplacedBlocks.put(codec.id, m);
}
}