|
||||||||||
| 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.LocalRepositoryManager
public class LocalRepositoryManager
An implementation of the RepositoryManager interface that operates
directly on the repository data files in the local file system.
| Field Summary | |
|---|---|
static String |
REPOSITORIES_DIR
|
| Fields inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
logger |
| Constructor Summary | |
|---|---|
LocalRepositoryManager(File baseDir)
Creates a new RepositoryManager that operates on the specfified base directory. |
|
| Method Summary | |
|---|---|
String |
addRepositoryConfig(String id,
Model 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. |
List<RepositoryInfo> |
getAllRepositoryInfos(boolean skipSystemRepo)
|
File |
getBaseDir()
Gets the base dir against which to resolve relative paths. |
URL |
getLocation()
Gets the base dir against which to resolve relative paths. |
File |
getRepositoryDir(String repositoryID)
|
RepositoryInfo |
getRepositoryInfo(String id)
Gets the repository that is known by the specified ID from this manager. |
void |
initialize()
Initializes the repository manager. |
File |
resolvePath(String path)
Resolves the specified path against the manager's base directory. |
| Methods inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos, getConfigTemplateManager, getInitializedRepositories, getInitializedRepositoryIDs, getNewRepositoryID, getRepository, getRepositoryConfig, getRepositoryIDs, hasRepositoryConfig, refresh, removeRepositoryConfig, setConfigTemplateManager, setRepositoryConfigManager, shutDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REPOSITORIES_DIR
| Constructor Detail |
|---|
public LocalRepositoryManager(File baseDir)
baseDir - The base directory where data for repositories can be stored, among
other things.| Method Detail |
|---|
public void initialize()
throws StoreConfigException
initialize in class RepositoryManagerStoreException - If the manager failed to initialize the SYSTEM repository.
StoreConfigException - If the manager failed to initialize the SYSTEM repository.public File getBaseDir()
public URL getLocation()
throws MalformedURLException
getLocation in class RepositoryManagerMalformedURLException - If the path cannot be parsed as a URLpublic File resolvePath(String path)
getBaseDir()public File getRepositoryDir(String repositoryID)
protected Repository createRepository(String id)
throws StoreConfigException,
StoreException
RepositoryManager
createRepository in class RepositoryManagerid - A repository ID.
StoreConfigException - If no repository could be created due to invalid or incomplete
configuration data.
StoreException
public String addRepositoryConfig(String id,
Model config)
throws StoreConfigException,
StoreException
RepositoryManager
addRepositoryConfig in class RepositoryManagerconfig - The repository configuration that should be added to or updated in
the system repository.
StoreConfigException - 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.
StoreException - If the manager failed to update it's system repository.
public RepositoryInfo getRepositoryInfo(String id)
throws StoreConfigException
RepositoryManager
getRepositoryInfo in class RepositoryManagerid - A repository ID.
StoreConfigException
public List<RepositoryInfo> getAllRepositoryInfos(boolean skipSystemRepo)
throws StoreConfigException
getAllRepositoryInfos in class RepositoryManagerStoreConfigException
protected void cleanUpRepository(String repositoryID)
throws IOException
RepositoryManager
cleanUpRepository in class RepositoryManagerrepositoryID - the ID of the repository to clean up
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||