Java Doc for RepositoryManager.java in  » RSS-RDF » sesame » org » openrdf » repository » manager » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » sesame » org.openrdf.repository.manager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openrdf.repository.manager.RepositoryManager

All known Subclasses:   org.openrdf.repository.manager.LocalRepositoryManager,  org.openrdf.repository.manager.RemoteRepositoryManager,
RepositoryManager
abstract public class RepositoryManager (Code)
A manager for Repository s. Every RepositoryManager has one SYSTEM repository and zero or more "user repositories". The SYSTEM repository contains data that describes the configuration of the other repositories (their IDs, which implementations of the Repository API to use, access rights, etc.). The other repositories are instantiated based on this configuration data.
author:
   Arjohn Kampman


Field Summary
final protected  Loggerlogger
    

Constructor Summary
public  RepositoryManager()
     Creates a new RepositoryManager that operates on the specfified base directory.

Method Summary
public  voidaddRepositoryConfig(RepositoryConfig config)
     Adds or updates the configuration of a repository to the manager's system repository.
abstract protected  voidcleanUpRepository(String repositoryID)
     Clean up a removed repository.
abstract protected  RepositorycreateRepository(String id)
     Creates and initializes the repository with the specified ID.
Parameters:
  id - A repository ID.
abstract protected  RepositorycreateSystemRepository()
    
public  Collection<Repository>getAllRepositories()
     Returns all configured repositories.
public  Collection<RepositoryInfo>getAllRepositoryInfos()
    
abstract public  Collection<RepositoryInfo>getAllRepositoryInfos(boolean skipSystemRepo)
    
public  Collection<RepositoryInfo>getAllUserRepositoryInfos()
    
public  Collection<Repository>getInitializedRepositories()
     Returns all inititalized repositories.
public  RepositorygetRepository(String id)
     Gets the repository that is known by the specified ID from this manager.
Parameters:
  id - A repository ID.
public  RepositoryConfiggetRepositoryConfig(String repositoryID)
    
public  Set<String>getRepositoryIDs()
    
abstract public  RepositoryInfogetRepositoryInfo(String id)
     Gets the repository that is known by the specified ID from this manager.
Parameters:
  id - A repository ID.
public  RepositorygetSystemRepository()
     Gets the SYSTEM repository.
public  booleanhasRepositoryConfig(String repositoryID)
    
public  voidinitialize()
     Initializes the repository manager.
public  voidrefresh()
     Shuts down all initialized user repositories.
public  booleanremoveRepositoryConfig(String repositoryID)
     Removes the configuration for the specified repository from the manager's system repository if such a configuration is present.
public  voidshutDown()
     Shuts down all initialized repositories, including the SYSTEM repository.

Field Detail
logger
final protected Logger logger(Code)




Constructor Detail
RepositoryManager
public RepositoryManager()(Code)
Creates a new RepositoryManager that operates on the specfified base directory.
Parameters:
  baseDir - The base directory where data for repositories can be stored, amongother things.




Method Detail
addRepositoryConfig
public void addRepositoryConfig(RepositoryConfig config) throws RepositoryException, RepositoryConfigException(Code)
Adds or updates the configuration of a repository to the manager's system repository. The system repository may already contain a configuration for a repository with the same ID as specified by config, in which case all previous configuration data for that repository will be cleared before the new configuration is added.
Parameters:
  config - The repository configuration that should be added to or updated inthe system repository.
throws:
  RepositoryException - If the manager failed to update it's system repository.
throws:
  RepositoryConfigException - If the manager doesn't know how to update a configuration due toinconsistent configuration data in the system repository. Forexample, this happens when there are multiple existingconfigurations with the concerning ID.



cleanUpRepository
abstract protected void cleanUpRepository(String repositoryID) throws IOException(Code)
Clean up a removed repository. Note that the configuration for this repository is no longer present in the system repository.
Parameters:
  repositoryID - the ID of the repository to clean up
