public interface DicooglePlatformInterface
For instance, if a graphical plugin needs to query, it will able to access query providers with this platform.
QueryInterface
,
IndexerInterface
,
StorageInterface
Modifier and Type | Method and Description |
---|---|
java.util.Collection<IndexerInterface> |
getAllIndexPlugins()
Obtains a collection of all active index plugins.
|
java.util.Collection<QueryInterface> |
getAllQueryPlugins()
Obtains a collection of all active query plugins.
|
java.util.Collection<QueryInterface> |
getQueryPlugins(boolean onlyEnabled)
Obtains all installed query plugins.
|
QueryInterface |
getQueryProviderByName(java.lang.String name,
boolean onlyEnabled)
Gets the query provider with the given name.
|
java.util.List<java.lang.String> |
getQueryProvidersName(boolean enabled)
Gets the names of all query providers.
|
ServerSettingsReader |
getSettings()
Obtain access to the server's settings.
|
StorageInterface |
getStorageForSchema(java.lang.String scheme)
Obtains the storage interface for handling storage of the given scheme.
|
StorageInterface |
getStorageForSchema(java.net.URI location)
Obtains the storage interface for handling content in the given location.
|
StorageInterface |
getStoragePluginForSchema(java.lang.String scheme)
Obtains the storage interface for handling storage of the given scheme.
|
java.util.Collection<StorageInterface> |
getStoragePlugins(boolean onlyEnabled)
Obtains all installed storage plugins.
|
java.util.List<Task<Report>> |
index(java.net.URI path)
Easily performs an indexation procedure over all active indexers.
|
java.util.List<Report> |
indexBlocking(java.net.URI path)
Easily performs an indexation procedure over all active indexers.
|
JointQueryTask |
query(JointQueryTask holder,
java.util.List<java.lang.String> querySources,
java.lang.String query,
java.lang.Object... parameters)
Easily performs a query over multiple providers.
|
Task<java.lang.Iterable<SearchResult>> |
query(java.lang.String querySource,
java.lang.String query,
java.lang.Object... parameters)
Easily performs a query over a specific provider.
|
JointQueryTask |
queryAll(JointQueryTask holder,
java.lang.String query,
java.lang.Object... parameters)
Easily performs a query over all query providers.
|
IndexerInterface |
requestIndexPlugin(java.lang.String name)
Gets an installed indexer plugin by name.
|
QueryInterface |
requestQueryPlugin(java.lang.String name)
Gets an installed query plugin by name.
|
java.lang.Iterable<StorageInputStream> |
resolveURI(java.net.URI location,
java.lang.Object... args)
Quickly obtains all storage elements at the given location.
|
IndexerInterface requestIndexPlugin(java.lang.String name)
name
- the name of the pluginQueryInterface requestQueryPlugin(java.lang.String name)
name
- the name of the pluginjava.util.Collection<IndexerInterface> getAllIndexPlugins()
IndexerInterface
java.util.Collection<QueryInterface> getAllQueryPlugins()
QueryInterface
StorageInterface getStoragePluginForSchema(java.lang.String scheme)
scheme
- the storage schemenull
if no storage plugin
installed can.StorageInterface getStorageForSchema(java.net.URI location)
location
- the storage location to checknull
if no storage plugin
installed canjava.lang.Iterable<StorageInputStream> resolveURI(java.net.URI location, java.lang.Object... args)
location
- the location to retrieveargs
- a variable list of extra parameters for the retrievejava.util.Collection<StorageInterface> getStoragePlugins(boolean onlyEnabled)
onlyEnabled
- whether only enabled plugins should be retrieved (all are retrieved if false
)StorageInterface getStorageForSchema(java.lang.String scheme)
getStoragePluginForSchema(java.lang.String)
.scheme
- the storage schemenull
if no storage plugin
installed canjava.util.Collection<QueryInterface> getQueryPlugins(boolean onlyEnabled)
onlyEnabled
- whether only enabled plugins should be retrieved (all are retrieved if false
)java.util.List<java.lang.String> getQueryProvidersName(boolean enabled)
enabled
- whether only enabled plugins should be retrieved (all are retrieved if false
)QueryInterface getQueryProviderByName(java.lang.String name, boolean onlyEnabled)
name
- the unique name of the provideronlyEnabled
- whether only enabled plugins should be retrieved (all are retrieved if false
)JointQueryTask queryAll(JointQueryTask holder, java.lang.String query, java.lang.Object... parameters)
holder
- a query task holder containing callback methodsquery
- a string describing the queryparameters
- a variable list of extra parameters for the queryTask<java.lang.Iterable<SearchResult>> query(java.lang.String querySource, java.lang.String query, java.lang.Object... parameters)
querySource
- the name of the query provider to issuequery
- a string describing the queryparameters
- a variable list of extra parameters for the queryJointQueryTask query(JointQueryTask holder, java.util.List<java.lang.String> querySources, java.lang.String query, java.lang.Object... parameters)
holder
- a query task holder containing callback methodsquerySources
- a list of names of query providers to issuequery
- a string describing the queryparameters
- a variable list of extra parameters for the queryjava.util.List<Task<Report>> index(java.net.URI path)
path
- the path to indexjava.util.List<Report> indexBlocking(java.net.URI path)
path
- the path to indexServerSettingsReader getSettings()