org.mmbase.storage.search.implementation.database.informix.excalibur
Class EtxIndexCreator

java.lang.Object
  extended by org.mmbase.storage.search.implementation.database.informix.excalibur.EtxIndexCreator

public class EtxIndexCreator
extends Object

The Etx index creator creates Excalibur Text Search indices, when used with an Informix database and a Excalibur Text Search datablade. This class is provided as a utility to supplement the EtxSqlHandler.

When run as an application, the index creator reads a list of etx-indices from a configuration file, and creates the indices that are not present already. The configurationfile must be named etxindices.xml and located inside the databases configuration directory. It's DTD is located in the directory org.mmbase.storage.search.implementation.database.informix.excalibur.resources in the MMBase source tree and here online.

Since:
MMBase-1.7
Version:
$Id: EtxIndexCreator.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Rob van Maris

Constructor Summary
EtxIndexCreator(String configDir)
          Creates a new instance of EtxIndexCreator, opens database connection.
 
Method Summary
 void execute()
          Executes the tasks: reads configuration file and creates indices as needed, and closes database connection.
static void main(String[] args)
          Application main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EtxIndexCreator

public EtxIndexCreator(String configDir)
                throws Exception
Creates a new instance of EtxIndexCreator, opens database connection.

Parameters:
configDir - Path to MMBase configuration directory.
Throws:
Exception
Method Detail

main

public static void main(String[] args)
Application main method.

Reads etxindices configuration file, and creates the etx indices that are not already created.

Parameters:
args - The command line arguments, should be path to MMBase configuration directory.

execute

public void execute()
             throws Exception
Executes the tasks: reads configuration file and creates indices as needed, and closes database connection.

Throws:
Exception


MMBase 2.0-SNAPSHOT - null