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 class
MultiBaseLocalDiskRepositoryManager.Module
-
Nested classes/interfaces inherited from class com.google.gerrit.server.git.LocalDiskRepositoryManager
LocalDiskRepositoryManager.Lifecycle, LocalDiskRepositoryManager.ProjectVisitor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getBasePath(Project.NameKey name)
Return the basePath under which the specified project is stored.protected void
scanProjects(LocalDiskRepositoryManager.ProjectVisitor visitor)
-
Methods inherited from class com.google.gerrit.server.git.LocalDiskRepositoryManager
createRepository, list, openRepository
-
-
-
-
Method Detail
-
getBasePath
public Path getBasePath(Project.NameKey name)
Description copied from class:LocalDiskRepositoryManager
Return the basePath under which the specified project is stored.- Overrides:
getBasePath
in classLocalDiskRepositoryManager
- Parameters:
name
- the name of the project- Returns:
- base directory
-
scanProjects
protected void scanProjects(LocalDiskRepositoryManager.ProjectVisitor visitor)
- Overrides:
scanProjects
in classLocalDiskRepositoryManager
-
-