Package | Description |
---|---|
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryCache.FileKey
Location of a Repository, using the standard java.io.File API.
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentHashMap<RepositoryCache.Key,Repository> |
RepositoryCache.cacheMap |
Modifier and Type | Method and Description |
---|---|
private java.util.Collection<RepositoryCache.Key> |
RepositoryCache.getKeys() |
static java.util.Collection<RepositoryCache.Key> |
RepositoryCache.getRegisteredKeys()
Get the locations of all repositories registered in the cache.
|
Modifier and Type | Method and Description |
---|---|
private RepositoryCache.Lock |
RepositoryCache.lockFor(RepositoryCache.Key location) |
static Repository |
RepositoryCache.open(RepositoryCache.Key location)
Open an existing repository, reusing a cached instance if possible.
|
static Repository |
RepositoryCache.open(RepositoryCache.Key location,
boolean mustExist)
Open a repository, reusing a cached instance if possible.
|
private Repository |
RepositoryCache.openRepository(RepositoryCache.Key location,
boolean mustExist) |
private void |
RepositoryCache.registerRepository(RepositoryCache.Key location,
Repository db) |
static void |
RepositoryCache.unregister(RepositoryCache.Key location)
Remove a repository from the cache.
|
private void |
RepositoryCache.unregisterAndCloseRepository(RepositoryCache.Key location) |
private Repository |
RepositoryCache.unregisterRepository(RepositoryCache.Key location) |