Interface MetadataStorageEx
-
- All Superinterfaces:
MetadataStorage
- All Known Implementing Classes:
HSQLMetadataStorage
,MetadataStorageBean
public interface MetadataStorageEx extends MetadataStorage
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) Date: 17.10.11 15:54
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the storage.void
flush()
Enforces flush of all data to diskSet<Long>
getIndexedBuilds()
Set<Long>
getIndexedBuilds(String providerId)
Set<String>
getProviderIds()
boolean
hasIndexedBuilds()
boolean
removeBuild(long buildId)
Removes build for all providers from cache.void
removeBuilds(Collection<Long> buildIds)
void
reset()
Delete all the data in memory and on the disc.-
Methods inherited from interface jetbrains.buildServer.serverSide.metadata.MetadataStorage
addBuildEntry, findEntriesWithKeyValuePairs, findEntriesWithValue, findEntriesWithValue, getAllEntries, getBuildEntry, getEntriesByKey, getNumberOfEntries, removeBuildEntries, updateCache
-
-
-
-
Method Detail
-
getIndexedBuilds
@NotNull Set<Long> getIndexedBuilds()
- Returns:
- identifiers of all builds with meta data.
-
hasIndexedBuilds
boolean hasIndexedBuilds()
- Returns:
- true if the storage has at least one record related to a build
-
getIndexedBuilds
@NotNull Set<Long> getIndexedBuilds(@NotNull String providerId)
- Returns:
- identifiers of all builds with meta data generated by the given provider.
-
removeBuild
boolean removeBuild(long buildId)
Removes build for all providers from cache. Marks given buildId as not-indexed.- Parameters:
buildId
- build to remove- Returns:
- true is build was indexed
-
removeBuilds
void removeBuilds(@NotNull Collection<Long> buildIds)
-
getProviderIds
@NotNull Set<String> getProviderIds()
- Returns:
- the ids of providers with data stored.
- Since:
- 10.0
-
flush
void flush()
Enforces flush of all data to disk
-
reset
void reset()
Delete all the data in memory and on the disc.
-
close
void close()
Close the storage. Makes shure all the data was persisted.
-
-