/** * Called to shut down the TaskManager. The method closes all TaskManager services. */ @Override public void shutDown() throws Exception { log.info("Stopping TaskManager {}.", getAddress()); Exception exception = null; taskSlotTable.stop(); if (isConnectedToResourceManager()) { resourceManagerConnection.close(); } jobManagerHeartbeatManager.stop(); resourceManagerHeartbeatManager.stop(); ioManager.shutdown(); memoryManager.shutdown(); networkEnvironment.shutdown(); fileCache.shutdown(); try { super.shutDown(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception); } if (exception != null) { ExceptionUtils.rethrowException(exception, "Error while shutting the TaskExecutor down."); } log.info("Stopped TaskManager {}.", getAddress()); }
networkEnvironment.shutdown(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception);
networkEnvironment.shutdown(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception);
networkEnvironment.shutdown(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception);