715716717718719720721
} } @Override protected void makeNewProduct(Socket socket) { new GraderAgent(this, mediator.getContestManager(), socket); }
55565758596061626364
public GraderAgent moveMachineToBusy() { synchronized (this) { if (idleMachineQueue.isEmpty()) return null; GraderAgent gm = idleMachineQueue.remove(0); busyMachineQueue.add(gm); return gm; } }