public class Indexer extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SETTING_DIRECTORY_MONITORIZATION_NAME
The name of the setting that indicates the Dicoogle Directory Monitorization.
|
static java.lang.String |
SETTING_INDEX_ZIP_FILES_NAME
The name of the setting that indicates if ZIP files are to be Indexed.
|
static java.lang.String |
SETTING_INDEXING_EFFORT_HELP
The help of the Indexing Effort setting.
|
static java.lang.String |
SETTING_INDEXING_EFFORT_NAME
The name of the setting that indicates the Indexing Effort.
|
static java.lang.String |
SETTING_SAVE_THUMBNAILS_NAME
The name of the setting that indicates if Thumbnails are to be Saved.
|
static java.lang.String |
SETTING_THUMBNAILS_SIZE_NAME
The name of the setting that indicates the Thumbnails Size.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDicooglePath()
Gets the Dicoogle indexing path.
|
static Indexer |
getInstance()
Returns the current instance of this class.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getSettings()
Returns a Map containing the current settings.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getSettingsHelp()
Returns the settings help.
|
int |
indexingPercentCompleted()
Returns the current progress (percentual) of the indexing operation.
|
boolean |
isIndexing()
Returns if the Index Engine is currently indexing.
|
void |
setDicooglePath(java.lang.String path)
Sets the Dicoogle indexing path.
|
boolean |
setSettings(java.util.HashMap<java.lang.String,java.lang.Object> settings)
Tries to set the supplied settings as the new settings.
|
void |
startIndexing()
Starts the indexing process.
|
void |
stopIndexing()
Stops the indexing process.
|
boolean |
trySettings(java.util.HashMap<java.lang.String,java.lang.Object> map)
Validates the settings supplied and checks if they are valid ones.
|
public static final java.lang.String SETTING_DIRECTORY_MONITORIZATION_NAME
public static final java.lang.String SETTING_INDEXING_EFFORT_NAME
public static final java.lang.String SETTING_THUMBNAILS_SIZE_NAME
public static final java.lang.String SETTING_SAVE_THUMBNAILS_NAME
public static final java.lang.String SETTING_INDEX_ZIP_FILES_NAME
public static final java.lang.String SETTING_INDEXING_EFFORT_HELP
public static Indexer getInstance()
public java.util.HashMap<java.lang.String,java.lang.Object> getSettings()
public boolean setSettings(java.util.HashMap<java.lang.String,java.lang.Object> settings)
settings
- a Map containing the new settings.public boolean trySettings(java.util.HashMap<java.lang.String,java.lang.Object> map)
map
- a Map containing the settings.InvalidSettingValueException
- if at least one of the settings is invalid.public java.util.HashMap<java.lang.String,java.lang.String> getSettingsHelp()
public void startIndexing()
public void stopIndexing()
public boolean isIndexing()
public int indexingPercentCompleted()
public void setDicooglePath(java.lang.String path)
path
- the Dicoogle indexing path.public java.lang.String getDicooglePath()