svcore
1.9
|
#include <PluginRDFIndexer.h>

Public Member Functions | |
bool | indexConfiguredURLs () |
Index all URLs obtained from index files defined in the current settings. More... | |
bool | indexURL (QString url) |
QString | getURIForPluginId (QString pluginId) |
QString | getIdForPluginURI (QString uri) |
QStringList | getIndexedPluginIds () |
void | performConsistencyChecks () |
Perform various checks for consistency of RDF definitions, printing warnings to stderr/logfile as appropriate. More... | |
const Dataquay::BasicStore * | getIndex () |
~PluginRDFIndexer () | |
Static Public Member Functions | |
static PluginRDFIndexer * | getInstance () |
Protected Types | |
typedef std::map< QString, QString > | StringMap |
Protected Member Functions | |
PluginRDFIndexer () | |
void | indexInstalledURLs () |
bool | pullFile (QString path) |
bool | pullURL (QString urlString) |
bool | reindex () |
Protected Attributes | |
QMutex | m_mutex |
StringMap | m_uriToIdMap |
StringMap | m_idToUriMap |
Dataquay::BasicStore * | m_index |
Static Protected Attributes | |
static PluginRDFIndexer * | m_instance = nullptr |
Detailed Description
Definition at line 29 of file PluginRDFIndexer.h.
Member Typedef Documentation
|
protected |
Definition at line 69 of file PluginRDFIndexer.h.
Constructor & Destructor Documentation
PluginRDFIndexer::~PluginRDFIndexer | ( | ) |
Definition at line 78 of file PluginRDFIndexer.cpp.
References m_mutex.
|
protected |
Definition at line 63 of file PluginRDFIndexer.cpp.
References indexInstalledURLs(), and m_index.
Referenced by getInstance().
Member Function Documentation
|
static |
Definition at line 57 of file PluginRDFIndexer.cpp.
References m_instance, and PluginRDFIndexer().
Referenced by RDFTransformFactoryImpl::getTransforms(), PluginRDFDescription::indexMetadata(), PluginRDFDescription::indexOutputs(), PluginRDFDescription::PluginRDFDescription(), TransformFactory::populateUninstalledTransforms(), RDFTransformFactoryImpl::setOutput(), RDFTransformFactoryImpl::setParameters(), RDFFeatureWriter::write(), and RDFTransformFactoryImpl::writeTransformToRDF().
bool PluginRDFIndexer::indexConfiguredURLs | ( | ) |
Index all URLs obtained from index files defined in the current settings.
In contrast to indexing URLs that are installed locally alongside plugins, this is not done automatically because it may incur significant processing and networking effort. It could be called from a background thread at startup, for example.
Note that this class has a single mutex, so other functions will block if called from a different thread while this one is running.
Definition at line 141 of file PluginRDFIndexer.cpp.
References CachedFile::getLocalFilename(), CachedFile::isOK(), pullURL(), reindex(), and SVDEBUG.
Referenced by TransformFactory::populateUninstalledTransforms(), and RDFFeatureWriter::write().
bool PluginRDFIndexer::indexURL | ( | QString | url | ) |
Definition at line 274 of file PluginRDFIndexer.cpp.
References pullURL(), and reindex().
Referenced by getIdForPluginURI().
QString PluginRDFIndexer::getURIForPluginId | ( | QString | pluginId | ) |
Definition at line 210 of file PluginRDFIndexer.cpp.
References m_idToUriMap, and m_mutex.
Referenced by PluginRDFDescription::PluginRDFDescription(), and RDFTransformFactoryImpl::writeTransformToRDF().
QString PluginRDFIndexer::getIdForPluginURI | ( | QString | uri | ) |
Definition at line 219 of file PluginRDFIndexer.cpp.
References indexURL(), m_mutex, m_uriToIdMap, and SVDEBUG.
Referenced by RDFTransformFactoryImpl::getTransforms().
QStringList PluginRDFIndexer::getIndexedPluginIds | ( | ) |
Definition at line 253 of file PluginRDFIndexer.cpp.
References m_idToUriMap, and m_mutex.
Referenced by TransformFactory::populateUninstalledTransforms().
void PluginRDFIndexer::performConsistencyChecks | ( | ) |
Perform various checks for consistency of RDF definitions, printing warnings to stderr/logfile as appropriate.
Definition at line 189 of file PluginRDFIndexer.cpp.
References m_index, and SVCERR.
Referenced by TransformFactory::populateUninstalledTransforms().
const BasicStore * PluginRDFIndexer::getIndex | ( | ) |
Definition at line 73 of file PluginRDFIndexer.cpp.
References m_index.
Referenced by PluginRDFDescription::indexMetadata(), PluginRDFDescription::indexOutputs(), RDFTransformFactoryImpl::setOutput(), and RDFTransformFactoryImpl::setParameters().
|
protected |
Definition at line 84 of file PluginRDFIndexer.cpp.
References pullFile(), and reindex().
Referenced by PluginRDFIndexer().
|
protected |
Definition at line 266 of file PluginRDFIndexer.cpp.
References pullURL().
Referenced by indexInstalledURLs().
|
protected |
Definition at line 283 of file PluginRDFIndexer.cpp.
References FileSource::canHandleScheme(), CachedFile::getLocalFilename(), CachedFile::isOK(), FileSource::isRemote(), m_index, m_mutex, and SVDEBUG.
Referenced by indexConfiguredURLs(), indexURL(), and pullFile().
|
protected |
Definition at line 324 of file PluginRDFIndexer.cpp.
References PluginIdentifier::createIdentifier(), m_idToUriMap, m_index, m_uriToIdMap, and SVDEBUG.
Referenced by indexConfiguredURLs(), indexInstalledURLs(), and indexURL().
Member Data Documentation
|
protected |
Definition at line 67 of file PluginRDFIndexer.h.
Referenced by getIdForPluginURI(), getIndexedPluginIds(), getURIForPluginId(), pullURL(), and ~PluginRDFIndexer().
|
protected |
Definition at line 70 of file PluginRDFIndexer.h.
Referenced by getIdForPluginURI(), and reindex().
|
protected |
Definition at line 71 of file PluginRDFIndexer.h.
Referenced by getIndexedPluginIds(), getURIForPluginId(), and reindex().
|
protected |
Definition at line 79 of file PluginRDFIndexer.h.
Referenced by getIndex(), performConsistencyChecks(), PluginRDFIndexer(), pullURL(), and reindex().
|
staticprotected |
Definition at line 81 of file PluginRDFIndexer.h.
Referenced by getInstance().
The documentation for this class was generated from the following files:
Generated by
