public interface LocalRepoRegistry
Modifier and Type | Interface and Description |
---|---|
static interface |
LocalRepoRegistry.Property |
static class |
LocalRepoRegistry.PropertyEnum |
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_KEY_EVICT_DEAD_ENTRIES_PERIOD |
static long |
DEFAULT_EVICT_DEAD_ENTRIES_PERIOD |
static String |
LOCAL_REPO_REGISTRY_FILE |
static final String LOCAL_REPO_REGISTRY_FILE
static final String CONFIG_KEY_EVICT_DEAD_ENTRIES_PERIOD
static final long DEFAULT_EVICT_DEAD_ENTRIES_PERIOD
Collection<UUID> getRepositoryIds()
UUID getRepositoryId(String repositoryName)
UUID getRepositoryIdOrFail(String repositoryName)
URL getLocalRootURLForRepositoryNameOrFail(String repositoryName)
URL getLocalRootURLForRepositoryName(String repositoryName)
File getLocalRootForRepositoryNameOrFail(String repositoryName)
File getLocalRootForRepositoryName(String repositoryName)
repositoryName
.repositoryName
- the String-representation of the repositoryId or
a repositoryAlias. Must not be null
.null
, if the given repositoryName
is neither
a repositoryId nor a repositoryAlias known to this registry.File getLocalRoot(UUID repositoryId)
File getLocalRootOrFail(UUID repositoryId)
void putRepositoryAlias(String repositoryAlias, UUID repositoryId)
Important: Do not call this method directly. Most likely, you should use
LocalRepoManager.putRepositoryAlias(String)
instead!
repositoryAlias
- repositoryId
- void removeRepositoryAlias(String repositoryAlias)
void putRepository(UUID repositoryId, File localRoot)
Collection<String> getRepositoryAliasesOrFail(String repositoryName) throws IllegalArgumentException
repositoryName
- the repository-ID or -alias. Must not be null
.null
, but maybe empty (if there are no aliases for this repository).IllegalArgumentException
- if the repository with the given repositoryName
does not exist,
i.e. it's neither a repository-ID nor a repository-alias of a known repository.Collection<String> getRepositoryAliases(String repositoryName)
repositoryName
- the repository-ID or -alias. Must not be null
.null
, if there is no repository with
the given repositoryName
. Empty, if the repository is known, but there
are no aliases for it.void addPropertyChangeListener(PropertyChangeListener listener)
void addPropertyChangeListener(LocalRepoRegistry.Property property, PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(LocalRepoRegistry.Property property, PropertyChangeListener listener)
Collection<String> getRepositoryAliases()
Copyright © 2013–2019. All rights reserved.