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 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() |
long |
getPageSize() |
String |
getRootDir() |
long |
getTimeoutDuration() |
int |
getTimeoutThreads() |
abstract PageStoreType |
getType() |
void |
setAlluxioVersion(String alluxioVersion) |
void |
setCacheSize(long cacheSize) |
void |
setPageSize(long pageSize) |
void |
setRootDir(String rootDir) |
void |
setTimeoutDuration(long timeout) |
void |
setTimeoutThreads(int threads) |
<T> T |
toOptions() |
protected String mRootDir
protected long mPageSize
protected long mCacheSize
protected String mAlluxioVersion
protected long mTimeoutDuration
protected int mTimeoutThreads
public static PageStoreOptions create(AlluxioConfiguration conf)
conf
- configurationPageStoreOptions
public abstract PageStoreType getType()
public <T> T toOptions()
T
- The type corresponding to the underlying optionspublic void setRootDir(String rootDir)
rootDir
- the root directory where pages are storedpublic String getRootDir()
public long getPageSize()
public void setPageSize(long pageSize)
pageSize
- the size of the page in bytespublic long getCacheSize()
public void setCacheSize(long cacheSize)
cacheSize
- the size of the cache in bytespublic String getAlluxioVersion()
public void setAlluxioVersion(String alluxioVersion)
alluxioVersion
- Alluxio client versionpublic long getTimeoutDuration()
public void setTimeoutDuration(long timeout)
timeout
- timeout duration for page store operations in mspublic int getTimeoutThreads()
public void setTimeoutThreads(int threads)
threads
- number of threads for handling timeoutCopyright © 2023. All Rights Reserved.