lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "DataImportHandler" by MarkoBonaci
Date Fri, 10 Sep 2010 22:17:48 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "DataImportHandler" page has been changed by MarkoBonaci.
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=254&rev2=255

--------------------------------------------------

  == ApplicationListener ==
   * the class implements [[http://download.oracle.com/javaee/6/api/javax/servlet/ServletContextListener.html|javax.servlet.ServletContextListener]]
(listens to web app Initialize and Destroy events)
   * uses HTTPPostScheduler, [[http://download.oracle.com/javase/6/docs/api/java/util/Timer.html|java.util.Timer]]
and context attribute map to facilitate periodic method invocation (scheduling)
+  * Timer is essentially a facility for threads to schedule tasks for future execution in
a background thread.
  
  {{{
  package hr.mbo.solr.scheduler;
@@ -1172, +1173 @@

  <<BR>>
  == HTTPPostScheduler ==
   * the class extends [[http://download.oracle.com/javase/6/docs/api/java/util/TimerTask.html|java.util.TimerTask]],
which implements [[http://download.oracle.com/javase/6/docs/api/java/lang/Runnable.html|java.lang.Runnable]]
-  * represents main DIHScheduler thread
+  * represents main DIHScheduler thread (run by Timer background thread)
   * gets DIH params and sets default values if empty
   * uses those params to assemble complete URL
   * invokes URL using HTTP POST request method
  
  <!> TODO:
   * make it core-aware (to work with and without cores)
-  * add ''cancel'' functionality (to enable us to completely disable DIHScheduler and leave
app running) 
+  * add ''cancel'' functionality (to be able to completely disable DIHScheduler background
thread, without stopping the app or server)
   * explode ''params'' to specific parameters
   * currently logs events to server console -> use logger instead
  
@@ -1328, +1329 @@

  }}}
  
  <<BR>>
- ----
+ ------
  <<BR>>
  
  = Where to find it? =

Mime
View raw message