Interface RepositoryState

    • Method Detail

      • setBranchRevision

        void setBranchRevision​(@NotNull
                               String name,
                               @NotNull
                               String revision)
        Sets revision of specified branch
        Parameters:
        name - branch name
        revision - branch revision
      • getCreateTimestamp

        @NotNull
        Date getCreateTimestamp()
        Returns:
        timestamp when this state was created.
      • setBranchCreateTimestamp

        void setBranchCreateTimestamp​(@NotNull
                                      String name,
                                      long createTimeMillis)
        Sets time when the specified branch has been created in VCS repository
        Parameters:
        name - branch name
        createTimeMillis - time when branch was created
        Since:
        2019.1.3
      • getBranchCreateTimestamps

        @NotNull
        Map<String,​Long> getBranchCreateTimestamps()
        Returns:
        map of branch name to the branch create time in milliseconds
        Since:
        2019.1.3
      • getLastUpdatedBy

        @NotNull
        String getLastUpdatedBy()
        Returns:
        id of the node which was the last who updated this state
        Since:
        2020.2.1
      • getLoadFromPersistentStorageTimestamp

        @Nullable
        Date getLoadFromPersistentStorageTimestamp()
        Returns:
        timestamp when this repository state has been loaded from the persistent storage or null if it has not been persisted yet
        Since:
        2022.10.1