public class NDRIndexer extends java.lang.Object implements ItemIndexer
Constructor and Description |
---|
NDRIndexer()
Constructor for the NDRIndexer object
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:
|
void |
indexCollections(java.lang.String collectionKey)
Index a collection or all collections.
|
void |
indexingActionRequested(IndexingEvent indexingEvent)
Perform indexing when requested
|
void |
indexItemRecords(MetadataProviderReader mdp,
java.lang.String collectionKey,
java.lang.String format)
Gets the itemRecords for a given collection starting from the MetadataProvider.
|
void |
setConfigDirectory(java.io.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.
|
public void setConfigDirectory(java.io.File configDir) throws java.lang.Exception
setConfigDirectory
in interface ItemIndexer
configDir
- The new configDirectory valuejava.lang.Exception
- If errorpublic void indexingActionRequested(IndexingEvent indexingEvent) throws java.lang.Exception
indexingActionRequested
in interface ItemIndexer
indexingEvent
- The event firedjava.lang.Exception
- If errorpublic void indexCollections(java.lang.String collectionKey) throws java.lang.Exception
collectionKey
- The collection key/id, or null for alljava.lang.Exception
- If errorpublic void updateCollections() throws java.lang.Exception
java.lang.Exception
- If errorpublic void indexItemRecords(MetadataProviderReader mdp, java.lang.String collectionKey, java.lang.String format)
mdp
- MetadataProviderReadercollectionKey
- The collection keyformat
- The format to index for this collection, "canonical_nsdl_dc" for canonicalpublic static java.lang.String getDateStamp()
public final void setDebug(boolean db)
db
- The new debug value