X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=solr-4.6.0%2Fdocs%2Fsolr-core%2Forg%2Fapache%2Fsolr%2Fcore%2FAbstractSolrEventListener.html;fp=solr-4.6.0%2Fdocs%2Fsolr-core%2Forg%2Fapache%2Fsolr%2Fcore%2FAbstractSolrEventListener.html;h=c6e5071d86e6352799bb30be3b482e6dfede7bdc;hb=984cb2d01d9df08990e216e765a0cd5f2724cff6;hp=0000000000000000000000000000000000000000;hpb=0a506fa4326a039654939ad76e2201a7e4885dbf;p=libre10%2Flibre10.git diff --git a/solr-4.6.0/docs/solr-core/org/apache/solr/core/AbstractSolrEventListener.html b/solr-4.6.0/docs/solr-core/org/apache/solr/core/AbstractSolrEventListener.html new file mode 100644 index 0000000..c6e5071 --- /dev/null +++ b/solr-4.6.0/docs/solr-core/org/apache/solr/core/AbstractSolrEventListener.html @@ -0,0 +1,481 @@ + + + +
+ + +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + org.apache.solr.core.AbstractSolrEventListener ++
public class AbstractSolrEventListener
+
+Field Summary | +
---|
Fields inherited from interface org.apache.solr.core.SolrEventListener | +
---|
log |
+
+Constructor Summary | +|
---|---|
AbstractSolrEventListener(SolrCore core)
+
++ |
+
+Method Summary | +|
---|---|
+protected NamedList |
+addEventParms(SolrIndexSearcher currentSearcher,
+ NamedList nlst)
+
++ Add the EventParams.EVENT with either the EventParams.NEW_SEARCHER
+ or EventParams.FIRST_SEARCHER values depending on the value of currentSearcher. |
+
+ NamedList |
+getArgs()
+
++ |
+
+ SolrCore |
+getCore()
+
++ |
+
+ void |
+init(NamedList args)
+
++ |
+
+ void |
+newSearcher(SolrIndexSearcher newSearcher,
+ SolrIndexSearcher currentSearcher)
+
++ 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()
+
++ |
+
+ void |
+postSoftCommit()
+
++ |
+
+ String |
+toString()
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
+Constructor Detail | +
---|
+public AbstractSolrEventListener(SolrCore core)+
+Method Detail | +
---|
+public SolrCore getCore()+
+public NamedList getArgs()+
+public void init(NamedList args)+
init
in interface NamedListInitializedPlugin
+public void postCommit()+
postCommit
in interface SolrEventListener
+public void postSoftCommit()+
postSoftCommit
in interface SolrEventListener
+public void newSearcher(SolrIndexSearcher newSearcher, + SolrIndexSearcher currentSearcher)+
SolrEventListener
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 SolrEventListener
newSearcher
- The new SolrIndexSearcher
to usecurrentSearcher
- The existing SolrIndexSearcher
. null if this is a firstSearcher event.addEventParms(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.common.util.NamedList)
+public String toString()+
toString
in class Object
+protected NamedList addEventParms(SolrIndexSearcher currentSearcher, + NamedList nlst)+
EventParams.EVENT
with either the EventParams.NEW_SEARCHER
+ or EventParams.FIRST_SEARCHER
values depending on the value of currentSearcher.
+
+ Makes a copy of NamedList and then adds the parameters.
++
currentSearcher
- If null, add FIRST_SEARCHER, otherwise NEW_SEARCHERnlst
- The named list to add the EVENT value to
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +