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=251&rev2=252
--------------------------------------------------
* uses system property for locating solr.home (use Solr's resource loader instead)
{{{
- package hr.infodom.solr.dataimport;
+ package hr.mbo.solr.dataimport;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
@@ -1102, +1102 @@
== 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, Timer and context attribute map to schedule periodic event
+ * 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)
{{{
- package hr.infodom.solr.scheduler;
+ package hr.mbo.solr.scheduler;
import java.util.Calendar;
import java.util.Date;
@@ -1163, +1163 @@
== HTTPPostScheduler ==
- * the class extends [[http://download.oracle.com/javase/1.4.2/docs/api/java/util/TimerTask.html|java.util.TimerTask]],
which implements [[http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Runnable.html|java.lang.Runnable]]
+ * 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
- * gets DIH params from ''SolrDataImportProperties'' and sets default values if empty
+ * gets DIH params and sets default values if empty
+ * uses those params to compose complete URL
+ * invokes URL using HTTP POST request method
/!\ :TODO: /!\
- * currently logs events to server console -> use logger
* make it core-aware (to work with and without cores)
+ * add ''cancel'' functionality (to enable us to completely disable DIHScheduler and leave
app running)
* explode ''params'' to specific parameters
+ * currently logs events to server console -> use logger instead
-
{{{
- package hr.infodom.solr.scheduler;
+ package hr.mbo.solr.scheduler;
- import hr.infodom.solr.dataimport.SolrDataImportProperties;
+ import hr.mbo.solr.dataimport.SolrDataImportProperties;
import java.io.IOException;
import java.net.HttpURLConnection;
|