Exemplo n.º 1
0
 void syncWithMockAppLauncher(
     boolean allowScheduling, AtomicBoolean mockAppLauncherGoFlag, MockTezClient tezClient)
     throws Exception {
   synchronized (mockAppLauncherGoFlag) {
     while (!mockAppLauncherGoFlag.get()) {
       mockAppLauncherGoFlag.wait();
     }
     mockApp = tezClient.getLocalClient().getMockApp();
     mockLauncher = mockApp.getContainerLauncher();
     mockLauncher.startScheduling(allowScheduling);
     mockAppLauncherGoFlag.notify();
   }
 }