Java Code Examples for org.apache.flink.util.ExceptionUtils#checkInterrupted()
The following examples show how to use
org.apache.flink.util.ExceptionUtils#checkInterrupted() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestingFatalErrorHandler.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Nullable public synchronized Throwable getException() { if (errorFuture.isDone()) { Throwable throwable; try { throwable = errorFuture.get(); } catch (InterruptedException ie) { ExceptionUtils.checkInterrupted(ie); throw new FlinkRuntimeException("This should never happen since the future was completed."); } catch (ExecutionException e) { throwable = ExceptionUtils.stripExecutionException(e); } return throwable; } else { return null; } }
Example 2
Source File: TestingFatalErrorHandler.java From flink with Apache License 2.0 | 6 votes |
@Nullable public synchronized Throwable getException() { if (errorFuture.isDone()) { Throwable throwable; try { throwable = errorFuture.get(); } catch (InterruptedException ie) { ExceptionUtils.checkInterrupted(ie); throw new FlinkRuntimeException("This should never happen since the future was completed."); } catch (ExecutionException e) { throwable = ExceptionUtils.stripExecutionException(e); } return throwable; } else { return null; } }
Example 3
Source File: TestingFatalErrorHandler.java From flink with Apache License 2.0 | 6 votes |
@Nullable public synchronized Throwable getException() { if (errorFuture.isDone()) { Throwable throwable; try { throwable = errorFuture.get(); } catch (InterruptedException ie) { ExceptionUtils.checkInterrupted(ie); throw new FlinkRuntimeException("This should never happen since the future was completed."); } catch (ExecutionException e) { throwable = ExceptionUtils.stripExecutionException(e); } return throwable; } else { return null; } }
Example 4
Source File: RestClusterClient.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public String getWebInterfaceURL() { try { return getWebMonitorBaseUrl().get().toString(); } catch (InterruptedException | ExecutionException e) { ExceptionUtils.checkInterrupted(e); log.warn("Could not retrieve the web interface URL for the cluster.", e); return "Unknown address."; } }
Example 5
Source File: RestClusterClient.java From flink with Apache License 2.0 | 5 votes |
@Override public String getWebInterfaceURL() { try { return getWebMonitorBaseUrl().get().toString(); } catch (InterruptedException | ExecutionException e) { ExceptionUtils.checkInterrupted(e); log.warn("Could not retrieve the web interface URL for the cluster.", e); return "Unknown address."; } }
Example 6
Source File: RestClusterClient.java From flink with Apache License 2.0 | 5 votes |
@Override public String getWebInterfaceURL() { try { return getWebMonitorBaseUrl().get().toString(); } catch (InterruptedException | ExecutionException e) { ExceptionUtils.checkInterrupted(e); LOG.warn("Could not retrieve the web interface URL for the cluster.", e); return "Unknown address."; } }
Example 7
Source File: MiniClusterClient.java From flink with Apache License 2.0 | 5 votes |
@Override public String getWebInterfaceURL() { try { return miniCluster.getRestAddress().get().toString(); } catch (InterruptedException | ExecutionException e) { ExceptionUtils.checkInterrupted(e); LOG.warn("Could not retrieve the web interface URL for the cluster.", e); return "Unknown address."; } }