The base class for different SEU-as-code data store providers. The providers are responsible to persist and query the SEU configuration.
| Constructor and description |
|---|
DatastoreProvider
(SeuacDatastore ds)Convenience constructor via a SeuacDatastore instance. |
| Type | Name and description |
|---|---|
void |
clear()Clear this data store. |
java.util.Set<java.lang.String> |
findAllFiles(java.util.Set<java.lang.String> dependencyIds, java.lang.String configuration)Find all files associated with the given dependency IDs and configuration. |
java.util.Set<org.gradle.api.artifacts.Dependency> |
findAllIncomingDeps(java.util.Set<org.gradle.api.artifacts.Dependency> dependencies, java.lang.String configuration)Find all incoming dependencies from the current set of dependencies for the given configuration. |
java.util.Set<java.lang.String> |
findAllObsoleteDeps(java.util.Set<org.gradle.api.artifacts.Dependency> dependencies, java.lang.String configuration)Finds all obsolete dependencies in the given Set of current dependencies and configuration. |
java.lang.String |
getDependencyId(org.gradle.api.artifacts.Dependency d)Returns the ID for the given dependency. |
void |
init()Initialize the data store. |
void |
reset()Resets this data store. |
void |
storeDependency(org.gradle.api.artifacts.Dependency dependency, java.util.List<org.gradle.api.file.FileTree> files, java.lang.String configuration)Stores the given dependency with its files for the given configuration |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Convenience constructor via a SeuacDatastore instance.
ds - the datastore configurationClear this data store.
Find all files associated with the given dependency IDs and configuration.
dependencyIds - the dependency IDsconfiguration - the configurationFind all incoming dependencies from the current set of dependencies for the given configuration.
dependencies - the current set of dependenciesconfiguration - the configuration nameFinds all obsolete dependencies in the given Set of current dependencies and configuration.
dependencies - the curent dependenciesconfiguration - the configuratoin nameReturns the ID for the given dependency.
d - the depInitialize the data store.
Resets this data store. Short hand for clear() and init().
Stores the given dependency with its files for the given configuration
dependency - the dependencyfiles - the files as fileTreesconfiguration - the configurationGroovy Documentation