Interface LVcsRootInstanceEx

    • Method Detail

      • compareAndSetStatus

        boolean compareAndSetStatus​(@NotNull
                                    VcsRootStatus prevStatus,
                                    @NotNull
                                    VcsRootStatus.Type newStatus)
        Sets new status only if current status is the same as prevStatus.
        Parameters:
        prevStatus - previous status
        newStatus - new status
        Returns:
        true if status has been changed to new and false otherwise
      • startChangesCollectingInLock

        void startChangesCollectingInLock​(@NotNull
                                          OperationRequestor requestor)
        Set a requestor for the checking for changes procedure, also sets current VcsRootStatus status to STARTED Requires that VcsRootInstance is locked for changes collecting.
        Parameters:
        requestor -
        Since:
        10.0
      • getLastRequestor

        @NotNull
        OperationRequestor getLastRequestor()
        Return the last requestor for checking for changes operation
        Returns:
      • setExplicitModificationCheckInterval

        boolean setExplicitModificationCheckInterval​(@Nullable
                                                     Integer secondsInterval)
        Parameters:
        secondsInterval - new effective modification check interval in seconds, null to fallback to a user-defined value
        Returns:
        true if the value for the interval has actually been changed
      • getLastFinishChangesCollectingTime

        @Nullable
        Date getLastFinishChangesCollectingTime()
        Return the time when the last changes collecting was finished (the root status status changed to VcsRootStatus.Type.FINISHED) or null if no changes collecting is finished since server start
        Returns:
      • tryLockChangesCollecting

        boolean tryLockChangesCollecting​(int timeoutMillis)
                                  throws InterruptedException
        Try lock changes collecting lock for specified number of seconds
        Parameters:
        timeoutMillis - timeout in milliseconds
        Returns:
        true if lock was acquired
        Throws:
        InterruptedException - when thread was interrupted while trying to acquire the lock
      • unlockChangesCollecting

        void unlockChangesCollecting()
        Releases changes collection lock and marks VCS Root FINISHED
        Since:
        8.1
      • isChangesCollectingLockObtained

        boolean isChangesCollectingLockObtained()
      • isPollingMode

        boolean isPollingMode()