FSQueueMetrics extends QueueMetrics { public void setMaxApps(int max) { maxApps.set(max); } FSQueueMetrics(MetricsSystem ms, String queueName, Queue parent,
      boolean enableUserMetrics, Configuration conf); Resource getFairShare(); void setFairShare(Resource resource); long getSteadyFairShareMB(); long getSteadyFairShareVCores(); Resource getSteadyFairShare(); void setSteadyFairShare(Resource resource); long getMinShareMB(); long getMinShareVirtualCores(); Resource getMinShare(); void setMinShare(Resource resource); long getMaxShareMB(); long getMaxShareVirtualCores(); Resource getMaxShare(); void setMaxShare(Resource resource); int getMaxApps(); void setMaxApps(int max); long getMaxAMShareMB(); int getMaxAMShareVCores(); Resource getMaxAMShare(); void setMaxAMShare(Resource resource); long getAMResourceUsageMB(); int getAMResourceUsageVCores(); Resource getAMResourceUsage(); void setAMResourceUsage(Resource resource); @Metric("Scheduling policy") String getSchedulingPolicy(); void setSchedulingPolicy(String policy); synchronized static FSQueueMetrics forQueue(String queueName, Queue parent,
      boolean enableUserMetrics, Configuration conf); @VisibleForTesting synchronized static FSQueueMetrics forQueue(MetricsSystem ms, String queueName,
      Queue parent, boolean enableUserMetrics, Configuration conf);  }
@Test public void testSetMaxApps() { FSQueueMetrics metrics = setupMetrics(RESOURCE_NAME); metrics.setMaxApps(25); assertEquals(getErrorMessage("maxApps"), 25L, metrics.getMaxApps()); }