public class SearchIndexerImpl extends Object implements SearchIndexer
| Modifier and Type | Class and Description |
|---|---|
static interface |
SearchIndexerImpl.IndexerConfig
Interface for tasks to access the Indexer config
|
static class |
SearchIndexerImpl.ListenerList
A simple thread-safe list of event listeners.
|
static interface |
SearchIndexerImpl.Task |
static class |
SearchIndexerImpl.WorkerThreadPool
A thread pool for handling many small units of work submitted by a task.
|
SearchIndexer.Event, SearchIndexer.ListenerApplication.Component.LifecycleState| Constructor and Description |
|---|
SearchIndexerImpl() |
| 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 |
setThreadPoolSize(String size) |
void |
shutdown(Application application)
Stop processing and release resources.
|
void |
startup(Application application,
ComponentStartupStatus ss)
Start processing.
|
void |
unpause()
Resume processing new tasks.
|
void |
validate() |
public void setThreadPoolSize(String size)
public void startup(Application application, ComponentStartupStatus ss)
SearchIndexerstartup in interface Application.Componentstartup in interface SearchIndexerpublic void shutdown(Application application)
SearchIndexershutdown in interface Application.Componentshutdown in interface SearchIndexerpublic void pause()
SearchIndexerpause in interface SearchIndexerpublic void unpause()
SearchIndexerunpause in interface SearchIndexerpublic SearchIndexerStatus getStatus()
SearchIndexergetStatus in interface SearchIndexerpublic void scheduleUpdatesForStatements(List<org.apache.jena.rdf.model.Statement> changes)
SearchIndexerscheduleUpdatesForStatements in interface SearchIndexerchanges - if null or empty, this call has no effect.public void scheduleUpdatesForUris(Collection<String> uris)
SearchIndexerscheduleUpdatesForUris in interface SearchIndexeruris - if null or empty, this call has no effect.public void rebuildIndex()
SearchIndexerrebuildIndex in interface SearchIndexerpublic void addListener(SearchIndexer.Listener listener)
SearchIndexeraddListener in interface SearchIndexerlistener - if null, this method has no effect.public void removeListener(SearchIndexer.Listener listener)
SearchIndexerremoveListener in interface SearchIndexerlistener - if null, this method has no effect.Copyright © 2022. All rights reserved.