}
@Override
public YarnClusterMetrics getClusterMetrics() {
GetClusterMetricsResponseProtoOrBuilder p = viaProto ? proto : builder;
if (this.yarnClusterMetrics != null) {
return this.yarnClusterMetrics;
}
if (!p.hasClusterMetrics()) {
return null;
}
this.yarnClusterMetrics = convertFromProtoFormat(p.getClusterMetrics());
return this.yarnClusterMetrics;
}