public static void Main(string[] args) { Console.WriteLine("MediaWiki Lucene search indexer - update daemon.\n"); Configuration.SetIndexSection("Updater"); config = Configuration.Open(); string configFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "MWUpdateDaemon.exe.config"); RemotingConfiguration.Configure(configFile); RemotingConfiguration.RegisterWellKnownServiceType( typeof(Daemon), "SearchUpdater", WellKnownObjectMode.Singleton); UpdateThread.Run(config); }
public bool FlushAll() { UpdateThread.Flush(); return(true); }
public bool Start() { UpdateThread.Start(); return(true); }
public string GetStatus() { return(UpdateThread.GetStatus()); }
public bool DeletePage(string databaseName, Title title) { UpdateThread.Enqueue(new PageDeletion(databaseName, title)); return(true); }
public bool UpdatePageData(string databaseName, Title title, string text, KeyValue[] metadata) { UpdateThread.Enqueue(new PageUpdate(databaseName, title, text, metadata)); return(true); }
public bool UpdatePage(string databaseName, Title title, string text) { UpdateThread.Enqueue(new PageUpdate(databaseName, title, text)); return(true); }
public bool Optimize() { UpdateThread.Optimize(); return(true); }
public bool Quit() { UpdateThread.Quit(); return(true); }