Changeset 13124 for trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractGS2DocumentRetrieve.java
- Timestamp:
- 2006-10-17T15:52:42+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractGS2DocumentRetrieve.java
r11265 r13124 42 42 import java.util.ArrayList; 43 43 44 import org.apache.log4j.*; 45 44 46 /** Implements the generic retrieval and classifier services for GS2 45 47 * collections. … … 52 54 extends AbstractDocumentRetrieve { 53 55 56 static Category logger = Category.getInstance(org.greenstone.gsdl3.service.AbstractGS2DocumentRetrieve.class.getName()); 57 54 58 // protected static final String EXTLINK_PARAM = "ext"; here or in base?? 55 59 protected String index_stem = null; … … 76 80 } 77 81 78 System.out.println("Configuring AbstractGS2DocumentRetrieve...");82 logger.info("Configuring AbstractGS2DocumentRetrieve..."); 79 83 //this.config_info = info; 80 84 … … 85 89 } 86 90 if (this.index_stem == null || this.index_stem.equals("")) { 87 System.err.println("AbstractGS2DocumentRetrieve.configure(): indexStem element not found, stem will default to collection name");91 logger.error("AbstractGS2DocumentRetrieve.configure(): indexStem element not found, stem will default to collection name"); 88 92 this.index_stem = this.cluster_name; 89 93 } … … 92 96 String gdbm_db_file = GSFile.GDBMDatabaseFile(this.site_home, this.cluster_name, this.index_stem); 93 97 if (!this.gdbm_src.openDatabase(gdbm_db_file, GDBMWrapper.READER)) { 94 System.err.println("AbstractGS2DocumentRetrieve Error:Could not open GDBM database!");98 logger.error("Could not open GDBM database!"); 95 99 return false; 96 100 }
Note:
See TracChangeset
for help on using the changeset viewer.