@Deprecated public class RunExecutableListener extends AbstractSolrEventListener implements SolrCoreAware
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
cmd
Deprecated.
|
protected File |
dir
Deprecated.
|
static String |
ENABLED_ARG
Deprecated.
|
protected String[] |
envp
Deprecated.
|
protected boolean |
wait
Deprecated.
|
| Constructor and Description |
|---|
RunExecutableListener(SolrCore core)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
exec(String callback)
Deprecated.
External executable listener.
|
void |
inform(SolrCore core)
Deprecated.
|
void |
init(NamedList args)
Deprecated.
|
void |
newSearcher(SolrIndexSearcher newSearcher,
SolrIndexSearcher currentSearcher)
Deprecated.
The searchers passed here are only guaranteed to be valid for the duration
of this method call, so care should be taken not to spawn threads or asynchronous
tasks with references to these searchers.
|
void |
postCommit()
Deprecated.
|
addEventParms, getArgs, getCore, postSoftCommit, toStringpublic static final String ENABLED_ARG
protected String[] cmd
protected File dir
protected String[] envp
protected boolean wait
public RunExecutableListener(SolrCore core)
public void init(NamedList args)
init in interface NamedListInitializedPlugininit in class AbstractSolrEventListenerpublic void inform(SolrCore core)
inform in interface SolrCoreAwareprotected int exec(String callback)
callback - Unused (As of solr 1.4-dev)public void postCommit()
postCommit in interface SolrEventListenerpostCommit in class AbstractSolrEventListenerpublic void newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher)
SolrEventListener
Implementations should add the EventParams.EVENT parameter and set it to a value of either:
EventParams.FIRST_SEARCHER - First Searcher eventEventParams.NEW_SEARCHER - New Searcher event
if (currentSearcher != null) {
nlst.add(CommonParams.EVENT, CommonParams.NEW_SEARCHER);
} else {
nlst.add(CommonParams.EVENT, CommonParams.FIRST_SEARCHER);
}
newSearcher in interface SolrEventListenernewSearcher in class AbstractSolrEventListenernewSearcher - The new SolrIndexSearcher to usecurrentSearcher - The existing SolrIndexSearcher. null if this is a firstSearcher event.AbstractSolrEventListener.addEventParms(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.common.util.NamedList)Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.