|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.indexer.IndexerProperties
public class IndexerProperties
Configuration properties for the Indexing API
| Field Summary | |
|---|---|
static java.lang.String |
KEY_INDEX_ENABLED
Key for property "org.openanzo.indexer.enabled" Should the indexer be enabled. |
static java.lang.String |
KEY_INDEXER_ASYNCHRONOUS
Key for property "org.openanzo.indexer.async" Should indexer add items to index in an asynchronous manor Server: Embedded: |
static java.lang.String |
KEY_INDEXER_CLEAR
Key for property "org.openanzo.indexer.indexClear" Clear the index on startup. |
static java.lang.String |
KEY_INDEXER_FACTORY_CLASS
Key for property "org.openanzo.indexer.indexerFactoryType" The class name for the implementation of the indexer factory to use. |
static java.lang.String |
KEY_INDEXER_PAGE_SIZE
Key for property "org.openanzo.indexer.pageSize" The index pagesize |
static java.lang.String |
KEY_INDEXER_REBUILD
Key for property "org.openanzo.indexer.rebuildIndex" Should the indexer be rebuilt on startup. |
| Constructor Summary | |
|---|---|
IndexerProperties()
|
|
| Method Summary | |
|---|---|
static boolean |
getAsync(java.util.Properties properties)
Get KEY_INDEXER_ASYNCHRONOUS property from properties |
static boolean |
getEnabled(java.util.Properties properties)
Get KEY_INDEX_ENABLED property from properties |
static boolean |
getIndexClear(java.util.Properties properties)
Get KEY_INDEXER_CLEAR property from properties |
static java.lang.String |
getIndexerFactoryType(java.util.Properties properties)
Get KEY_INDEXER_FACTORY_CLASS property from properties |
static int |
getPageSize(java.util.Properties properties,
int defaultValue)
Get KEY_INDEXER_PAGE_SIZE property from properties |
static boolean |
getRebuildIndex(java.util.Properties properties)
Get KEY_INDEXER_REBUILD property from properties |
static void |
setAsync(java.util.Properties properties,
boolean async)
Set KEY_INDEXER_ASYNCHRONOUS property to async in properties |
static void |
setEnabled(java.util.Properties properties,
boolean enabled)
Set KEY_INDEX_ENABLED property to enabled in properties |
static void |
setIndexClear(java.util.Properties properties,
boolean indexClear)
Set KEY_INDEXER_CLEAR property to indexClear in properties |
static void |
setIndexerFactoryType(java.util.Properties properties,
java.lang.String indexerFactoryType)
Set KEY_INDEXER_FACTORY_CLASS property to indexerFactoryType in properties |
static void |
setPageSize(java.util.Properties properties,
int pageSize)
Set KEY_INDEXER_PAGE_SIZE property to pageSize in properties |
static void |
setRebuildIndex(java.util.Properties properties,
boolean rebuildIndex)
Set KEY_INDEXER_REBUILD property to rebuildIndex 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_INDEXER_FACTORY_CLASS
public static final java.lang.String KEY_INDEXER_REBUILD
public static final java.lang.String KEY_INDEXER_CLEAR
public static final java.lang.String KEY_INDEX_ENABLED
public static final java.lang.String KEY_INDEXER_ASYNCHRONOUS
public static final java.lang.String KEY_INDEXER_PAGE_SIZE
| Constructor Detail |
|---|
public IndexerProperties()
| Method Detail |
|---|
public static java.lang.String getIndexerFactoryType(java.util.Properties properties)
KEY_INDEXER_FACTORY_CLASS property from properties
properties - containing configuration data
KEY_INDEXER_FACTORY_CLASS if not present
public static void setIndexerFactoryType(java.util.Properties properties,
java.lang.String indexerFactoryType)
KEY_INDEXER_FACTORY_CLASS property to indexerFactoryType in properties
properties - containing configuration dataindexerFactoryType - value for indexerFactoryTypepublic static boolean getRebuildIndex(java.util.Properties properties)
KEY_INDEXER_REBUILD property from properties
properties - containing configuration data
KEY_INDEXER_REBUILD,or "false" if not present
public static void setRebuildIndex(java.util.Properties properties,
boolean rebuildIndex)
KEY_INDEXER_REBUILD property to rebuildIndex in properties
properties - containing configuration datarebuildIndex - value for rebuildIndexpublic static boolean getIndexClear(java.util.Properties properties)
KEY_INDEXER_CLEAR property from properties
properties - containing configuration data
KEY_INDEXER_CLEAR,or "false" if not present
public static void setIndexClear(java.util.Properties properties,
boolean indexClear)
KEY_INDEXER_CLEAR property to indexClear in properties
properties - containing configuration dataindexClear - value for indexClearpublic static boolean getEnabled(java.util.Properties properties)
KEY_INDEX_ENABLED property from properties
properties - containing configuration data
KEY_INDEX_ENABLED,or "false" if not present
public static void setEnabled(java.util.Properties properties,
boolean enabled)
KEY_INDEX_ENABLED property to enabled in properties
properties - containing configuration dataenabled - value for enabledpublic static boolean getAsync(java.util.Properties properties)
KEY_INDEXER_ASYNCHRONOUS property from properties
properties - containing configuration data
KEY_INDEXER_ASYNCHRONOUS,or "false" if not present
public static void setAsync(java.util.Properties properties,
boolean async)
KEY_INDEXER_ASYNCHRONOUS property to async in properties
properties - containing configuration dataasync - value for async
public static int getPageSize(java.util.Properties properties,
int defaultValue)
KEY_INDEXER_PAGE_SIZE property from properties
properties - containing configuration datadefaultValue - defaultValue for pageSize
KEY_INDEXER_PAGE_SIZEor defaultValue if not present
public static void setPageSize(java.util.Properties properties,
int pageSize)
KEY_INDEXER_PAGE_SIZE property to pageSize in properties
properties - containing configuration datapageSize - value for pageSize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||