 |
|
|
|
All actions on your SaadaDB can be run by script using the $SAADA_DB_HOME/bin/sant script. All tasks available are described in the file $SAADA_DB_HOME/bin/build.xml
|
|
|
 |
|
Data loading
- sant load.image -Dconfig=config_name -Ddir=data_dir -Dschemupdate=true/false : Load all image files (FITS files) found in data_dir and matching the configuration config_name. The flag schema updated allows or not the alteration of table loaded beforehand. Products are rejected when the update schema required is not allowed .
- sant load.table -Dconfig=config_name -Ddir=data_dir -Dschemupdate=true/false : Load table files (FITS files or VOTable)
- sant load.spectra -Dconfig=config_name -Ddir=data_dir -Dschemupdate=true/false : Load spectra files (FITS files or VOTable)
- sant load.plot -Dconfig=config_name -Ddir=data_dir -Dschemupdate=true/false : Load all plot (miscellaneous) files (FITS files)
Graphical user interface
- sant load.table gui.launch : Run the graphical user interface. Equivalent to the command $SAADA_DB_HOME/bin/saadadgui
- tomcat.deploy:Deploys the Web interface. Equivalent to the command $SAADA_DB_HOME/bin/tomcadeploy
Java code compilation
- sant load.table saadadb.compile : Updapte the archive $SAADA_DB_HOME/lib/saadadb.jar. This file contains all native Saada code.
- sant saadadb.compile.mapping : Compile all generated code (business classes). All these classes are in $SAADA_DB_HOME/class_mapping. This task must be run after a SaadaDB has been moved and the class SaadaDBS sytem has been modified (see ???)
- sant servlet.build : compile the servlet classes of the SaadaDB. This task is run at SaadaDB creation time. It must be run after some modifications of the servlet code.
- sant ucd.ws.update : Update the client code of the ucd assignator based on the CDS Web Service. This task wraps then WSDL utility. This task must be completed by a call to the saadadb.compile task.
- sant sezame.ws.update : Update the client code of the name resolver based on the CDS Web Service. This task wraps then WSDL utility.This task must be completed by a call to the saadadb.compile task.
Collections
- sant collection.create : Create all collections declared in $SAADA_DB_HOME/config/collection.xml. Collections already existing are ignored
- sant collection.delete -Dcollection=coll_name : Delete the collection coll_name and its content.
Saada Relationships
- sant relation.create -Drelation=rel_name : Creates the relation rel_name if it is declared in $SAADA_DB_HOME/config/relation.xml. The command does nothing if the relation already exits
- sant relation.compile -Drelation=rel_name : Compiles the Java correlator of the relation rel_name in $SAADA_DB_HOME/algo_correlation.
- sant relation.populate -Drelation=rel_name : Populates the relation rel_name by running the Java correlator placed in $SAADA_DB_HOME/algo_correlation. This task doesn’t reset the relation. Links will be duplicated as long as this task is run.
- sant relation.index -Drelation=rel_name : Computes Saada indexes for the relation rel_name. This operation must be done each time the relation content is updated. Query results can be ammizing if relation indexes are not synchronized with the database.
- sant relation.empty -Drelation=rel_name : Empty the relation rel_name. Indexes are not updated with this operation.
- sant relation.delete -Drelation=rel_name : Deletes the relation rel_name.
SQL Indexation.
- sant index.config.create -Dconfig=conf_name [-Doid=-oid] : Indexes all table related to the configuration conf_name. If the flag -oid is set, colums with saada oids will only be indexed.
- sant index.config.remove -Dconfig=conf_name : Remove all indexes on all table related to the configuration conf_name.
- sant index.collection.create -Dcollection=coll_name -Dcategory=Image2D|Entry|Table|Spectra|Plot [-Doid=-oid] : Indexes all tables of the collection coll_name related to the given category conf_name. If the flag -oid is set, colums with saada oids will only be indexed.
- sant index.collection.remove -Dcollection=coll_name -Dcategory=Image2D|Entry|Table|Spectra|Plot : Remove all indexes on all table related to the collectionconf_name and to the given category.
- sant index.table.create -Dtable=table_name [-Doid=-oid]Indexes the SQL table table_name. If the flag -oid is set, colums with saada oids will only be indexed.
- sant index.table.remove -Dtable=table_name : Remove all indexes on the table table_name.
last update 2007-03-23
|
|
 |