|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.manager.RepositoryManager
org.openrdf.repository.manager.util.TypeFilteringRepositoryManager
public class TypeFilteringRepositoryManager
| Field Summary |
|---|
| Fields inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
logger |
| Constructor Summary | |
|---|---|
TypeFilteringRepositoryManager(String type,
RepositoryManager delegate)
|
|
| Method Summary | |
|---|---|
void |
addRepositoryConfig(RepositoryConfig config)
Adds or updates the configuration of a repository to the manager's system repository. |
protected void |
cleanUpRepository(String repositoryID)
Clean up a removed repository. |
protected Repository |
createRepository(String id)
Creates and initializes the repository with the specified ID. |
protected Repository |
createSystemRepository()
|
Collection<RepositoryInfo> |
getAllRepositoryInfos(boolean skipSystemRepo)
|
Collection<Repository> |
getInitializedRepositories()
Returns all inititalized repositories. |
Set<String> |
getInitializedRepositoryIDs()
Returns all inititalized repositories. |
URL |
getLocation()
Gets the URL of the server or directory. |
String |
getNewRepositoryID(String baseName)
Generates an ID for a new repository based on the specified base name. |
Repository |
getRepository(String id)
Gets the repository that is known by the specified ID from this manager. |
RepositoryConfig |
getRepositoryConfig(String repositoryID)
|
Set<String> |
getRepositoryIDs()
|
RepositoryInfo |
getRepositoryInfo(String id)
Gets the repository that is known by the specified ID from this manager. |
Repository |
getSystemRepository()
Gets the SYSTEM repository. |
boolean |
hasRepositoryConfig(String repositoryID)
|
void |
initialize()
Initializes the repository manager. |
protected boolean |
isCorrectType(RepositoryConfig repositoryConfig)
|
protected boolean |
isCorrectType(String repositoryID)
|
void |
refresh()
Shuts down all initialized user repositories. |
boolean |
removeRepositoryConfig(String repositoryID)
Removes the configuration for the specified repository from the manager's system repository if such a configuration is present. |
void |
shutDown()
Shuts down all initialized repositories, including the SYSTEM repository. |
| Methods inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeFilteringRepositoryManager(String type,
RepositoryManager delegate)
| Method Detail |
|---|
public void initialize()
throws RepositoryException
RepositoryManager
initialize in class RepositoryManagerRepositoryException - If the manager failed to initialize the SYSTEM repository.
public URL getLocation()
throws MalformedURLException
RepositoryManager
getLocation in class RepositoryManagerMalformedURLException - If the location cannot be represented as a URL.
protected Repository createSystemRepository()
throws RepositoryException
createSystemRepository in class RepositoryManagerRepositoryExceptionpublic Repository getSystemRepository()
RepositoryManager
getSystemRepository in class RepositoryManager
public String getNewRepositoryID(String baseName)
throws RepositoryException,
RepositoryConfigException
RepositoryManager
getNewRepositoryID in class RepositoryManagerbaseName - The String on which the returned ID should be based, must not be
null.
RepositoryException
RepositoryConfigException
public Set<String> getRepositoryIDs()
throws RepositoryException
getRepositoryIDs in class RepositoryManagerRepositoryException
public boolean hasRepositoryConfig(String repositoryID)
throws RepositoryException,
RepositoryConfigException
hasRepositoryConfig in class RepositoryManagerRepositoryException
RepositoryConfigException
public RepositoryConfig getRepositoryConfig(String repositoryID)
throws RepositoryConfigException,
RepositoryException
getRepositoryConfig in class RepositoryManagerRepositoryConfigException
RepositoryException
public void addRepositoryConfig(RepositoryConfig config)
throws RepositoryException,
RepositoryConfigException
RepositoryManager
addRepositoryConfig in class RepositoryManagerconfig - The repository configuration that should be added to or updated in
the system repository.
RepositoryException - If the manager failed to update it's system repository.
RepositoryConfigException - If the manager doesn't know how to update a configuration due to
inconsistent configuration data in the system repository. For
example, this happens when there are multiple existing
configurations with the concerning ID.
public boolean removeRepositoryConfig(String repositoryID)
throws RepositoryException,
RepositoryConfigException
RepositoryManager
removeRepositoryConfig in class RepositoryManagerrepositoryID - The ID of the repository whose configuration needs to be removed.
RepositoryException - If the manager failed to update it's system repository.
RepositoryConfigException - If the manager doesn't know how to remove a configuration due to
inconsistent configuration data in the system repository. For
example, this happens when there are multiple existing
configurations with the concerning ID.
public Repository getRepository(String id)
throws RepositoryConfigException,
RepositoryException
RepositoryManager
getRepository in class RepositoryManagerid - A repository ID.
RepositoryConfigException - If no repository could be created due to invalid or incomplete
configuration data.
RepositoryExceptionpublic Set<String> getInitializedRepositoryIDs()
RepositoryManager
getInitializedRepositoryIDs in class RepositoryManagerRepositoryManager.getRepositoryIDs()public Collection<Repository> getInitializedRepositories()
RepositoryManager
getInitializedRepositories in class RepositoryManagerRepositoryManager.getAllRepositories()
protected Repository createRepository(String id)
throws RepositoryConfigException,
RepositoryException
RepositoryManager
createRepository in class RepositoryManagerid - A repository ID.
RepositoryConfigException - If no repository could be created due to invalid or incomplete
configuration data.
RepositoryException
public Collection<RepositoryInfo> getAllRepositoryInfos(boolean skipSystemRepo)
throws RepositoryException
getAllRepositoryInfos in class RepositoryManagerRepositoryException - When not able to retrieve existing configurations
public RepositoryInfo getRepositoryInfo(String id)
throws RepositoryException
RepositoryManager
getRepositoryInfo in class RepositoryManagerid - A repository ID.
RepositoryException - When not able to retrieve existing configurationspublic void refresh()
RepositoryManager
refresh in class RepositoryManagerRepositoryManager.shutDown()public void shutDown()
RepositoryManager
shutDown in class RepositoryManagerRepositoryManager.refresh()
protected void cleanUpRepository(String repositoryID)
throws IOException
RepositoryManager
cleanUpRepository in class RepositoryManagerrepositoryID - the ID of the repository to clean up
IOException
protected boolean isCorrectType(String repositoryID)
throws RepositoryConfigException,
RepositoryException
RepositoryConfigException
RepositoryExceptionprotected boolean isCorrectType(RepositoryConfig repositoryConfig)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||