typeToFreeSlots = createTypeToCountMap(types, "free");
typeToSchedulerRunTime = createTypeToCountMap(types, "scheduler_runtime");
typeToSchedulerCurrentCycleStart =
new ConcurrentHashMap<ResourceType, Long>();
sessionStatusToMetrics = createSessionStatusToMetricsMap();
aliveNodes = new MetricsIntValue("alive_nodes", registry);
deadNodes = new MetricsIntValue("dead_nodes", registry);
blacklistedNodes = new MetricsIntValue("blacklisted_nodes", registry);
numRunningSessions = new MetricsIntValue("num_running_sessions", registry);
totalSessionCount = new MetricsTimeVaryingInt("total_sessions", registry);
pendingCallsCount = new MetricsIntValue("num_pending_calls", registry);
numCJTFailures = new MetricsTimeVaryingInt("num_cjt_failures", registry);
numTaskTrackerRestarted = new MetricsIntValue("num_task_tracker_restarted", registry);
numRemoteJTTimedout = new MetricsIntValue("num_remotejt_timedout", registry);
}