Package com.google.gerrit.server.git
Class MultiBaseLocalDiskRepositoryManager
- java.lang.Object
-
- com.google.gerrit.server.git.LocalDiskRepositoryManager
-
- com.google.gerrit.server.git.MultiBaseLocalDiskRepositoryManager
-
- All Implemented Interfaces:
GitRepositoryManager
public class MultiBaseLocalDiskRepositoryManager extends LocalDiskRepositoryManager
RepositoryManager that looks up repos stored across directories.Each repository has a path configured in Gerrit server config, repository.NAME.basePath, indicating where the repo can be found
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultiBaseLocalDiskRepositoryManager.MultiBaseLocalDiskRepositoryManagerModule-
Nested classes/interfaces inherited from class com.google.gerrit.server.git.LocalDiskRepositoryManager
LocalDiskRepositoryManager.Lifecycle, LocalDiskRepositoryManager.LocalDiskRepositoryManagerModule, LocalDiskRepositoryManager.ProjectVisitor
-
Nested classes/interfaces inherited from interface com.google.gerrit.server.git.GitRepositoryManager
GitRepositoryManager.Status
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetBasePath(Project.NameKey name)Return the basePath under which the specified project is stored.protected voidscanProjects(LocalDiskRepositoryManager.ProjectVisitor visitor)-
Methods inherited from class com.google.gerrit.server.git.LocalDiskRepositoryManager
canPerformGC, createRepository, getRepositoryStatus, list, openRepository
-
-
-
-
Method Detail
-
getBasePath
public Path getBasePath(Project.NameKey name)
Description copied from class:LocalDiskRepositoryManagerReturn the basePath under which the specified project is stored.- Overrides:
getBasePathin classLocalDiskRepositoryManager- Parameters:
name- the name of the project- Returns:
- base directory
-
scanProjects
protected void scanProjects(LocalDiskRepositoryManager.ProjectVisitor visitor)
- Overrides:
scanProjectsin classLocalDiskRepositoryManager
-
-