public class HubModuleManager
extends com.marklogic.client.ext.helper.LoggingObject
implements com.marklogic.client.ext.modulesloader.ModulesManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FILE_PATH |
Constructor and Description |
---|
HubModuleManager(java.lang.String propertiesFilePath) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
buildKey(java.io.File file)
Lower-casing avoids some annoying issues on Windows where sometimes you get "C:" at the start, and other times
you get "c:".
|
void |
deletePropertiesFile() |
boolean |
hasFileBeenModifiedSinceLastLoaded(java.io.File file) |
boolean |
hasKeyBeenModified(java.lang.String key,
long lastModified) |
void |
initialize() |
void |
saveLastLoadedTimestamp(java.io.File file,
java.util.Date date) |
void |
saveLastLoadedTimestamp(java.lang.String key,
java.util.Date date) |
void |
setMinimumFileTimestampToLoad(long minimumFileTimestampToLoad) |
public static final java.lang.String DEFAULT_FILE_PATH
public void initialize()
initialize
in interface com.marklogic.client.ext.modulesloader.ModulesManager
public void deletePropertiesFile()
public boolean hasFileBeenModifiedSinceLastLoaded(java.io.File file)
hasFileBeenModifiedSinceLastLoaded
in interface com.marklogic.client.ext.modulesloader.ModulesManager
public boolean hasKeyBeenModified(java.lang.String key, long lastModified)
public void saveLastLoadedTimestamp(java.io.File file, java.util.Date date)
saveLastLoadedTimestamp
in interface com.marklogic.client.ext.modulesloader.ModulesManager
public void saveLastLoadedTimestamp(java.lang.String key, java.util.Date date)
protected java.lang.String buildKey(java.io.File file)
file
- - the file to build a key forpublic void setMinimumFileTimestampToLoad(long minimumFileTimestampToLoad)