|
||||||||||
| 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.RemoteRepositoryManager
public class RemoteRepositoryManager
A manager for Repositorys that reside on a remote server. This
repository manager allows one to access repositories over HTTP similar to how
local repositories are accessed using the LocalRepositoryManager.
| Field Summary |
|---|
| Fields inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
logger |
| Constructor Summary | |
|---|---|
RemoteRepositoryManager(String serverURL)
Creates a new RepositoryManager that operates on the specfified base directory. |
|
| Method Summary | |
|---|---|
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)
|
RepositoryInfo |
getRepositoryInfo(String id)
Gets the repository that is known by the specified ID from this manager. |
String |
getServerURL()
Gets the URL of the remote server, e.g. |
HTTPRepository |
getSystemRepository()
Gets the SYSTEM repository. |
void |
setUsernameAndPassword(String username,
String password)
Set the username and password for authenication with the remote server. |
| Methods inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
addRepositoryConfig, getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos, getInitializedRepositories, getRepository, getRepositoryConfig, getRepositoryIDs, hasRepositoryConfig, initialize, refresh, removeRepositoryConfig, shutDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteRepositoryManager(String serverURL)
baseDir - The base directory where data for repositories can be stored, among
other things.| Method Detail |
|---|
public void setUsernameAndPassword(String username,
String password)
username - the usernamepassword - the password
protected Repository createSystemRepository()
throws RepositoryException
createSystemRepository in class RepositoryManagerRepositoryExceptionpublic String getServerURL()
public HTTPRepository getSystemRepository()
RepositoryManager
getSystemRepository in class RepositoryManager
protected Repository createRepository(String id)
throws RepositoryConfigException,
RepositoryException
createRepository in class RepositoryManagerid - A repository ID.
RepositoryConfigException - If no repository could be created due to invalid or incomplete
configuration data.
RepositoryException
public RepositoryInfo getRepositoryInfo(String id)
throws RepositoryException
RepositoryManager
getRepositoryInfo in class RepositoryManagerid - A repository ID.
RepositoryException - When not able to retrieve existing configurations
public Collection<RepositoryInfo> getAllRepositoryInfos(boolean skipSystemRepo)
throws RepositoryException
getAllRepositoryInfos in class RepositoryManagerRepositoryException - When not able to retrieve existing configurations
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 | |||||||||