public class CompactPolicies
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CompactPolicies.Type |
Modifier and Type | Field and Description |
---|---|
java.util.List<AutoCompactPolicy> |
autoCompactPolicy |
static int |
DEFAULT_HIGH_PRIORITY_COMPACT_NB_THREADS |
static int |
DEFAULT_LOW_PRIORITY_COMPACT_NB_THREADS |
static int |
DEFAULT_MAX_PAGE_CACHE_SIZE_M_B |
static int |
DEFAULT_MAX_PARALLEL_FULL_COMPACTS |
static int |
DEFAULT_PAGE_CACHE_PAGE_SIZE_K_B |
static int |
DEFAULT_PRIORITY_COMPACT_THRESHOLD |
static boolean |
DEFAULT_SYNCHRONOUS |
static java.lang.String |
DEFAULT_TYPE |
int |
highPriorityCompactNbThreads |
int |
lowPriorityCompactNbThreads |
int |
maxPageCacheSizeMB |
int |
maxParallelFullCompacts |
int |
pageCachePageSizeKB |
int |
priorityCompactThreshold |
boolean |
synchronous |
java.lang.String |
type |
Constructor and Description |
---|
CompactPolicies() |
CompactPolicies(CompactPolicies o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this CompactPolicies.
|
static CompactPolicies |
fromString(java.lang.String s)
String representation of this CompactPolicies.
|
java.util.List<AutoCompactPolicy> |
getAutoCompactPolicy()
Specifies the auto-compact policies.
|
int |
getHighPriorityCompactNbThreads()
Number of threads to use for a compact having high priority (0: all available threads).
|
int |
getLowPriorityCompactNbThreads()
Number of threads to use for a compact having low priority (0: all available threads).
|
int |
getMaxPageCacheSizeMB()
If the policy uses the PageCache mode, it specifies the max cache size.
|
int |
getMaxParallelFullCompacts()
Limit the number of full compacts in parallel, can be useful when you don't have too much disk space available.
|
int |
getPageCachePageSizeKB()
If the policy uses the PageCache mode, it specifies the page size.
|
int |
getPriorityCompactThreshold()
When compacting a slot gen0-gen1, consider as a priority compact if gen1-gen0 < priorityCompactThreshold.
|
java.lang.String |
getType()
Specifies which I/O mode is used while compacting.
|
CompactPolicies.Type |
getTypeAsEnum()
Specifies which I/O mode is used while compacting.
|
static boolean |
isA(java.lang.String str,
CompactPolicies.Type item) |
static boolean |
isOneOf(java.lang.String str,
CompactPolicies.Type... items) |
boolean |
isSynchronous()
By default, compaction jobs are asynchronous.
|
CompactPolicies |
makeCopy()
Creates and returns a deep copy of this CompactPolicies.
|
static CompactPolicies |
readFrom(java.io.InputStream is)
Read this CompactPolicies from an XML fragment.
|
void |
setHighPriorityCompactNbThreads(int highPriorityCompactNbThreads)
Number of threads to use for a compact having high priority (0: all available threads).
|
void |
setLowPriorityCompactNbThreads(int lowPriorityCompactNbThreads)
Number of threads to use for a compact having low priority (0: all available threads).
|
void |
setMaxPageCacheSizeMB(int maxPageCacheSizeMB)
If the policy uses the PageCache mode, it specifies the max cache size.
|
void |
setMaxParallelFullCompacts(int maxParallelFullCompacts)
Limit the number of full compacts in parallel, can be useful when you don't have too much disk space available.
|
void |
setPageCachePageSizeKB(int pageCachePageSizeKB)
If the policy uses the PageCache mode, it specifies the page size.
|
void |
setPriorityCompactThreshold(int priorityCompactThreshold)
When compacting a slot gen0-gen1, consider as a priority compact if gen1-gen0 < priorityCompactThreshold.
|
void |
setSynchronous(boolean synchronous)
By default, compaction jobs are asynchronous.
|
void |
setType(CompactPolicies.Type item)
Specifies which I/O mode is used while compacting.
|
void |
setType(java.lang.String type)
Specifies which I/O mode is used while compacting.
|
java.lang.String |
toString()
String representation of this CompactPolicies.
|
CompactPolicies |
withAutoCompactPolicy(AutoCompactPolicy... __values)
Specifies the auto-compact policies.
|
CompactPolicies |
withAutoCompactPolicy(java.util.Collection<AutoCompactPolicy> __values) |
CompactPolicies |
withHighPriorityCompactNbThreads(int highPriorityCompactNbThreads) |
CompactPolicies |
withHighPriorityCompactNbThreads(java.lang.Integer highPriorityCompactNbThreads) |
CompactPolicies |
withLowPriorityCompactNbThreads(int lowPriorityCompactNbThreads) |
CompactPolicies |
withLowPriorityCompactNbThreads(java.lang.Integer lowPriorityCompactNbThreads) |
CompactPolicies |
withMaxPageCacheSizeMB(int maxPageCacheSizeMB) |
CompactPolicies |
withMaxPageCacheSizeMB(java.lang.Integer maxPageCacheSizeMB) |
CompactPolicies |
withMaxParallelFullCompacts(int maxParallelFullCompacts) |
CompactPolicies |
withMaxParallelFullCompacts(java.lang.Integer maxParallelFullCompacts) |
CompactPolicies |
withPageCachePageSizeKB(int pageCachePageSizeKB) |
CompactPolicies |
withPageCachePageSizeKB(java.lang.Integer pageCachePageSizeKB) |
CompactPolicies |
withPriorityCompactThreshold(int priorityCompactThreshold) |
CompactPolicies |
withPriorityCompactThreshold(java.lang.Integer priorityCompactThreshold) |
CompactPolicies |
withSynchronous(boolean synchronous) |
CompactPolicies |
withSynchronous(java.lang.Boolean synchronous) |
CompactPolicies |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this CompactPolicies as an XML fragment
|
public java.util.List<AutoCompactPolicy> autoCompactPolicy
public boolean synchronous
public static final boolean DEFAULT_SYNCHRONOUS
public int maxParallelFullCompacts
public static final int DEFAULT_MAX_PARALLEL_FULL_COMPACTS
public java.lang.String type
public static final java.lang.String DEFAULT_TYPE
public int maxPageCacheSizeMB
public static final int DEFAULT_MAX_PAGE_CACHE_SIZE_M_B
public int pageCachePageSizeKB
public static final int DEFAULT_PAGE_CACHE_PAGE_SIZE_K_B
public int priorityCompactThreshold
public static final int DEFAULT_PRIORITY_COMPACT_THRESHOLD
public int lowPriorityCompactNbThreads
public static final int DEFAULT_LOW_PRIORITY_COMPACT_NB_THREADS
public int highPriorityCompactNbThreads
public static final int DEFAULT_HIGH_PRIORITY_COMPACT_NB_THREADS
public CompactPolicies()
public CompactPolicies(CompactPolicies o)
public static boolean isA(java.lang.String str, CompactPolicies.Type item)
public static boolean isOneOf(java.lang.String str, CompactPolicies.Type... items)
public void setType(CompactPolicies.Type item)
public CompactPolicies.Type getTypeAsEnum()
public java.util.List<AutoCompactPolicy> getAutoCompactPolicy()
public CompactPolicies withAutoCompactPolicy(AutoCompactPolicy... __values)
public CompactPolicies withAutoCompactPolicy(java.util.Collection<AutoCompactPolicy> __values)
public void setSynchronous(boolean synchronous)
public boolean isSynchronous()
public CompactPolicies withSynchronous(boolean synchronous)
public CompactPolicies withSynchronous(java.lang.Boolean synchronous)
public void setMaxParallelFullCompacts(int maxParallelFullCompacts)
public int getMaxParallelFullCompacts()
public CompactPolicies withMaxParallelFullCompacts(int maxParallelFullCompacts)
public CompactPolicies withMaxParallelFullCompacts(java.lang.Integer maxParallelFullCompacts)
public void setType(java.lang.String type)
public java.lang.String getType()
public CompactPolicies withType(java.lang.String type)
public void setMaxPageCacheSizeMB(int maxPageCacheSizeMB)
public int getMaxPageCacheSizeMB()
public CompactPolicies withMaxPageCacheSizeMB(int maxPageCacheSizeMB)
public CompactPolicies withMaxPageCacheSizeMB(java.lang.Integer maxPageCacheSizeMB)
public void setPageCachePageSizeKB(int pageCachePageSizeKB)
public int getPageCachePageSizeKB()
public CompactPolicies withPageCachePageSizeKB(int pageCachePageSizeKB)
public CompactPolicies withPageCachePageSizeKB(java.lang.Integer pageCachePageSizeKB)
public void setPriorityCompactThreshold(int priorityCompactThreshold)
public int getPriorityCompactThreshold()
public CompactPolicies withPriorityCompactThreshold(int priorityCompactThreshold)
public CompactPolicies withPriorityCompactThreshold(java.lang.Integer priorityCompactThreshold)
public void setLowPriorityCompactNbThreads(int lowPriorityCompactNbThreads)
public int getLowPriorityCompactNbThreads()
public CompactPolicies withLowPriorityCompactNbThreads(int lowPriorityCompactNbThreads)
public CompactPolicies withLowPriorityCompactNbThreads(java.lang.Integer lowPriorityCompactNbThreads)
public void setHighPriorityCompactNbThreads(int highPriorityCompactNbThreads)
public int getHighPriorityCompactNbThreads()
public CompactPolicies withHighPriorityCompactNbThreads(int highPriorityCompactNbThreads)
public CompactPolicies withHighPriorityCompactNbThreads(java.lang.Integer highPriorityCompactNbThreads)
public CompactPolicies makeCopy()
public static CompactPolicies 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 CompactPolicies 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.