|
||||||||||
| 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
info.aduna.infosource.manager.InfoSourceManager
public class InfoSourceManager
An InfoSourceManager is a RepositoryManager extended with capabilities for scheduling and invoking CrawlingRepositories.
| Field Summary | |
|---|---|
static String |
INFOSOURCE_PREFIX
|
| Fields inherited from class org.openrdf.repository.manager.LocalRepositoryManager |
|---|
REPOSITORIES_DIR |
| Constructor Summary | |
|---|---|
InfoSourceManager(File dataDir)
|
|
| Method Summary | |
|---|---|
void |
addInfoSourceManagerListener(InfoSourceManagerListener listener)
|
void |
crawl(Collection<CrawlingRepository> sources,
boolean fullRecrawl)
Crawls the specified CrawlingRepositories. |
void |
crawl(CrawlingRepository source,
boolean fullRecrawl)
Crawls the specified CrawlingRepository. |
void |
crawlAll(boolean fullRecrawl,
boolean useListCrawlPreference)
Sequentially crawls all CrawlingRepositories. |
String |
createID(String baseName)
Derives a ID from a specified base name. |
CrawlingRepository |
getCrawlingRepository(String id)
Returns the CrawlingRepository with the specified ID. |
Executor |
getLocalQueryExecutor()
|
Executor |
getRemoteQueryExecutor()
|
RemoteRepository |
getRemoteRepository(String id)
Returns the RemoteRepository with the specified ID. |
void |
initialize()
|
boolean |
isKnownRepositoryId(String id)
Determines if the current ID is already in use as a Repository ID. |
void |
refresh()
|
void |
removeInfoSourceManagerListener(InfoSourceManagerListener listener)
|
void |
scheduleCrawl(String repositoryID,
boolean fullRecrawl)
Schedules an immediate recrawl of the specified CrawlingRepository. |
void |
shutDown()
|
void |
startScheduler()
Starts the recrawl scheduler. |
void |
stopCrawling()
Stops the currently ongoing crawl. |
void |
stopCrawling(CrawlingRepository repository)
|
void |
stopScheduler()
Stops the recrawl scheduler. |
| Methods inherited from class org.openrdf.repository.manager.LocalRepositoryManager |
|---|
cleanUpRepository, createRepository, createSystemRepository, getAllRepositoryInfos, getBaseDir, getRepositoryDir, getRepositoryInfo, getSystemRepository, resolvePath |
| Methods inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
addRepositoryConfig, getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos, getInitializedRepositories, getRepository, getRepositoryConfig, getRepositoryIDs, hasRepositoryConfig, removeRepositoryConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INFOSOURCE_PREFIX
| Constructor Detail |
|---|
public InfoSourceManager(File dataDir)
| Method Detail |
|---|
public String createID(String baseName)
throws org.openrdf.repository.RepositoryException
baseName - The String on which the returned ID should be based. This may be
null or an empty string.
org.openrdf.repository.RepositoryException - when queries to the system repository fails.
public boolean isKnownRepositoryId(String id)
throws org.openrdf.repository.RepositoryException
id - The ID to test.
org.openrdf.repository.RepositoryException - Whenever access to the SystemRepository results in a
RepositoryException.
public void initialize()
throws org.openrdf.repository.RepositoryException
initialize in class org.openrdf.repository.manager.RepositoryManagerorg.openrdf.repository.RepositoryExceptionpublic void startScheduler()
public void stopScheduler()
public void refresh()
refresh in class org.openrdf.repository.manager.RepositoryManager
public CrawlingRepository getCrawlingRepository(String id)
throws org.openrdf.repository.config.RepositoryConfigException,
org.openrdf.repository.RepositoryException
id - The ID of a CrawlingRepository.
org.openrdf.repository.config.RepositoryConfigException
org.openrdf.repository.RepositoryException
public RemoteRepository getRemoteRepository(String id)
throws org.openrdf.repository.config.RepositoryConfigException,
org.openrdf.repository.RepositoryException
id - The ID of a RemoteRepository.
org.openrdf.repository.config.RepositoryConfigException
org.openrdf.repository.RepositoryExceptionpublic void shutDown()
shutDown in class org.openrdf.repository.manager.RepositoryManager
public void crawlAll(boolean fullRecrawl,
boolean useListCrawlPreference)
throws org.openrdf.repository.config.RepositoryConfigException,
org.openrdf.repository.RepositoryException
fullRecrawl - Flag indicating whether a full- or incremental crawl should be
performed.useListCrawlPreference - Flag indicating whether the "include in list crawl" property should
be obeyed.
org.openrdf.repository.config.RepositoryConfigException
org.openrdf.repository.RepositoryException
public void crawl(Collection<CrawlingRepository> sources,
boolean fullRecrawl)
sources - A Collection of CrawlingRepositories.fullRecrawl - Flag indicating whether a full- or incremental crawl should be
performed.
public void crawl(CrawlingRepository source,
boolean fullRecrawl)
source - The CrawlingRepository to crawl.fullRecrawl - Flag indicating whether a full- or incremental crawl should be
performed.
public void scheduleCrawl(String repositoryID,
boolean fullRecrawl)
repositoryID - The ID of a CrawlingRepository.fullRecrawl - If true, a full recrawl will be performed, otherwise an
incremental recrawl is performed.public void stopCrawling()
public void stopCrawling(CrawlingRepository repository)
public Executor getRemoteQueryExecutor()
public Executor getLocalQueryExecutor()
public void addInfoSourceManagerListener(InfoSourceManagerListener listener)
public void removeInfoSourceManagerListener(InfoSourceManagerListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||