Package jetbrains.buildServer.vcs.impl
Interface RepositoryStateManager
-
- All Known Implementing Classes:
HistoryAwareRepositoryStateManagerImpl
public interface RepositoryStateManager
- Since:
- 7.0
- Author:
- dmitry.neverov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RepositoryState
getRepositoryState(LVcsRootInstance repository)
Returns persisted state or null if no state were persisted for given repositoryDate
getRepositoryStateUpdateTime(LVcsRootInstance repository)
Returns a timestamp when the repository state has been updated last time.void
refreshRepositoryState(LVcsRootInstance repository)
Refreshes the cached in-memory copy of the repository state from the database.void
setRepositoryState(LVcsRootInstance repository, RepositoryState state)
Persists repository state
-
-
-
Method Detail
-
setRepositoryState
void setRepositoryState(@NotNull LVcsRootInstance repository, @NotNull RepositoryState state)
Persists repository state- Parameters:
repository
- repository of intereststate
- state of repository
-
getRepositoryState
@NotNull RepositoryState getRepositoryState(@NotNull LVcsRootInstance repository)
Returns persisted state or null if no state were persisted for given repository- Parameters:
repository
- repository of interest- Returns:
- see above
-
getRepositoryStateUpdateTime
@Nullable Date getRepositoryStateUpdateTime(@NotNull LVcsRootInstance repository)
Returns a timestamp when the repository state has been updated last time. In this case the update time is not always the same asRepositoryState.getCreateTimestamp()
. For instance, if the state is empty (VcsRepositoryState.isEmpty()
returns true), then the update time will be null because the state has not been updated as a result of the checking for changes operation, but rather has just been created.- Parameters:
repository
-- Returns:
-
refreshRepositoryState
void refreshRepositoryState(@NotNull LVcsRootInstance repository)
Refreshes the cached in-memory copy of the repository state from the database.- Parameters:
repository
-
-
-