public class SimpleFileIndexingObserver extends java.lang.Object implements FileIndexingObserver
INDEXING_COMPLETED_ABORTED, INDEXING_COMPLETED_DIR_DOES_NOT_EXIST, INDEXING_COMPLETED_DIR_READ_ERROR, INDEXING_COMPLETED_ERROR, INDEXING_COMPLETED_ITEM_ERROR, INDEXING_COMPLETED_SUCCESS
Constructor and Description |
---|
SimpleFileIndexingObserver()
Constructor for the SimpleFileIndexingObserver object
|
SimpleFileIndexingObserver(java.lang.String startUpMessage)
Constructor for the SimpleFileIndexingObserver object
|
SimpleFileIndexingObserver(java.lang.String messagePrefix,
java.lang.String startUpMessage)
Constructor for the SimpleFileIndexingObserver object
|
Modifier and Type | Method and Description |
---|---|
void |
indexingCompleted(int status,
java.lang.String message)
Outputs a message when indexing is complete.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the object
|
public SimpleFileIndexingObserver()
public SimpleFileIndexingObserver(java.lang.String startUpMessage)
startUpMessage
- A message that gets is sent to System out when this Object is created.public SimpleFileIndexingObserver(java.lang.String messagePrefix, java.lang.String startUpMessage)
messagePrefix
- A identifier String that is inserted at the beginning of all messages output by
this SimpleFileIndexingObserverstartUpMessage
- A message that gets is set to System out when this Object is created.public void indexingCompleted(int status, java.lang.String message)
indexingCompleted
in interface FileIndexingObserver
status
- The status code upon completionmessage
- A message describing how the indexer completedpublic static void setDebug(boolean db)
db
- The new debug value