throws:
  IOException -



createRepository
abstract protected Repository createRepository(String id) throws RepositoryConfigException, RepositoryException(Code)
Creates and initializes the repository with the specified ID.
Parameters:
  id - A repository ID. The created repository, or null if no such repositoryexists.
throws:
  RepositoryConfigException - If no repository could be created due to invalid or incompleteconfiguration data.



createSystemRepository
abstract protected Repository createSystemRepository() throws RepositoryException(Code)



getAllRepositories
public Collection<Repository> getAllRepositories() throws RepositoryConfigException, RepositoryException(Code)
Returns all configured repositories. This may be an expensive operation as it initializes repositories that have not been initialized yet. The Set of all Repositories defined in the SystemRepository.
See Also:   RepositoryManager.getInitializedRepositories()



getAllRepositoryInfos
public Collection<RepositoryInfo> getAllRepositoryInfos() throws RepositoryException(Code)



getAllRepositoryInfos
abstract public Collection<RepositoryInfo> getAllRepositoryInfos(boolean skipSystemRepo) throws RepositoryException(Code)

Parameters:
  skipSystemRepo -
throws:
  RepositoryException - When not able to retrieve existing configurations



getAllUserRepositoryInfos
public Collection<RepositoryInfo> getAllUserRepositoryInfos() throws RepositoryException(Code)



getInitializedRepositories
public Collection<Repository> getInitializedRepositories()(Code)
Returns all inititalized repositories. This method returns fast as no lazy creation of repositories takes place. An unmodifiable collection containing the initializedrepositories.
See Also:   RepositoryManager.getAllRepositories()



getRepository
public Repository getRepository(String id) throws RepositoryConfigException, RepositoryException(Code)
Gets the repository that is known by the specified ID from this manager.
Parameters:
  id - A repository ID. A Repository object, or null if no repository was knownfor the specified ID.
throws:
  RepositoryConfigException - If no repository could be created due to invalid or incompleteconfiguration data.



getRepositoryConfig
public RepositoryConfig getRepositoryConfig(String repositoryID) throws RepositoryConfigException, RepositoryException(Code)



getRepositoryIDs
public Set<String> getRepositoryIDs() throws RepositoryException(Code)



getRepositoryInfo
abstract public RepositoryInfo getRepositoryInfo(String id) throws RepositoryException(Code)
Gets the repository that is known by the specified ID from this manager.
Parameters:
  id - A repository ID. A Repository object, or null if no repository was knownfor the specified ID.
throws:
  RepositoryException - When not able to retrieve existing configurations



getSystemRepository
public Repository getSystemRepository()(Code)
Gets the SYSTEM repository.



hasRepositoryConfig
public boolean hasRepositoryConfig(String repositoryID) throws RepositoryException, RepositoryConfigException(Code)



initialize
public void initialize() throws RepositoryException(Code)
Initializes the repository manager.
throws:
  RepositoryException - If the manager failed to initialize the SYSTEM repository.



refresh
public void refresh()(Code)
Shuts down all initialized user repositories.
See Also:   RepositoryManager.shutDown()



removeRepositoryConfig
public boolean removeRepositoryConfig(String repositoryID) throws RepositoryException, RepositoryConfigException(Code)
Removes the configuration for the specified repository from the manager's system repository if such a configuration is present. Returns true if the system repository actually contained the specified repository configuration.
Parameters:
  repositoryID - The ID of the repository whose configuration needs to be removed.
throws:
  RepositoryException - If the manager failed to update it's system repository.
throws:
  RepositoryConfigException - If the manager doesn't know how to remove a configuration due toinconsistent configuration data in the system repository. Forexample, this happens when there are multiple existingconfigurations with the concerning ID.



shutDown
public void shutDown()(Code)
Shuts down all initialized repositories, including the SYSTEM repository.
See Also:   RepositoryManager.refresh()



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.