/** * Should be called to notify that an installation is ended, successfully or unsuccessfully. * * @param updateInfo * the information about the update. */ protected final void installationSuccess(UpdateInfo updateInfo) { m_lastVersionSuccessful = true; m_failureCount = 0; m_controller.sendDeploymentCompletedEvent(updateInfo, true /* success */, null); }
/** * Should be called to notify that an installation is ended, successfully or unsuccessfully. * * @param updateInfo * the information about the update; * @param cause * the (optional) cause why the installation failed. */ protected final void installationFailed(UpdateInfo updateInfo, Throwable cause) { getController().logError("Installation of %s update failed: %s!", cause, updateInfo.m_type, cause.getMessage()); m_lastVersionSuccessful = false; m_failureCount++; m_controller.sendDeploymentCompletedEvent(updateInfo, false /* success */, cause); }
/** * Should be called to notify that an installation is ended, successfully or unsuccessfully. * * @param updateInfo * the information about the update; * @param exception * the (optional) cause why the installation failed. */ protected final void installationFailed(UpdateInfo updateInfo, InstallationFailedException exception) { // InstallationFailedException is a catch-all wrapper exception, so use its cause directly... getController().logError("Installation of %s update failed: %s!", exception.getCause(), updateInfo.m_type, exception.getReason()); m_lastVersionSuccessful = false; m_failureCount++; m_controller.sendDeploymentCompletedEvent(updateInfo, false /* success */, exception.getCause()); }