org.elasticsearch.hadoop.cfg
Class Settings

java.lang.Object
  extended by org.elasticsearch.hadoop.cfg.Settings
Direct Known Subclasses:
HadoopSettings, PropertiesSettings

public abstract class Settings
extends Object

Holder class containing the various configuration bits used by ElasticSearch Hadoop. Handles internally the fall back to defaults when looking for undefined, optional settings.


Field Summary
static String INTERNAL_ES_TARGET_RESOURCE
           
static String INTERNAL_ES_TARGET_URI
           
 
Fields inherited from interface org.elasticsearch.hadoop.cfg.ConfigurationOptions
ES_BATCH_SIZE_BYTES, ES_BATCH_SIZE_BYTES_DEFAULT, ES_BATCH_SIZE_ENTRIES, ES_BATCH_SIZE_ENTRIES_DEFAULT, ES_BATCH_WRITE_REFRESH, ES_BATCH_WRITE_REFRESH_DEFAULT, ES_HOST, ES_HOST_DEFAULT, ES_HTTP_TIMEOUT, ES_HTTP_TIMEOUT_DEFAULT, ES_INDEX_AUTO_CREATE, ES_INDEX_AUTO_CREATE_DEFAULT, ES_INDEX_READ_MISSING_AS_EMPTY, ES_INDEX_READ_MISSING_AS_EMPTY_DEFAULT, ES_PORT, ES_PORT_DEFAULT, ES_RESOURCE, ES_SCROLL_KEEPALIVE, ES_SCROLL_KEEPALIVE_DEFAULT, ES_SCROLL_SIZE, ES_SCROLL_SIZE_DEFAULT, ES_SERIALIZATION_READER_CLASS, ES_SERIALIZATION_WRITER_CLASS
 
Constructor Summary
Settings()
           
 
Method Summary
 Settings clean()
           
 Settings cleanUri()
           
 boolean getBatchRefreshAfterWrite()
           
 int getBatchSizeInBytes()
           
 int getBatchSizeInEntries()
           
 String getHost()
           
 long getHttpTimeout()
           
 boolean getIndexAutoCreate()
           
 boolean getIndexReadMissingAsEmpty()
           
 int getPort()
           
abstract  String getProperty(String name)
           
protected  String getProperty(String name, String defaultValue)
           
 long getScrollKeepAlive()
           
 long getScrollSize()
           
 String getSerializerValueReaderClassName()
           
 String getSerializerValueWriterClassName()
           
 String getTargetResource()
           
 String getTargetUri()
           
 Settings merge(Properties properties)
           
 void save()
          Saves the settings state after validating them.
 Settings setHost(String host)
           
 Settings setPort(int port)
           
abstract  void setProperty(String name, String value)
           
 Settings setResource(String index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL_ES_TARGET_RESOURCE

public static final String INTERNAL_ES_TARGET_RESOURCE
See Also:
Constant Field Values

INTERNAL_ES_TARGET_URI

public static final String INTERNAL_ES_TARGET_URI
See Also:
Constant Field Values
Constructor Detail

Settings

public Settings()
Method Detail

getHost

public String getHost()

getPort

public int getPort()

getHttpTimeout

public long getHttpTimeout()

getBatchSizeInBytes

public int getBatchSizeInBytes()

getBatchSizeInEntries

public int getBatchSizeInEntries()

getBatchRefreshAfterWrite

public boolean getBatchRefreshAfterWrite()

getScrollKeepAlive

public long getScrollKeepAlive()

getScrollSize

public long getScrollSize()

getSerializerValueWriterClassName

public String getSerializerValueWriterClassName()

getSerializerValueReaderClassName

public String getSerializerValueReaderClassName()

getIndexAutoCreate

public boolean getIndexAutoCreate()

getIndexReadMissingAsEmpty

public boolean getIndexReadMissingAsEmpty()

getTargetUri

public String getTargetUri()

setHost

public Settings setHost(String host)

setPort

public Settings setPort(int port)

setResource

public Settings setResource(String index)

getTargetResource

public String getTargetResource()

cleanUri

public Settings cleanUri()

clean

public Settings clean()

save

public void save()
Saves the settings state after validating them.


getProperty

protected String getProperty(String name,
                             String defaultValue)

getProperty

public abstract String getProperty(String name)

setProperty

public abstract void setProperty(String name,
                                 String value)

merge

public Settings merge(Properties properties)