/** * Get the exception, if any. * @return The failure reason for use during cleanup, if any. */ public Exception getException() { return access.getException(); } }
/** * Perform cleanup in shutdown or kill. */ protected void doCleanup() { if(resfuts!=null) { Exception ex = getComponent().getException(); if(ex!=null) { for(SubscriptionIntermediateFuture<Tuple2<String, Object>> fut: resfuts) { fut.setExceptionIfUndone(ex); } } else { for(SubscriptionIntermediateFuture<Tuple2<String, Object>> fut: resfuts) { fut.setFinishedIfUndone(); } } resfuts = null; } }
Exception ex = comp.getInternalAccess().getException()!=null ? comp.getInternalAccess().getException() : exception;