}
}
private MetricsContext metricsContextToThrift(
org.apache.hadoop.metrics.MetricsContext ctx) {
MetricsContext tCtx = new MetricsContext();
tCtx.name = ctx.getContextName();
tCtx.isMonitoring = ctx.isMonitoring();
tCtx.period = ctx.getPeriod();
tCtx.records = new HashMap<String, List<MetricsRecord>>();