public interface HDFSStoreFactory
HDFSStore
. To get an instance of
this factory call Cache#createHDFSStoreFactory.
Usage
set
methods
create(java.lang.String)
to produce a HDFSStore instance.
HDFSStoreFactory setName(java.lang.String name)
HDFSStore.getName()
HDFSStoreFactory setNameNodeURL(java.lang.String url)
HDFSStore.getNameNodeURL()
HDFSStoreFactory setHomeDir(java.lang.String dir)
HDFSStore.getHomeDir()
HDFSStoreFactory setHDFSClientConfigFile(java.lang.String filePath)
HDFSStore.getHDFSClientConfigFile()
HDFSStoreFactory setBlockCacheSize(float value)
java.lang.IllegalArgumentException
- if the value
is less than 0 or more than 100HDFSStore.getHDFSClientConfigFile()
HDFSStoreFactory setWriteOnlyFileRolloverSize(int maxFileSize)
HDFSStore.DEFAULT_WRITE_ONLY_FILE_SIZE_LIMIT
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getWriteOnlyFileRolloverSize()
HDFSStoreFactory setWriteOnlyFileRolloverInterval(int interval)
HDFSStore.DEFAULT_WRITE_ONLY_FILE_ROLLOVER_INTERVAL
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getWriteOnlyFileRolloverInterval()
HDFSStoreFactory setMinorCompaction(boolean auto)
HDFSStore.DEFAULT_MINOR_COMPACTION
HDFSStore.getMinorCompaction()
HDFSStoreFactory setMinorCompactionThreads(int count)
HDFSStore.DEFAULT_MINOR_COMPACTION_THREADS
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getMinorCompactionThreads()
HDFSStoreFactory setMajorCompaction(boolean auto)
HDFSStore.DEFAULT_MAJOR_COMPACTION
HDFSStore.getMajorCompaction()
HDFSStoreFactory setMajorCompactionInterval(int interval)
HDFSStore.DEFAULT_MAJOR_COMPACTION_INTERVAL_MINS
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getMajorCompactionInterval()
HDFSStoreFactory setMajorCompactionThreads(int count)
HDFSStore.DEFAULT_MAJOR_COMPACTION_THREADS
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getMajorCompactionThreads()
HDFSStoreFactory setInputFileSizeMax(int size)
HDFSStore.DEFAULT_INPUT_FILE_SIZE_MAX_MB
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getInputFileSizeMax()
HDFSStoreFactory setInputFileCountMin(int count)
HDFSStore.DEFAULT_INPUT_FILE_COUNT_MIN
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getInputFileCountMin()
HDFSStoreFactory setInputFileCountMax(int count)
HDFSStore.DEFAULT_INPUT_FILE_COUNT_MAX
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getInputFileCountMax()
HDFSStoreFactory setPurgeInterval(int interval)
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getPurgeInterval()
HDFSStoreFactory setDiskStoreName(java.lang.String name)
HDFSStore.getDiskStoreName()
HDFSStoreFactory setMaxMemory(int memory)
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getMaxMemory()
HDFSStoreFactory setBatchInterval(int interval)
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getBatchInterval()
HDFSStoreFactory setBatchSize(int size)
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getBatchSize()
HDFSStoreFactory setBufferPersistent(boolean isPersistent)
HDFSStore.getBufferPersistent()
HDFSStoreFactory setSynchronousDiskWrite(boolean isSynchronous)
HDFSStore.getSynchronousDiskWrite()
HDFSStoreFactory setDispatcherThreads(int dispatcherThreads)
java.lang.IllegalArgumentException
- if the value
is less than 0HDFSStore.getDispatcherThreads()
HDFSStore create(java.lang.String name) throws GemFireConfigException, StoreExistsException
HDFSStore
based on the current attribute
values configured in this factory.name
- the name of the HDFSStoreGemFireConfigException
- if the configuration is invalidStoreExistsException
- if a HDFSStore
with the same name exists