}
public AvatarNodeMetrics(NameNodeMetrics metrics) {
this.metrics = metrics;
ignoreDataNodes = new MetricsIntValue(namePref + "IgnoreDatanodes",
metrics.registry, "Ignoring datanodes");
numIgnoredDatanodes = new MetricsTimeVaryingLong(namePref
+ "NumIgnoredDatanodes", metrics.registry,
"Number of ignored datanodes");
numReportedBlocks = new MetricsTimeVaryingLong(namePref
+ "NumReportedBlocks", metrics.registry,
"Blocks reported through incremental block reports");
numRetryBlocks = new MetricsTimeVaryingLong(namePref + "NumRetryBlocks",
metrics.registry, "Blocks retried for incremental block reports");
numCleanerThreadExceptions = new MetricsTimeVaryingLong(namePref
+ "NumCleanerThreadExceptions", metrics.registry,
"Exceptions when clearing deletion queues");
numIngestFailures = new MetricsIntValue(namePref + "NumIngestFailures",
metrics.registry, "Number of ingest failures");
numCheckpointFailures = new MetricsIntValue(namePref
+ "NumCheckpointFailures", metrics.registry,
"Number of checkpoint failures");
}