Interface ChangesLoaderContext

    • Method Detail

      • isCanceled

        boolean isCanceled()
        Returns:
        true if ChangesLoaderContext task was canceled
        Since:
        7.1.1
      • getSettingRootUsages

        @NotNull
        Map<? extends LVcsRootInstanceHolder,​CheckoutRules> getSettingRootUsages​(@NotNull
                                                                                       LVcsRootInstance root)
        Returns all usages of the specified settings VCS root, including the buildTypes where settings root is attached
        Parameters:
        root - settings VCS root of interest
        Returns:
        see above
      • performVcsOperationsInCurrentThread

        boolean performVcsOperationsInCurrentThread()
        if true, all VCS-related operations will be performed in the same thread, otherwise, changes loader will try to split tasks among other threads if possible
      • isSettingsVcsRoot

        boolean isSettingsVcsRoot​(@NotNull
                                  LVcsRootInstance root)
        Returns true if the specified VCS root is used for storing versioned settings. The root should be one of the roots for which changes are collected.
        Parameters:
        root - VCS root of interest
        Returns:
        see above
      • isSettingsVcsRoot

        boolean isSettingsVcsRoot​(@NotNull
                                  LVcsRootInstanceHolder buildType,
                                  @NotNull
                                  LVcsRootInstance root)
        Returns true if the specified VCS root used to store settings in the given buildType
        Parameters:
        buildType - buildType of interest
        root - VCS root of interest
        Returns:
        see above
      • getVersionedSettingsContentDir

        @NotNull
        String getVersionedSettingsContentDir()
      • getVersionedSettingsRule

        @NotNull
        default String getVersionedSettingsRule​(@NotNull
                                                LVcsRootInstance root)
      • getRequestTimestamp

        @NotNull
        Date getRequestTimestamp()
      • getPrevSettingsBranchSpecs

        @NotNull
        Set<BranchSpec> getPrevSettingsBranchSpecs​(@NotNull
                                                   LVcsRootInstance root)
        Returns previous branch specs used for changes collecting in the specified VCS root as in versioned settings root. If root is not used for storing settings, then empty set is returned.
        Parameters:
        root - VCS root of interest
        Returns:
        see above
      • getCurrentSettingsBranchSpecs

        @NotNull
        Set<BranchSpec> getCurrentSettingsBranchSpecs​(@NotNull
                                                      LVcsRootInstance root)
        Returns branch specs for the specified VCS root as for settings root. If root is not used for storing settings, then empty set is returned. The implementation saves the returned result in order to store it during a subsequent saveSettingsBranchSpecs() call.
        Parameters:
        root - VCS root of interest
        Returns:
        see above
      • saveSettingsBranchSpecs

        boolean saveSettingsBranchSpecs​(@NotNull
                                        LVcsRootInstance root)
        Saves branch specs of the specified VCS root previously returned by the getCurrentSettingsBranchSpecs() method, so that the subsequent call to getPrevSettingsBranchSpecs() returns them. Returns true if settings VCS root or its branch specification were changed comparing to their previous values in at least one project.
        Parameters:
        root - settings root of interest
        Returns:
        see above
      • hasCustomSettings

        boolean hasCustomSettings​(@NotNull
                                  LVcsRootInstanceHolder buildType,
                                  @NotNull
                                  LVcsRootInstance root,
                                  @NotNull
                                  CheckoutRules rules)
        Returns true if the specified root or checkout rules are different from the one attached to the given buildType
        Parameters:
        buildType - buildType of interest
        root - VCS root instance to check
        rules - checkout rules to check
        Returns:
        see above
      • shouldWaitForChangesCollectionFinishing

        boolean shouldWaitForChangesCollectionFinishing​(@NotNull
                                                        LVcsRootInstance inst)
      • isRecoverableError

        default boolean isRecoverableError​(@NotNull
                                           VcsException e)
      • getOperationRejectedReason

        @Nullable
        default ChangesLoaderContext.OperationRejectedReason getOperationRejectedReason()
        Returns a reason of a rejected checking for changes operation in one of the VCS roots. If operation is rejected then it should be repeated later.
        Returns:
        reason if operation was rejected or null
        Since:
        2021.1.2
      • shouldCollectChangesForVcsRoot

        default boolean shouldCollectChangesForVcsRoot​(@NotNull
                                                       LVcsRootInstance root,
                                                       @NotNull
                                                       RepositoryState currentState)