public interface SearchIndexer extends Application.Module
| Modifier and Type | Interface and Description |
|---|---|
static class |
SearchIndexer.Event
An immutable event object.
|
static interface |
SearchIndexer.Listener
A listener that will be notified of events from the SearchIndexer.
|
Application.Component.LifecycleState| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SearchIndexer.Listener listener)
Add this listener, allowing it to receive events from the indexer.
|
SearchIndexerStatus |
getStatus()
What is the current status of the indexer?
Still valid after shutdown().
|
void |
pause()
Stop processing new tasks.
|
void |
rebuildIndex()
Remove all of the existing documents in the index, and schedule updates
for all of the individuals in the model.
|
void |
removeListener(SearchIndexer.Listener listener)
Remove this listener, meaning that it will no longer receive events from
the indexer.
|
void |
scheduleUpdatesForStatements(List<org.apache.jena.rdf.model.Statement> changes)
Update any search documents that are affected by these statements.
|
void |
scheduleUpdatesForUris(Collection<String> uris)
Update the search documents for these URIs.
|
void |
shutdown(Application app)
Stop processing and release resources.
|
void |
startup(Application app,
ComponentStartupStatus ss)
Start processing.
|
void |
unpause()
Resume processing new tasks.
|
void startup(Application app, ComponentStartupStatus ss)
startup in interface Application.ComponentIllegalStateException - if called after shutdown, or if called more than once.void pause()
void unpause()
void shutdown(Application app)
shutdown in interface Application.Componentvoid scheduleUpdatesForStatements(List<org.apache.jena.rdf.model.Statement> changes)
changes - if null or empty, this call has no effect.void scheduleUpdatesForUris(Collection<String> uris)
uris - if null or empty, this call has no effect.void rebuildIndex()
SearchIndexerStatus getStatus()
void addListener(SearchIndexer.Listener listener)
listener - if null, this method has no effect.void removeListener(SearchIndexer.Listener listener)
listener - if null, this method has no effect.Copyright © 2022. All rights reserved.