Class RemainingRepositoryState
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.vcs.RemainingRepositoryState
-
- All Implemented Interfaces:
RepositoryState,VcsDataObject,VcsRepositoryState
public class RemainingRepositoryState extends Object implements RepositoryState
-
-
Constructor Summary
Constructors Constructor Description RemainingRepositoryState(RepositoryState originalState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexcludeBranches(Set<String> branches)Map<String,Long>getBranchCreateTimestamps()Map<String,String>getBranchRevisions()DategetCreateTimestamp()StringgetDefaultBranchName()StringgetDefaultBranchRevision()StringgetLastUpdatedBy()DategetLoadFromPersistentStorageTimestamp()RepositoryStategetOriginalState()booleanisEmpty()voidsetBranchCreateTimestamp(String name, long createTimeMillis)Sets time when the specified branch has been created in VCS repositoryvoidsetBranchRevision(String name, String revision)Sets revision of specified branch
-
-
-
Constructor Detail
-
RemainingRepositoryState
public RemainingRepositoryState(@NotNull RepositoryState originalState)
-
-
Method Detail
-
setBranchRevision
public void setBranchRevision(@NotNull String name, @NotNull String revision)Description copied from interface:RepositoryStateSets revision of specified branch- Specified by:
setBranchRevisionin interfaceRepositoryState- Parameters:
name- branch namerevision- branch revision
-
getCreateTimestamp
@NotNull public Date getCreateTimestamp()
- Specified by:
getCreateTimestampin interfaceRepositoryState- Returns:
- timestamp when this state was created.
-
setBranchCreateTimestamp
public void setBranchCreateTimestamp(@NotNull String name, long createTimeMillis)Description copied from interface:RepositoryStateSets time when the specified branch has been created in VCS repository- Specified by:
setBranchCreateTimestampin interfaceRepositoryState- Parameters:
name- branch namecreateTimeMillis- time when branch was created
-
getBranchCreateTimestamps
@NotNull public Map<String,Long> getBranchCreateTimestamps()
- Specified by:
getBranchCreateTimestampsin interfaceRepositoryState- Returns:
- map of branch name to the branch create time in milliseconds
-
getLastUpdatedBy
@NotNull public String getLastUpdatedBy()
- Specified by:
getLastUpdatedByin interfaceRepositoryState- Returns:
- id of the node which was the last who updated this state
-
getLoadFromPersistentStorageTimestamp
@Nullable public Date getLoadFromPersistentStorageTimestamp()
- Specified by:
getLoadFromPersistentStorageTimestampin interfaceRepositoryState- Returns:
- timestamp when this repository state has been loaded from the persistent storage or null if it has not been persisted yet
-
getBranchRevisions
@NotNull public Map<String,String> getBranchRevisions()
- Specified by:
getBranchRevisionsin interfaceVcsRepositoryState- Returns:
- VCS branch to Revision state for the repository. If the map is empty, the operation for collection of repositoryState wasn't performed as expensive
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceVcsRepositoryState- Returns:
- true if this RepositoryState doesn't contain any information, i.e. it is Null object
-
getDefaultBranchName
@NotNull public String getDefaultBranchName()
- Specified by:
getDefaultBranchNamein interfaceVcsRepositoryState- Returns:
- The branch which is considered default for the moment of changes collecting
-
getDefaultBranchRevision
@Nullable public String getDefaultBranchRevision()
- Specified by:
getDefaultBranchRevisionin interfaceVcsRepositoryState- Returns:
- revision for the #getDefaultBranchName branch
-
getOriginalState
@NotNull public RepositoryState getOriginalState()
-
-