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 String
METADATA_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 void
addBuild(SBuild build)
void
close()
List<BuildIdAndTimestamp>
getIndexedBuildIds()
String
getIndexName()
long
getIndexSize()
String
getIndexVersion()
boolean
hasChanges()
boolean
isEmpty()
void
optimize()
void
reindexBuild(SBuild build, ReindexBuildPolicy reindexPolicy)
Re-index data related to the given build.void
removeBuilds(Collection<BuildIdAndTimestamp> buildIds)
void
reset()
-
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:
getIndexName
in interfaceBuildIndex
-
addBuild
public void addBuild(@NotNull SBuild build)
- Specified by:
addBuild
in interfaceBuildIndex
-
removeBuilds
public void removeBuilds(@NotNull Collection<BuildIdAndTimestamp> buildIds) throws BuildIndexException
- Specified by:
removeBuilds
in interfaceBuildIndex
- Throws:
BuildIndexException
-
reindexBuild
public void reindexBuild(@NotNull SBuild build, @NotNull ReindexBuildPolicy reindexPolicy)
Description copied from interface:BuildIndex
Re-index data related to the given build.- Specified by:
reindexBuild
in interfaceBuildIndex
- Parameters:
build
- build to re-indexreindexPolicy
- tells what data should be reindexed
-
getIndexedBuildIds
@NotNull public List<BuildIdAndTimestamp> getIndexedBuildIds()
- Specified by:
getIndexedBuildIds
in interfaceBuildIndex
-
isEmpty
public boolean isEmpty()
-
reset
public void reset()
- Specified by:
reset
in interfaceBuildIndex
-
close
public void close()
- Specified by:
close
in interfaceBuildIndex
-
getIndexVersion
public String getIndexVersion()
- Specified by:
getIndexVersion
in interfaceBuildIndex
-
getIndexSize
public long getIndexSize()
- Specified by:
getIndexSize
in interfaceBuildIndex
-
hasChanges
public boolean hasChanges()
- Specified by:
hasChanges
in interfaceBuildIndex
-
optimize
public void optimize()
- Specified by:
optimize
in interfaceBuildIndex
-
-