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 voidaddBuild(SBuild build)default booleanallowRunHistory()voidclose()default voidflush()default StringgetDiskSize()Collection<BuildIdAndTimestamp>getIndexedBuildIds()StringgetIndexName()longgetIndexSize()StringgetIndexVersion()booleanhasChanges()voidoptimize()voidreindexBuild(SBuild build, ReindexBuildPolicy reindexPolicy)Re-index data related to the given build.voidremoveBuilds(Collection<BuildIdAndTimestamp> buildIds)voidreset()
-
-
-
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 BuildIndexExceptionRe-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()
-
-