svcore  1.9
PluginRDFIndexer Class Reference

#include <PluginRDFIndexer.h>

Collaboration diagram for PluginRDFIndexer:

List of all members.

Public Member Functions

bool indexConfiguredURLs ()
 Index all URLs obtained from index files defined in the current settings.
bool indexURL (QString url)
QString getURIForPluginId (QString pluginId)
QString getIdForPluginURI (QString uri)
QStringList getIndexedPluginIds ()
const Dataquay::BasicStore * getIndex ()
 ~PluginRDFIndexer ()

Static Public Member Functions

static PluginRDFIndexergetInstance ()

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 PluginRDFIndexerm_instance = 0

Detailed Description

Definition at line 29 of file PluginRDFIndexer.h.


Member Typedef Documentation

typedef std::map<QString, QString> PluginRDFIndexer::StringMap [protected]

Definition at line 63 of file PluginRDFIndexer.h.


Constructor & Destructor Documentation

Definition at line 77 of file PluginRDFIndexer.cpp.

References m_mutex.

Definition at line 62 of file PluginRDFIndexer.cpp.

References indexInstalledURLs(), and m_index.

Referenced by getInstance().


Member Function Documentation

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 140 of file PluginRDFIndexer.cpp.

References CachedFile::getLocalFilename(), CachedFile::isOK(), pullURL(), reindex(), and SVDEBUG.

Referenced by RDFFeatureWriter::write().

bool PluginRDFIndexer::indexURL ( QString  url)

Definition at line 251 of file PluginRDFIndexer.cpp.

References pullURL(), and reindex().

Referenced by getIdForPluginURI().

QString PluginRDFIndexer::getIdForPluginURI ( QString  uri)

Definition at line 196 of file PluginRDFIndexer.cpp.

References indexURL(), m_mutex, and m_uriToIdMap.

Referenced by RDFTransformFactoryImpl::getTransforms().

Definition at line 230 of file PluginRDFIndexer.cpp.

References m_idToUriMap, and m_mutex.

Definition at line 83 of file PluginRDFIndexer.cpp.

References pullFile(), and reindex().

Referenced by PluginRDFIndexer().

bool PluginRDFIndexer::pullFile ( QString  path) [protected]

Definition at line 243 of file PluginRDFIndexer.cpp.

References pullURL().

Referenced by indexInstalledURLs().


Member Data Documentation

Definition at line 64 of file PluginRDFIndexer.h.

Referenced by getIdForPluginURI(), and reindex().

Dataquay::BasicStore* PluginRDFIndexer::m_index [protected]

Definition at line 73 of file PluginRDFIndexer.h.

Referenced by getIndex(), PluginRDFIndexer(), pullURL(), and reindex().

Definition at line 75 of file PluginRDFIndexer.h.

Referenced by getInstance().


The documentation for this class was generated from the following files: