Class BuildMetadataIndex
- java.lang.Object
-
- jetbrains.buildServer.serverSide.metadata.impl.indexer.BuildMetadataIndex
-
- All Implemented Interfaces:
BuildIndex
public class BuildMetadataIndex extends Object implements BuildIndex
- Author:
- Evgeniy.Koshkin
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETADATA_INDEX_NAME
-
Constructor Summary
Constructors Constructor Description BuildMetadataIndex(ExtensionHolder extensionHolder, MetadataStorageEx storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBuild(SBuild build)voidclose()List<BuildIdAndTimestamp>getIndexedBuildIds()StringgetIndexName()longgetIndexSize()StringgetIndexVersion()booleanhasChanges()booleanisEmpty()voidoptimize()voidreindexBuild(SBuild build, ReindexBuildPolicy reindexPolicy)Re-index data related to the given build.voidremoveBuilds(Collection<BuildIdAndTimestamp> buildIds)voidreset()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.build.index.BuildIndex
allowRunHistory, flush, getDiskSize
-
-
-
-
Field Detail
-
METADATA_INDEX_NAME
public static final String METADATA_INDEX_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BuildMetadataIndex
public BuildMetadataIndex(@NotNull ExtensionHolder extensionHolder, @NotNull MetadataStorageEx storage)
-
-
Method Detail
-
getIndexName
@NotNull public String getIndexName()
- Specified by:
getIndexNamein interfaceBuildIndex
-
addBuild
public void addBuild(@NotNull SBuild build)- Specified by:
addBuildin interfaceBuildIndex
-
removeBuilds
public void removeBuilds(@NotNull Collection<BuildIdAndTimestamp> buildIds) throws BuildIndexException- Specified by:
removeBuildsin interfaceBuildIndex- Throws:
BuildIndexException
-
reindexBuild
public void reindexBuild(@NotNull SBuild build, @NotNull ReindexBuildPolicy reindexPolicy)Description copied from interface:BuildIndexRe-index data related to the given build.- Specified by:
reindexBuildin interfaceBuildIndex- Parameters:
build- build to re-indexreindexPolicy- tells what data should be reindexed
-
getIndexedBuildIds
@NotNull public List<BuildIdAndTimestamp> getIndexedBuildIds()
- Specified by:
getIndexedBuildIdsin interfaceBuildIndex
-
isEmpty
public boolean isEmpty()
-
reset
public void reset()
- Specified by:
resetin interfaceBuildIndex
-
close
public void close()
- Specified by:
closein interfaceBuildIndex
-
getIndexVersion
public String getIndexVersion()
- Specified by:
getIndexVersionin interfaceBuildIndex
-
getIndexSize
public long getIndexSize()
- Specified by:
getIndexSizein interfaceBuildIndex
-
hasChanges
public boolean hasChanges()
- Specified by:
hasChangesin interfaceBuildIndex
-
optimize
public void optimize()
- Specified by:
optimizein interfaceBuildIndex
-
-