public class CacheConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
cacheSizeMB |
static int |
DEFAULT_CACHE_SIZE_M_B |
static int |
DEFAULT_MAX_SIMULTANEOUS_I_O_OPERATIONS |
static int |
DEFAULT_PAGE_SIZE_K_B |
int |
maxSimultaneousIOOperations |
java.lang.String |
name |
int |
pageSizeKB |
Constructor and Description |
---|
CacheConfig() |
CacheConfig(CacheConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this CacheConfig.
|
static CacheConfig |
fromString(java.lang.String s)
String representation of this CacheConfig.
|
int |
getCacheSizeMB()
Maximum cache size in MB.
|
int |
getMaxSimultaneousIOOperations()
Specifies the max number of simultaneous I/O.
|
java.lang.String |
getName()
The cache ID.
|
int |
getPageSizeKB()
Page size in KB.
|
CacheConfig |
makeCopy()
Creates and returns a deep copy of this CacheConfig.
|
static CacheConfig |
readFrom(java.io.InputStream is)
Read this CacheConfig from an XML fragment.
|
void |
setCacheSizeMB(int cacheSizeMB)
Maximum cache size in MB.
|
void |
setMaxSimultaneousIOOperations(int maxSimultaneousIOOperations)
Specifies the max number of simultaneous I/O.
|
void |
setName(java.lang.String name)
The cache ID.
|
void |
setPageSizeKB(int pageSizeKB)
Page size in KB.
|
java.lang.String |
toString()
String representation of this CacheConfig.
|
CacheConfig |
withCacheSizeMB(int cacheSizeMB) |
CacheConfig |
withCacheSizeMB(java.lang.Integer cacheSizeMB) |
CacheConfig |
withMaxSimultaneousIOOperations(int maxSimultaneousIOOperations) |
CacheConfig |
withMaxSimultaneousIOOperations(java.lang.Integer maxSimultaneousIOOperations) |
CacheConfig |
withName(java.lang.String name) |
CacheConfig |
withPageSizeKB(int pageSizeKB) |
CacheConfig |
withPageSizeKB(java.lang.Integer pageSizeKB) |
void |
writeTo(java.io.OutputStream os)
Write this CacheConfig as an XML fragment
|
public java.lang.String name
public int cacheSizeMB
public static final int DEFAULT_CACHE_SIZE_M_B
public int pageSizeKB
public static final int DEFAULT_PAGE_SIZE_K_B
public int maxSimultaneousIOOperations
public static final int DEFAULT_MAX_SIMULTANEOUS_I_O_OPERATIONS
public CacheConfig()
public CacheConfig(CacheConfig o)
public void setName(java.lang.String name)
public java.lang.String getName()
public CacheConfig withName(java.lang.String name)
public void setCacheSizeMB(int cacheSizeMB)
public int getCacheSizeMB()
public CacheConfig withCacheSizeMB(int cacheSizeMB)
public CacheConfig withCacheSizeMB(java.lang.Integer cacheSizeMB)
public void setPageSizeKB(int pageSizeKB)
public int getPageSizeKB()
public CacheConfig withPageSizeKB(int pageSizeKB)
public CacheConfig withPageSizeKB(java.lang.Integer pageSizeKB)
public void setMaxSimultaneousIOOperations(int maxSimultaneousIOOperations)
public int getMaxSimultaneousIOOperations()
public CacheConfig withMaxSimultaneousIOOperations(int maxSimultaneousIOOperations)
public CacheConfig withMaxSimultaneousIOOperations(java.lang.Integer maxSimultaneousIOOperations)
public CacheConfig makeCopy()
public static CacheConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static CacheConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.