EucalyptusClientTask.java (eucalyptus-4.4.1) | : | EucalyptusClientTask.java (eucalyptus-4.4.2) | ||
---|---|---|---|---|
skipping to change at line 77 | skipping to change at line 77 | |||
public void fire(final TM response) { | public void fire(final TM response) { | |||
try { | try { | |||
dispatchSuccess(context, response); | dispatchSuccess(context, response); | |||
} finally { | } finally { | |||
future.set(true); | future.set(true); | |||
} | } | |||
} | } | |||
}); | }); | |||
return future; | return future; | |||
} catch (Exception e) { | } catch (Exception e) { | |||
LOG.error("Got error", e); | NoSuchElementException nsee = Exceptions.findCause( e, NoSuchElementExcept | |||
ion.class ); | ||||
if ( nsee != null ) { | ||||
LOG.warn( nsee.getMessage( ) ); | ||||
} else { | ||||
LOG.error( "Got error", e ); | ||||
} | ||||
} | } | |||
return Futures.predestinedFuture(false); | return Futures.predestinedFuture(false); | |||
} | } | |||
abstract void dispatchInternal(ClientContext<TM, TC> context, | abstract void dispatchInternal(ClientContext<TM, TC> context, | |||
Callback.Checked<TM> callback); | Callback.Checked<TM> callback); | |||
/** | /** | |||
* @return True if the failure was handled and should be treated as success. | * @return True if the failure was handled and should be treated as success. | |||
*/ | */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 7 lines changed or added |