| 
DLESE Tools  v1.6.0  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.dds.ndr.NDRIndexer
public class NDRIndexer
Indexes and configures collections from the NSDL Data Repository (NDR).
| Constructor Summary | |
|---|---|
NDRIndexer()
Constructor for the NDRIndexer object  | 
|
| Method Summary | |
|---|---|
static String | 
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:  | 
 void | 
indexCollections(String collectionKey)
Index a collection or all collections.  | 
 void | 
indexingActionRequested(IndexingEvent indexingEvent)
Perform indexing when requested  | 
 void | 
indexItemRecords(MetadataProviderReader mdp,
                 String collectionKey,
                 String format)
Gets the itemRecords for a given collection starting from the MetadataProvider.  | 
 void | 
setConfigDirectory(File configDir)
Sets the configDirectory attribute of the NDRIndexer object  | 
 void | 
setDebug(boolean db)
Sets the debug attribute of the NDRIndexer object  | 
 void | 
updateCollections()
Update the collections that are configured in DDS.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NDRIndexer()
| Method Detail | 
|---|
public void setConfigDirectory(File configDir)
                        throws Exception
setConfigDirectory in interface ItemIndexerconfigDir - The new configDirectory value
Exception - If error
public void indexingActionRequested(IndexingEvent indexingEvent)
                             throws Exception
indexingActionRequested in interface ItemIndexerindexingEvent - The event fired
Exception - If error
public void indexCollections(String collectionKey)
                      throws Exception
collectionKey - The collection key/id, or null for all
Exception - If error
public void updateCollections()
                       throws Exception
Exception - If error
public void indexItemRecords(MetadataProviderReader mdp,
                             String collectionKey,
                             String format)
mdp - MetadataProviderReadercollectionKey - The collection keyformat - The format to index for this collection, "canonical_nsdl_dc" for canonicalpublic static String getDateStamp()
public final void setDebug(boolean db)
db - The new debug value
  | 
DLESE Tools  v1.6.0  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||