Interface BuildIndex
-
- All Known Implementing Classes:
BuildMetadataIndex
public interface BuildIndex
- Author:
- Evgeniy.Koshkin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addBuild(SBuild build)
default boolean
allowRunHistory()
void
close()
default void
flush()
default String
getDiskSize()
Collection<BuildIdAndTimestamp>
getIndexedBuildIds()
String
getIndexName()
long
getIndexSize()
String
getIndexVersion()
boolean
hasChanges()
void
optimize()
void
reindexBuild(SBuild build, ReindexBuildPolicy reindexPolicy)
Re-index data related to the given build.void
removeBuilds(Collection<BuildIdAndTimestamp> buildIds)
void
reset()
-
-
-
Method Detail
-
getIndexName
@NotNull String getIndexName()
-
addBuild
void addBuild(@NotNull SBuild build) throws BuildIndexException
- Throws:
BuildIndexException
-
removeBuilds
void removeBuilds(@NotNull Collection<BuildIdAndTimestamp> buildIds) throws BuildIndexException
- Throws:
BuildIndexException
-
reindexBuild
void reindexBuild(@NotNull SBuild build, @NotNull ReindexBuildPolicy reindexPolicy) throws BuildIndexException
Re-index data related to the given build.- Parameters:
build
- build to re-indexreindexPolicy
- tells what data should be reindexed- Throws:
BuildIndexException
-
getIndexedBuildIds
@NotNull Collection<BuildIdAndTimestamp> getIndexedBuildIds() throws BuildIndexException
- Throws:
BuildIndexException
-
reset
void reset()
-
flush
default void flush()
-
close
void close()
-
getIndexVersion
String getIndexVersion()
-
getIndexSize
long getIndexSize()
-
getDiskSize
default String getDiskSize()
-
hasChanges
boolean hasChanges()
-
optimize
void optimize()
-
allowRunHistory
default boolean allowRunHistory()
-
-