Interface PlanStatePersister

  • All Known Implementing Classes:
    PlanStatePersisterImpl

    public interface PlanStatePersister
    Transactional service converting runtime representation of build or chain result into persistent ResultsSummary object. Those operation may update other ResultsSummaries, i.e. delta states of builds following currently saved build.
    • Method Detail

      • saveFinishedBuildResult

        @NotNull
        @NotNull BuildContext saveFinishedBuildResult​(@NotNull
                                                      @NotNull BuildContext buildContext)
                                               throws Exception
        Saves results of build represented by a BuildContext into DB in single transaction. Updates delta states of a following build if necessary.
        Parameters:
        buildContext - runtime representation of build process
        Returns:
        updated buildContext
        Throws:
        Exception
      • saveNotBuiltBuildResult

        void saveNotBuiltBuildResult​(PlanResultKey planResultKey,
                                     boolean updateFollowingBuilds)
        Handles results of not built job. Sets build state and updates delta states of a following build if necessary.
        Parameters:
        planResultKey -
        updateFollowingBuilds -
      • persistChainState

        void persistChainState​(@NotNull
                               @NotNull ChainState chainState)
        Saves the chain results. Updates delta states of a following chain result if necessary. Does not update associated Job results.
        Parameters:
        chainState -