Interface GuardrailsMBean
-
- All Known Implementing Classes:
Guardrails
public interface GuardrailsMBeanJMX entrypoint for updating the default guardrails configuration parsed fromcassandra.yaml.This is different to just exposing
GuardrailsConfigin that the methods here should be JMX-friendly.For consistency, guardrails based on a simple numeric threshold should use the naming scheme
<whatIsGuarded>WarnThresholdfor soft limits and<whatIsGuarded>FailThresholdfor hard ones, and if the value has a unit, that unit should be added at the end (for instance,<whatIsGuarded>FailThresholdInKb). For "boolean" guardrails that disable a feature, use<whatIsGuardedEnabled. Other type of guardrails can use appropriate suffixes but should start with<whatIsGuarded>.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetAllowFilteringEnabled()Returns whether ALLOW FILTERING property is allowed.java.lang.StringgetCollectionSizeFailThreshold()java.lang.StringgetCollectionSizeWarnThreshold()intgetColumnsPerTableFailThreshold()intgetColumnsPerTableWarnThreshold()booleangetCompactTablesEnabled()Returns whether users can create new COMPACT STORAGE tablesjava.lang.StringgetDataDiskUsageMaxDiskSize()intgetDataDiskUsagePercentageFailThreshold()intgetDataDiskUsagePercentageWarnThreshold()booleangetDropTruncateTableEnabled()Returns whether users can TRUNCATE or DROP TABLEintgetFieldsPerUDTFailThreshold()intgetFieldsPerUDTWarnThreshold()booleangetGroupByEnabled()Returns whether GROUP BY queries are allowed.intgetInSelectCartesianProductFailThreshold()intgetInSelectCartesianProductWarnThreshold()intgetItemsPerCollectionFailThreshold()intgetItemsPerCollectionWarnThreshold()intgetKeyspacesFailThreshold()intgetKeyspacesWarnThreshold()intgetMaterializedViewsPerTableFailThreshold()intgetMaterializedViewsPerTableWarnThreshold()intgetMinimumReplicationFactorFailThreshold()intgetMinimumReplicationFactorWarnThreshold()intgetPageSizeFailThreshold()intgetPageSizeWarnThreshold()intgetPartitionKeysInSelectFailThreshold()intgetPartitionKeysInSelectWarnThreshold()booleangetReadBeforeWriteListOperationsEnabled()Returns whether list operations that require read before write are allowed.java.util.Set<java.lang.String>getReadConsistencyLevelsDisallowed()java.lang.StringgetReadConsistencyLevelsDisallowedCSV()java.util.Set<java.lang.String>getReadConsistencyLevelsWarned()java.lang.StringgetReadConsistencyLevelsWarnedCSV()booleangetSecondaryIndexesEnabled()intgetSecondaryIndexesPerTableFailThreshold()intgetSecondaryIndexesPerTableWarnThreshold()java.util.Set<java.lang.String>getTablePropertiesDisallowed()java.lang.StringgetTablePropertiesDisallowedCSV()java.util.Set<java.lang.String>getTablePropertiesIgnored()java.lang.StringgetTablePropertiesIgnoredCSV()java.util.Set<java.lang.String>getTablePropertiesWarned()java.lang.StringgetTablePropertiesWarnedCSV()intgetTablesFailThreshold()intgetTablesWarnThreshold()booleangetUncompressedTablesEnabled()Returns whether users can disable compression on tablesbooleangetUserTimestampsEnabled()Returns whether user-provided timestamps are allowed.java.util.Set<java.lang.String>getWriteConsistencyLevelsDisallowed()java.lang.StringgetWriteConsistencyLevelsDisallowedCSV()java.util.Set<java.lang.String>getWriteConsistencyLevelsWarned()java.lang.StringgetWriteConsistencyLevelsWarnedCSV()voidsetAllowFilteringEnabled(boolean enabled)Sets whether ALLOW FILTERING is allowed.voidsetCollectionSizeThreshold(java.lang.String warnSize, java.lang.String failSize)voidsetColumnsPerTableThreshold(int warn, int fail)voidsetCompactTablesEnabled(boolean enabled)Sets whether users can create new COMPACT STORAGE tablesvoidsetDataDiskUsageMaxDiskSize(java.lang.String size)voidsetDataDiskUsagePercentageThreshold(int warn, int fail)voidsetDropTruncateTableEnabled(boolean enabled)Sets whether users can TRUNCATE or DROP TABLEvoidsetFieldsPerUDTThreshold(int warn, int fail)voidsetGroupByEnabled(boolean enabled)Sets whether GROUP BY queries are allowed.voidsetInSelectCartesianProductThreshold(int warn, int fail)voidsetItemsPerCollectionThreshold(int warn, int fail)voidsetKeyspacesThreshold(int warn, int fail)voidsetMaterializedViewsPerTableThreshold(int warn, int fail)voidsetMinimumReplicationFactorThreshold(int warn, int fail)voidsetPageSizeThreshold(int warn, int fail)voidsetPartitionKeysInSelectThreshold(int warn, int fail)voidsetReadBeforeWriteListOperationsEnabled(boolean enabled)Sets whether list operations that require read before write are allowed.voidsetReadConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels)voidsetReadConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels)voidsetReadConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels)voidsetReadConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels)voidsetSecondaryIndexesEnabled(boolean enabled)Enables or disables the ability to create secondary indexesvoidsetSecondaryIndexesPerTableThreshold(int warn, int fail)voidsetTablePropertiesDisallowed(java.util.Set<java.lang.String> properties)voidsetTablePropertiesDisallowedCSV(java.lang.String properties)voidsetTablePropertiesIgnored(java.util.Set<java.lang.String> properties)voidsetTablePropertiesIgnoredCSV(java.lang.String properties)voidsetTablePropertiesWarned(java.util.Set<java.lang.String> properties)voidsetTablePropertiesWarnedCSV(java.lang.String properties)voidsetTablesThreshold(int warn, int fail)voidsetUncompressedTablesEnabled(boolean enabled)Sets whether users can disable compression on tablesvoidsetUserTimestampsEnabled(boolean enabled)Sets whether user-provided timestamps are allowed.voidsetWriteConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels)voidsetWriteConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels)voidsetWriteConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels)voidsetWriteConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels)
-
-
-
Method Detail
-
getKeyspacesWarnThreshold
int getKeyspacesWarnThreshold()
- Returns:
- The threshold to warn when creating more user keyspaces than threshold. -1 means disabled.
-
getKeyspacesFailThreshold
int getKeyspacesFailThreshold()
- Returns:
- The threshold to prevent creating more user keyspaces than threshold. -1 means disabled.
-
setKeyspacesThreshold
void setKeyspacesThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when creating more user keyspaces than threshold. -1 means disabled.fail- The threshold to prevent creating more user keyspaces than threshold. -1 means disabled.
-
getTablesWarnThreshold
int getTablesWarnThreshold()
- Returns:
- The threshold to warn when creating more tables than threshold. -1 means disabled.
-
getTablesFailThreshold
int getTablesFailThreshold()
- Returns:
- The threshold to prevent creating more tables than threshold. -1 means disabled.
-
setTablesThreshold
void setTablesThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when creating more tables than threshold. -1 means disabled.fail- The threshold to prevent creating more tables than threshold. -1 means disabled.
-
getColumnsPerTableWarnThreshold
int getColumnsPerTableWarnThreshold()
- Returns:
- The threshold to warn when having more columns per table than threshold. -1 means disabled.
-
getColumnsPerTableFailThreshold
int getColumnsPerTableFailThreshold()
- Returns:
- The threshold to prevent having more columns per table than threshold. -1 means disabled.
-
setColumnsPerTableThreshold
void setColumnsPerTableThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when having more columns per table than threshold. -1 means disabled.fail- The threshold to prevent having more columns per table than threshold. -1 means disabled.
-
getSecondaryIndexesPerTableWarnThreshold
int getSecondaryIndexesPerTableWarnThreshold()
- Returns:
- The threshold to warn when creating more secondary indexes per table than threshold. -1 means disabled.
-
getSecondaryIndexesPerTableFailThreshold
int getSecondaryIndexesPerTableFailThreshold()
- Returns:
- The threshold to prevent creating more secondary indexes per table than threshold. -1 means disabled.
-
setSecondaryIndexesPerTableThreshold
void setSecondaryIndexesPerTableThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when creating more secondary indexes per table than threshold. -1 means disabled.fail- The threshold to prevent creating more secondary indexes per table than threshold. -1 means disabled.
-
getSecondaryIndexesEnabled
boolean getSecondaryIndexesEnabled()
- Returns:
- Whether secondary index creation is active or not on the node
-
setSecondaryIndexesEnabled
void setSecondaryIndexesEnabled(boolean enabled)
Enables or disables the ability to create secondary indexes- Parameters:
enabled-
-
getMaterializedViewsPerTableWarnThreshold
int getMaterializedViewsPerTableWarnThreshold()
- Returns:
- The threshold to warn when creating more materialized views per table than threshold. -1 means disabled.
-
getMaterializedViewsPerTableFailThreshold
int getMaterializedViewsPerTableFailThreshold()
- Returns:
- The threshold to prevent creating more materialized views per table than threshold. -1 means disabled.
-
setMaterializedViewsPerTableThreshold
void setMaterializedViewsPerTableThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when creating more materialized views per table than threshold. -1 means disabled.fail- The threshold to prevent creating more materialized views per table than threshold. -1 means disabled.
-
getTablePropertiesWarned
java.util.Set<java.lang.String> getTablePropertiesWarned()
- Returns:
- properties that are warned about when creating or altering a table.
-
getTablePropertiesWarnedCSV
java.lang.String getTablePropertiesWarnedCSV()
- Returns:
- Comma-separated list of properties that are warned about when creating or altering a table.
-
setTablePropertiesWarned
void setTablePropertiesWarned(java.util.Set<java.lang.String> properties)
- Parameters:
properties- properties that are warned about when creating or altering a table.
-
setTablePropertiesWarnedCSV
void setTablePropertiesWarnedCSV(java.lang.String properties)
- Parameters:
properties- Comma-separated list of properties that are warned about when creating or altering a table.
-
getTablePropertiesDisallowed
java.util.Set<java.lang.String> getTablePropertiesDisallowed()
- Returns:
- properties that are not allowed when creating or altering a table.
-
getTablePropertiesDisallowedCSV
java.lang.String getTablePropertiesDisallowedCSV()
- Returns:
- Comma-separated list of properties that are not allowed when creating or altering a table.
-
setTablePropertiesDisallowed
void setTablePropertiesDisallowed(java.util.Set<java.lang.String> properties)
- Parameters:
properties- properties that are not allowed when creating or altering a table.
-
setTablePropertiesDisallowedCSV
void setTablePropertiesDisallowedCSV(java.lang.String properties)
- Parameters:
properties- Comma-separated list of properties that are not allowed when creating or altering a table.
-
getTablePropertiesIgnored
java.util.Set<java.lang.String> getTablePropertiesIgnored()
- Returns:
- properties that are ignored when creating or altering a table.
-
getTablePropertiesIgnoredCSV
java.lang.String getTablePropertiesIgnoredCSV()
- Returns:
- Comma-separated list of properties that are ignored when creating or altering a table.
-
setTablePropertiesIgnored
void setTablePropertiesIgnored(java.util.Set<java.lang.String> properties)
- Parameters:
properties- properties that are ignored when creating or altering a table.
-
setTablePropertiesIgnoredCSV
void setTablePropertiesIgnoredCSV(java.lang.String properties)
- Parameters:
properties- Comma-separated list of properties that are ignored when creating or altering a table.
-
getUserTimestampsEnabled
boolean getUserTimestampsEnabled()
Returns whether user-provided timestamps are allowed.- Returns:
trueif user-provided timestamps are allowed,falseotherwise.
-
setUserTimestampsEnabled
void setUserTimestampsEnabled(boolean enabled)
Sets whether user-provided timestamps are allowed.- Parameters:
enabled-trueif user-provided timestamps are allowed,falseotherwise.
-
getAllowFilteringEnabled
boolean getAllowFilteringEnabled()
Returns whether ALLOW FILTERING property is allowed.- Returns:
trueif ALLOW FILTERING is allowed,falseotherwise.
-
setAllowFilteringEnabled
void setAllowFilteringEnabled(boolean enabled)
Sets whether ALLOW FILTERING is allowed.- Parameters:
enabled-trueif ALLOW FILTERING is allowed,falseotherwise.
-
getUncompressedTablesEnabled
boolean getUncompressedTablesEnabled()
Returns whether users can disable compression on tables- Returns:
trueif users can disable compression on a table,falseotherwise.
-
setUncompressedTablesEnabled
void setUncompressedTablesEnabled(boolean enabled)
Sets whether users can disable compression on tables- Parameters:
enabled-trueif users can disable compression on a table,falseotherwise.
-
getCompactTablesEnabled
boolean getCompactTablesEnabled()
Returns whether users can create new COMPACT STORAGE tables- Returns:
trueif allowed,falseotherwise.
-
setCompactTablesEnabled
void setCompactTablesEnabled(boolean enabled)
Sets whether users can create new COMPACT STORAGE tables- Parameters:
enabled-trueif allowed,falseotherwise.
-
getGroupByEnabled
boolean getGroupByEnabled()
Returns whether GROUP BY queries are allowed.- Returns:
trueif allowed,falseotherwise.
-
setGroupByEnabled
void setGroupByEnabled(boolean enabled)
Sets whether GROUP BY queries are allowed.- Parameters:
enabled-trueif allowed,falseotherwise.
-
getDropTruncateTableEnabled
boolean getDropTruncateTableEnabled()
Returns whether users can TRUNCATE or DROP TABLE- Returns:
trueif allowed,falseotherwise.
-
setDropTruncateTableEnabled
void setDropTruncateTableEnabled(boolean enabled)
Sets whether users can TRUNCATE or DROP TABLE
-
getPageSizeWarnThreshold
int getPageSizeWarnThreshold()
- Returns:
- The threshold to warn when requested page size greater than threshold. -1 means disabled.
-
getPageSizeFailThreshold
int getPageSizeFailThreshold()
- Returns:
- The threshold to prevent requesting page with more elements than threshold. -1 means disabled.
-
setPageSizeThreshold
void setPageSizeThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when the requested page size is greater than threshold. -1 means disabled.fail- The threshold to prevent requesting pages with more elements than threshold. -1 means disabled.
-
getReadBeforeWriteListOperationsEnabled
boolean getReadBeforeWriteListOperationsEnabled()
Returns whether list operations that require read before write are allowed.- Returns:
trueif list operations that require read before write are allowed,falseotherwise.
-
setReadBeforeWriteListOperationsEnabled
void setReadBeforeWriteListOperationsEnabled(boolean enabled)
Sets whether list operations that require read before write are allowed.- Parameters:
enabled-trueif list operations that require read before write are allowed,falseotherwise.
-
getPartitionKeysInSelectWarnThreshold
int getPartitionKeysInSelectWarnThreshold()
- Returns:
- The threshold to warn when the number of partition keys in a select statement greater than threshold. -1 means disabled.
-
getPartitionKeysInSelectFailThreshold
int getPartitionKeysInSelectFailThreshold()
- Returns:
- The threshold to fail when the number of partition keys in a select statement greater than threshold. -1 means disabled.
-
setPartitionKeysInSelectThreshold
void setPartitionKeysInSelectThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when the number of partition keys in a select statement is greater than threshold -1 means disabled.fail- The threshold to prevent when the number of partition keys in a select statement is more than threshold -1 means disabled.
-
getInSelectCartesianProductWarnThreshold
int getInSelectCartesianProductWarnThreshold()
- Returns:
- The threshold to warn when an IN query creates a cartesian product with a size exceeding threshold. -1 means disabled.
-
getInSelectCartesianProductFailThreshold
int getInSelectCartesianProductFailThreshold()
- Returns:
- The threshold to prevent IN queries creating a cartesian product with a size exceeding threshold. -1 means disabled.
-
setInSelectCartesianProductThreshold
void setInSelectCartesianProductThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when an IN query creates a cartesian product with a size exceeding threshold. -1 means disabled.fail- The threshold to prevent IN queries creating a cartesian product with a size exceeding threshold. -1 means disabled.
-
getReadConsistencyLevelsWarned
java.util.Set<java.lang.String> getReadConsistencyLevelsWarned()
- Returns:
- consistency levels that are warned about when reading.
-
getReadConsistencyLevelsWarnedCSV
java.lang.String getReadConsistencyLevelsWarnedCSV()
- Returns:
- Comma-separated list of consistency levels that are warned about when reading.
-
setReadConsistencyLevelsWarned
void setReadConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels)
- Parameters:
consistencyLevels- consistency levels that are warned about when reading.
-
setReadConsistencyLevelsWarnedCSV
void setReadConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels)
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are warned about when reading.
-
getReadConsistencyLevelsDisallowed
java.util.Set<java.lang.String> getReadConsistencyLevelsDisallowed()
- Returns:
- consistency levels that are not allowed when reading.
-
getReadConsistencyLevelsDisallowedCSV
java.lang.String getReadConsistencyLevelsDisallowedCSV()
- Returns:
- Comma-separated list of consistency levels that are not allowed when reading.
-
setReadConsistencyLevelsDisallowed
void setReadConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels)
- Parameters:
consistencyLevels- consistency levels that are not allowed when reading.
-
setReadConsistencyLevelsDisallowedCSV
void setReadConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels)
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are not allowed when reading.
-
getWriteConsistencyLevelsWarned
java.util.Set<java.lang.String> getWriteConsistencyLevelsWarned()
- Returns:
- consistency levels that are warned about when writing.
-
getWriteConsistencyLevelsWarnedCSV
java.lang.String getWriteConsistencyLevelsWarnedCSV()
- Returns:
- Comma-separated list of consistency levels that are warned about when writing.
-
setWriteConsistencyLevelsWarned
void setWriteConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels)
- Parameters:
consistencyLevels- consistency levels that are warned about when writing.
-
setWriteConsistencyLevelsWarnedCSV
void setWriteConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels)
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are warned about when writing.
-
getWriteConsistencyLevelsDisallowed
java.util.Set<java.lang.String> getWriteConsistencyLevelsDisallowed()
- Returns:
- consistency levels that are not allowed when writing.
-
getWriteConsistencyLevelsDisallowedCSV
java.lang.String getWriteConsistencyLevelsDisallowedCSV()
- Returns:
- Comma-separated list of consistency levels that are not allowed when writing.
-
setWriteConsistencyLevelsDisallowed
void setWriteConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels)
- Parameters:
consistencyLevels- consistency levels that are not allowed when writing.
-
setWriteConsistencyLevelsDisallowedCSV
void setWriteConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels)
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are not allowed when writing.
-
getCollectionSizeWarnThreshold
@Nullable java.lang.String getCollectionSizeWarnThreshold()
- Returns:
- The threshold to warn when encountering larger size of collection data than threshold, as a string
formatted as in, for example,
10GiB,20MiB,30KiBor40B. Anullvalue means that the threshold is disabled.
-
getCollectionSizeFailThreshold
@Nullable java.lang.String getCollectionSizeFailThreshold()
- Returns:
- The threshold to prevent collections with larger data size than threshold, as a string formatted as in,
for example,
10GiB,20MiB,30KiBor40B. Anullvalue means that the threshold is disabled.
-
setCollectionSizeThreshold
void setCollectionSizeThreshold(@Nullable java.lang.String warnSize, @Nullable java.lang.String failSize)- Parameters:
warnSize- The threshold to warn when encountering larger size of collection data than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.failSize- The threshold to prevent collections with larger data size than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
getItemsPerCollectionWarnThreshold
int getItemsPerCollectionWarnThreshold()
- Returns:
- The threshold to warn when encountering more elements in a collection than threshold.
-
getItemsPerCollectionFailThreshold
int getItemsPerCollectionFailThreshold()
- Returns:
- The threshold to prevent collections with more elements than threshold.
-
setItemsPerCollectionThreshold
void setItemsPerCollectionThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when encountering more elements in a collection than threshold.fail- The threshold to prevent collectiosn with more elements than threshold.
-
getFieldsPerUDTWarnThreshold
int getFieldsPerUDTWarnThreshold()
- Returns:
- The threshold to warn when creating a UDT with more fields than threshold. -1 means disabled.
-
getFieldsPerUDTFailThreshold
int getFieldsPerUDTFailThreshold()
- Returns:
- The threshold to fail when creating a UDT with more fields than threshold. -1 means disabled.
-
setFieldsPerUDTThreshold
void setFieldsPerUDTThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when creating a UDT with more fields than threshold. -1 means disabled.fail- The threshold to prevent creating a UDT with more fields than threshold. -1 means disabled.
-
getDataDiskUsagePercentageWarnThreshold
int getDataDiskUsagePercentageWarnThreshold()
- Returns:
- The threshold to warn when local data disk usage percentage exceeds that threshold.
Allowed values are in the range
[1, 100], and -1 means disabled.
-
getDataDiskUsagePercentageFailThreshold
int getDataDiskUsagePercentageFailThreshold()
- Returns:
- The threshold to fail when local data disk usage percentage exceeds that threshold.
Allowed values are in the range
[1, 100], and -1 means disabled.
-
setDataDiskUsagePercentageThreshold
void setDataDiskUsagePercentageThreshold(int warn, int fail)- Parameters:
warn- The threshold to warn when local disk usage percentage exceeds that threshold. Allowed values are in the range[1, 100], and -1 means disabled.fail- The threshold to fail when local disk usage percentage exceeds that threshold. Allowed values are in the range[1, 100], and -1 means disabled.
-
getDataDiskUsageMaxDiskSize
@Nullable java.lang.String getDataDiskUsageMaxDiskSize()
- Returns:
- The max disk size of the data directories when calculating disk usage thresholds, as a string formatted
as in, for example,
10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
setDataDiskUsageMaxDiskSize
void setDataDiskUsageMaxDiskSize(@Nullable java.lang.String size)- Parameters:
size- The max disk size of the data directories when calculating disk usage thresholds, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
getMinimumReplicationFactorWarnThreshold
int getMinimumReplicationFactorWarnThreshold()
- Returns:
- The threshold to warn when replication factor is lesser threshold.
-
getMinimumReplicationFactorFailThreshold
int getMinimumReplicationFactorFailThreshold()
- Returns:
- The threshold to fail when replication factor is lesser threshold.
-
setMinimumReplicationFactorThreshold
void setMinimumReplicationFactorThreshold(int warn, int fail)- Parameters:
warn- the threshold to warn when the minimum replication factor is lesser than threshold -1 means disabled.fail- the threshold to fail when the minimum replication factor is lesser than threshold -1 means disabled.
-
-