@Override public synchronized Map<String, ProcessInfo> determineRunningProcesses() { processInventoryLatch = new CountDownLatch(1); try { processControllerClient.requestProcessInventory(); } catch (IOException e) { throw new RuntimeException(e); } try { if (!processInventoryLatch.await(30, TimeUnit.SECONDS)){ throw MESSAGES.couldNotGetServerInventory(30L, TimeUnit.SECONDS.toString().toLowerCase(Locale.US)); } } catch (InterruptedException e) { throw MESSAGES.couldNotGetServerInventory(30L, TimeUnit.SECONDS.toString().toLowerCase(Locale.US)); } return processInfos; }
@Override public synchronized Map<String, ProcessInfo> determineRunningProcesses() { processInventoryLatch = new CountDownLatch(1); try { processControllerClient.requestProcessInventory(); } catch (IOException e) { throw new RuntimeException(e); } try { if (!processInventoryLatch.await(30, TimeUnit.SECONDS)){ throw HostControllerLogger.ROOT_LOGGER.couldNotGetServerInventory(30L, TimeUnit.SECONDS.toString().toLowerCase(Locale.US)); } } catch (InterruptedException e) { throw HostControllerLogger.ROOT_LOGGER.couldNotGetServerInventory(30L, TimeUnit.SECONDS.toString().toLowerCase(Locale.US)); } return processInfos; }
@Override public synchronized Map<String, ProcessInfo> determineRunningProcesses() { processInventoryLatch = new CountDownLatch(1); try { processControllerClient.requestProcessInventory(); } catch (IOException e) { throw new RuntimeException(e); } try { if (!processInventoryLatch.await(30, TimeUnit.SECONDS)){ throw HostControllerLogger.ROOT_LOGGER.couldNotGetServerInventory(30L, TimeUnit.SECONDS.toString().toLowerCase(Locale.US)); } } catch (InterruptedException e) { throw HostControllerLogger.ROOT_LOGGER.couldNotGetServerInventory(30L, TimeUnit.SECONDS.toString().toLowerCase(Locale.US)); } return processInfos; }