public abstract class PageStoreOptions extends Object
PageStore
.Modifier and Type | Field and Description |
---|---|
protected String |
mAlluxioVersion
Alluxio client version.
|
protected long |
mCacheSize
Cache size for the data.
|
protected double |
mOverheadRatio
A fraction value representing the storage overhead.
|
protected long |
mPageSize
Page size for the data.
|
protected String |
mRootDir
Root directory where the data is stored.
|
protected long |
mTimeoutDuration
Timeout duration for page store operations in ms.
|
protected int |
mTimeoutThreads
Number of threads for page store operations.
|
Constructor and Description |
---|
PageStoreOptions() |
Modifier and Type | Method and Description |
---|---|
static PageStoreOptions |
create(AlluxioConfiguration conf) |
String |
getAlluxioVersion() |
long |
getCacheSize() |
double |
getOverheadRatio() |
long |
getPageSize() |
String |
getRootDir() |
long |
getTimeoutDuration() |
int |
getTimeoutThreads() |
abstract PageStoreType |
getType() |
PageStoreOptions |
setAlluxioVersion(String alluxioVersion) |
PageStoreOptions |
setCacheSize(long cacheSize) |
PageStoreOptions |
setOverheadRatio(double overheadRatio) |
PageStoreOptions |
setPageSize(long pageSize) |
PageStoreOptions |
setRootDir(String rootDir) |
PageStoreOptions |
setTimeoutDuration(long timeout) |
PageStoreOptions |
setTimeoutThreads(int threads) |
<T> T |
toOptions() |
protected String mRootDir
protected long mPageSize
protected long mCacheSize
protected String mAlluxioVersion
protected long mTimeoutDuration
protected int mTimeoutThreads
protected double mOverheadRatio
public static PageStoreOptions create(AlluxioConfiguration conf)
conf
- configurationPageStoreOptions
public abstract PageStoreType getType()
public <T> T toOptions()
T
- The type corresponding to the underlying optionspublic PageStoreOptions setRootDir(String rootDir)
rootDir
- the root directory where pages are storedpublic String getRootDir()
public long getPageSize()
public PageStoreOptions setPageSize(long pageSize)
pageSize
- the size of the page in bytespublic long getCacheSize()
public PageStoreOptions setCacheSize(long cacheSize)
cacheSize
- the size of the cache in bytespublic String getAlluxioVersion()
public PageStoreOptions setAlluxioVersion(String alluxioVersion)
alluxioVersion
- Alluxio client versionpublic long getTimeoutDuration()
public PageStoreOptions setTimeoutDuration(long timeout)
timeout
- timeout duration for page store operations in mspublic int getTimeoutThreads()
public PageStoreOptions setTimeoutThreads(int threads)
threads
- number of threads for handling timeoutpublic double getOverheadRatio()
public PageStoreOptions setOverheadRatio(double overheadRatio)
overheadRatio
- the fraction of space allocated for storage overheadCopyright © 2023. All Rights Reserved.