|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.layout.indexer.LiteralIndexerProperties
public class LiteralIndexerProperties
Configuration properties used for setting up literal indexer.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_LITERAL_INDEX_ENABLED
Key for property "org.openanzo.indexer.literals.enabled" Should the literal indexer be enabled. |
static java.lang.String |
KEY_LITERAL_INDEX_LOCATION
Key for property "org.openanzo.indexer.literals.indexLocation" Location of the index files on disk. |
static java.lang.String |
KEY_LITERAL_INDEX_REMOVE_LOCK_FILE
Key for property "org.openanzo.indexer.literals.removeLockFile" Force a removal of a previous lock file on startup. |
static java.lang.String |
KEY_LITERAL_INDEXER_CLEAR
Key for property "org.openanzo.indexer.literals.indexClear" Clear the index on startup. |
static java.lang.String |
KEY_LITERAL_INDEXER_REBUILD
Key for property "org.openanzo.indexer.literals.rebuildIndex" Should the literal indexer be rebuilt on startup. |
| Constructor Summary | |
|---|---|
LiteralIndexerProperties()
|
|
| Method Summary | |
|---|---|
static boolean |
getEnabled(java.util.Properties properties)
Get KEY_LITERAL_INDEX_ENABLED property from properties |
static boolean |
getIndexClear(java.util.Properties properties)
Get KEY_LITERAL_INDEXER_CLEAR property from properties |
static java.lang.String |
getIndexLocation(java.util.Properties properties)
Get KEY_LITERAL_INDEX_LOCATION property from properties |
static boolean |
getRebuildIndex(java.util.Properties properties)
Get KEY_LITERAL_INDEXER_REBUILD property from properties |
static boolean |
getRemoveLockFile(java.util.Properties properties)
Get KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property from properties |
static void |
setEnabled(java.util.Properties properties,
boolean enabled)
Set KEY_LITERAL_INDEX_ENABLED property to enabled in properties |
static void |
setIndexClear(java.util.Properties properties,
boolean indexClear)
Set KEY_LITERAL_INDEXER_CLEAR property to indexClear in properties |
static void |
setIndexLocation(java.util.Properties properties,
java.lang.String indexLocation)
Set KEY_LITERAL_INDEX_LOCATION property to indexLocation in properties |
static void |
setRebuildIndex(java.util.Properties properties,
boolean rebuildIndex)
Set KEY_LITERAL_INDEXER_REBUILD property to rebuildIndex in properties |
static void |
setRemoveLockFile(java.util.Properties properties,
boolean removeLockFile)
Set KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property to removeLockFile in properties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_LITERAL_INDEX_ENABLED
public static final java.lang.String KEY_LITERAL_INDEXER_REBUILD
public static final java.lang.String KEY_LITERAL_INDEX_LOCATION
public static final java.lang.String KEY_LITERAL_INDEX_REMOVE_LOCK_FILE
public static final java.lang.String KEY_LITERAL_INDEXER_CLEAR
| Constructor Detail |
|---|
public LiteralIndexerProperties()
| Method Detail |
|---|
public static boolean getEnabled(java.util.Properties properties)
KEY_LITERAL_INDEX_ENABLED property from properties
properties - containing configuration data
KEY_LITERAL_INDEX_ENABLED,or "false" if not present
public static void setEnabled(java.util.Properties properties,
boolean enabled)
KEY_LITERAL_INDEX_ENABLED property to enabled in properties
properties - containing configuration dataenabled - value for enabledpublic static boolean getRebuildIndex(java.util.Properties properties)
KEY_LITERAL_INDEXER_REBUILD property from properties
properties - containing configuration data
KEY_LITERAL_INDEXER_REBUILD,or "false" if not present
public static void setRebuildIndex(java.util.Properties properties,
boolean rebuildIndex)
KEY_LITERAL_INDEXER_REBUILD property to rebuildIndex in properties
properties - containing configuration datarebuildIndex - value for rebuildIndexpublic static java.lang.String getIndexLocation(java.util.Properties properties)
KEY_LITERAL_INDEX_LOCATION property from properties
properties - containing configuration data
KEY_LITERAL_INDEX_LOCATION if not present
public static void setIndexLocation(java.util.Properties properties,
java.lang.String indexLocation)
KEY_LITERAL_INDEX_LOCATION property to indexLocation in properties
properties - containing configuration dataindexLocation - value for indexLocationpublic static boolean getRemoveLockFile(java.util.Properties properties)
KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property from properties
properties - containing configuration data
KEY_LITERAL_INDEX_REMOVE_LOCK_FILE,or "true" if not present
public static void setRemoveLockFile(java.util.Properties properties,
boolean removeLockFile)
KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property to removeLockFile in properties
properties - containing configuration dataremoveLockFile - value for removeLockFilepublic static boolean getIndexClear(java.util.Properties properties)
KEY_LITERAL_INDEXER_CLEAR property from properties
properties - containing configuration data
KEY_LITERAL_INDEXER_CLEAR,or "false" if not present
public static void setIndexClear(java.util.Properties properties,
boolean indexClear)
KEY_LITERAL_INDEXER_CLEAR property to indexClear in properties
properties - containing configuration dataindexClear - value for indexClear
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||