public String getUser() { return appSchedulingInfo.getUser(); }
public String getUser() { return appSchedulingInfo.getUser(); }
public String getUser() { return appSchedulingInfo.getUser(); }
private static AppSchedulingInfo mockApp(String user) { AppSchedulingInfo app = mock(AppSchedulingInfo.class); when(app.getUser()).thenReturn(user); ApplicationId appId = BuilderUtils.newApplicationId(1, 1); ApplicationAttemptId id = BuilderUtils.newApplicationAttemptId(appId, 1); when(app.getApplicationAttemptId()).thenReturn(id); return app; }
private static AppSchedulingInfo mockApp(String user) { AppSchedulingInfo app = mock(AppSchedulingInfo.class); when(app.getUser()).thenReturn(user); ApplicationId appId = BuilderUtils.newApplicationId(1, 1); ApplicationAttemptId id = BuilderUtils.newApplicationAttemptId(appId, 1); when(app.getApplicationAttemptId()).thenReturn(id); return app; }
public void moveAppFrom(AppSchedulingInfo app) { if (app.isPending()) { appsPending.decr(); } else { appsRunning.decr(); } QueueMetrics userMetrics = getUserMetrics(app.getUser()); if (userMetrics != null) { userMetrics.moveAppFrom(app); } if (parent != null) { parent.moveAppFrom(app); } }
public void moveAppFrom(AppSchedulingInfo app) { if (app.isPending()) { appsPending.decr(); } else { appsRunning.decr(); } QueueMetrics userMetrics = getUserMetrics(app.getUser()); if (userMetrics != null) { userMetrics.moveAppFrom(app); } if (parent != null) { parent.moveAppFrom(app); } }
appSchedulingInfo.getUser(), this.rmContext, ps.getPrimaryRequestedNodePartition()); ((RMContainerImpl) rmContainer).setQueueName(this.getQueueName());
rmContainer = new RMContainerImpl(container, getApplicationAttemptId(), node.getNodeID(), appSchedulingInfo.getUser(), rmContext);
public void moveAppTo(AppSchedulingInfo app) { if (app.isPending()) { appsPending.incr(); } else { appsRunning.incr(); } QueueMetrics userMetrics = getUserMetrics(app.getUser()); if (userMetrics != null) { userMetrics.moveAppTo(app); } if (parent != null) { parent.moveAppTo(app); } }
public void moveAppFrom(AppSchedulingInfo app) { if (app.isPending()) { appsPending.decr(); } else { appsRunning.decr(); } QueueMetrics userMetrics = getUserMetrics(app.getUser()); if (userMetrics != null) { userMetrics.moveAppFrom(app); } if (parent != null) { parent.moveAppFrom(app); } }
public void moveAppTo(AppSchedulingInfo app) { if (app.isPending()) { appsPending.incr(); } else { appsRunning.incr(); } QueueMetrics userMetrics = getUserMetrics(app.getUser()); if (userMetrics != null) { userMetrics.moveAppTo(app); } if (parent != null) { parent.moveAppTo(app); } }
rmContainer = new RMContainerImpl(container, getApplicationAttemptId(), node.getNodeID(), appSchedulingInfo.getUser(), rmContext);
public void moveAppTo(AppSchedulingInfo app) { if (app.isPending()) { appsPending.incr(); } else { appsRunning.incr(); } QueueMetrics userMetrics = getUserMetrics(app.getUser()); if (userMetrics != null) { userMetrics.moveAppTo(app); } if (parent != null) { parent.moveAppTo(app); } }
public RMContainer reserve(SchedulerNode node, SchedulerRequestKey schedulerKey, RMContainer rmContainer, Container container) { try { writeLock.lock(); // Create RMContainer if necessary if (rmContainer == null) { rmContainer = new RMContainerImpl(container, schedulerKey, getApplicationAttemptId(), node.getNodeID(), appSchedulingInfo.getUser(), rmContext); } if (rmContainer.getState() == RMContainerState.NEW) { attemptResourceUsage.incReserved(node.getPartition(), container.getResource()); ((RMContainerImpl) rmContainer).setQueueName(this.getQueueName()); // Reset the re-reservation count resetReReservations(schedulerKey); } else{ // Note down the re-reservation addReReservation(schedulerKey); } commonReserve(node, schedulerKey, rmContainer, container.getResource()); return rmContainer; } finally { writeLock.unlock(); } }
appSchedulingInfo.getUser(), this.rmContext, node.getPartition()); ((RMContainerImpl) rmContainer).setQueueName(this.getQueueName());
appSchedulingInfo.getUser(), this.rmContext);
appSchedulingInfo.getUser(), this.rmContext);
app.getApplicationId(), app.isPending(), app.getUser()); checkApps(queueSource, 1, 0, 0, 0, 0, 0, true); metrics.finishApp(user, RMAppState.FINISHED);
app.getApplicationId(), app.isPending(), app.getUser()); checkApps(queueSource, 1, 0, 0, 0, 0, 0, true); checkApps(userSource, 1, 0, 0, 0, 0, 0, true);