public class LocalRepoRegistryImpl extends Object implements LocalRepoRegistry
LocalRepoRegistry.Property, LocalRepoRegistry.PropertyEnumCONFIG_KEY_EVICT_DEAD_ENTRIES_PERIOD, DEFAULT_EVICT_DEAD_ENTRIES_PERIOD, LOCAL_REPO_REGISTRY_FILEpublic static LocalRepoRegistry getInstance()
public Collection<UUID> getRepositoryIds()
getRepositoryIds in interface LocalRepoRegistrypublic UUID getRepositoryId(String repositoryName)
getRepositoryId in interface LocalRepoRegistrypublic UUID getRepositoryIdOrFail(String repositoryName)
getRepositoryIdOrFail in interface LocalRepoRegistrypublic URL getLocalRootURLForRepositoryNameOrFail(String repositoryName)
getLocalRootURLForRepositoryNameOrFail in interface LocalRepoRegistrypublic URL getLocalRootURLForRepositoryName(String repositoryName)
getLocalRootURLForRepositoryName in interface LocalRepoRegistrypublic File getLocalRootForRepositoryNameOrFail(String repositoryName)
getLocalRootForRepositoryNameOrFail in interface LocalRepoRegistrypublic File getLocalRootForRepositoryName(String repositoryName)
LocalRepoRegistryrepositoryName.getLocalRootForRepositoryName in interface LocalRepoRegistryrepositoryName - 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.public File getLocalRoot(UUID repositoryId)
getLocalRoot in interface LocalRepoRegistrypublic File getLocalRootOrFail(UUID repositoryId)
getLocalRootOrFail in interface LocalRepoRegistrypublic void putRepositoryAlias(String repositoryAlias, UUID repositoryId)
LocalRepoRegistry
Important: Do not call this method directly. Most likely, you should use
LocalRepoManager.putRepositoryAlias(String) instead!
putRepositoryAlias in interface LocalRepoRegistrypublic Collection<String> getRepositoryAliases()
getRepositoryAliases in interface LocalRepoRegistrypublic void removeRepositoryAlias(String repositoryAlias)
removeRepositoryAlias in interface LocalRepoRegistrypublic void putRepository(UUID repositoryId, File localRoot)
putRepository in interface LocalRepoRegistryprotected Date getPropertyAsDate(String key)
public Collection<String> getRepositoryAliasesOrFail(String repositoryName) throws IllegalArgumentException
LocalRepoRegistrygetRepositoryAliasesOrFail in interface LocalRepoRegistryrepositoryName - 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.public Collection<String> getRepositoryAliases(String repositoryName)
LocalRepoRegistrygetRepositoryAliases in interface LocalRepoRegistryrepositoryName - 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.public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface LocalRepoRegistrypublic void addPropertyChangeListener(LocalRepoRegistry.Property property, PropertyChangeListener listener)
addPropertyChangeListener in interface LocalRepoRegistrypublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface LocalRepoRegistrypublic void removePropertyChangeListener(LocalRepoRegistry.Property property, PropertyChangeListener listener)
removePropertyChangeListener in interface LocalRepoRegistryprotected void firePropertyChange(LocalRepoRegistry.Property property, Object oldValue, Object newValue)
Copyright © 2013–2017. All rights reserved.