public final class Guardrails extends java.lang.Object implements GuardrailsMBean
Modifier and Type | Field and Description |
---|---|
static DisableFlag |
allowFilteringEnabled
Guardrail disabling ALLOW FILTERING statement within a query
|
static MaxThreshold |
collectionSize
Guardrail on the size of a collection.
|
static MaxThreshold |
columnsPerTable
Guardrail on the number of columns per table.
|
static DisableFlag |
compactTablesEnabled
Guardrail disabling the creation of new COMPACT STORAGE tables
|
static GuardrailsConfigProvider |
CONFIG_PROVIDER |
static DisableFlag |
createSecondaryIndexesEnabled
Guardrail disabling user's ability to create secondary indexes
|
static DisableFlag |
dropTruncateTableEnabled |
static MaxThreshold |
fieldsPerUDT
Guardrail on the number of fields on each UDT.
|
static DisableFlag |
groupByEnabled |
static MaxThreshold |
inSelectCartesianProduct
Guardrail on the number of restrictions created by a cartesian product of a CQL's
IN query. |
static MaxThreshold |
itemsPerCollection
Guardrail on the number of items of a collection.
|
static MaxThreshold |
keyspaces
Guardrail on the total number of user keyspaces.
|
static PercentageThreshold |
localDataDiskUsage
Guardrail on the data disk usage on the local node, used by a periodic task to calculate and propagate that status.
|
static MaxThreshold |
materializedViewsPerTable
Guardrail on the number of materialized views per table.
|
static java.lang.String |
MBEAN_NAME |
static MinThreshold |
minimumReplicationFactor
Guardrail on the minimum replication factor.
|
static MaxThreshold |
pageSize
Guardrail on the number of elements returned within page.
|
static MaxThreshold |
partitionKeysInSelect
Guardrail on the number of partition keys in the IN clause.
|
static DisableFlag |
readBeforeWriteListOperationsEnabled
Guardrail disabling operations on lists that require read before write.
|
static Values<ConsistencyLevel> |
readConsistencyLevels
Guardrail on read consistency levels.
|
static Predicates<InetAddressAndPort> |
replicaDiskUsage
Guardrail on the data disk usage on replicas, used at write time to verify the status of the involved replicas.
|
static MaxThreshold |
secondaryIndexesPerTable |
static Values<java.lang.String> |
tableProperties
Guardrail warning about, ignoring or rejecting the usage of certain table properties.
|
static MaxThreshold |
tables
Guardrail on the total number of tables on user keyspaces.
|
static DisableFlag |
uncompressedTablesEnabled
Guardrail disabling user's ability to turn off compression
|
static DisableFlag |
userTimestampsEnabled
Guardrail disabling user-provided timestamps.
|
static Values<ConsistencyLevel> |
writeConsistencyLevels
Guardrail on write consistency levels.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowFilteringEnabled()
Returns whether ALLOW FILTERING property is allowed.
|
java.lang.String |
getCollectionSizeFailThreshold() |
java.lang.String |
getCollectionSizeWarnThreshold() |
int |
getColumnsPerTableFailThreshold() |
int |
getColumnsPerTableWarnThreshold() |
boolean |
getCompactTablesEnabled()
Returns whether users can create new COMPACT STORAGE tables
|
java.lang.String |
getDataDiskUsageMaxDiskSize() |
int |
getDataDiskUsagePercentageFailThreshold() |
int |
getDataDiskUsagePercentageWarnThreshold() |
boolean |
getDropTruncateTableEnabled()
Returns whether users can TRUNCATE or DROP TABLE
|
int |
getFieldsPerUDTFailThreshold() |
int |
getFieldsPerUDTWarnThreshold() |
boolean |
getGroupByEnabled()
Returns whether GROUP BY queries are allowed.
|
int |
getInSelectCartesianProductFailThreshold() |
int |
getInSelectCartesianProductWarnThreshold() |
int |
getItemsPerCollectionFailThreshold() |
int |
getItemsPerCollectionWarnThreshold() |
int |
getKeyspacesFailThreshold() |
int |
getKeyspacesWarnThreshold() |
int |
getMaterializedViewsPerTableFailThreshold() |
int |
getMaterializedViewsPerTableWarnThreshold() |
int |
getMinimumReplicationFactorFailThreshold() |
int |
getMinimumReplicationFactorWarnThreshold() |
int |
getPageSizeFailThreshold() |
int |
getPageSizeWarnThreshold() |
int |
getPartitionKeysInSelectFailThreshold() |
int |
getPartitionKeysInSelectWarnThreshold() |
boolean |
getReadBeforeWriteListOperationsEnabled()
Returns whether list operations that require read before write are allowed.
|
java.util.Set<java.lang.String> |
getReadConsistencyLevelsDisallowed() |
java.lang.String |
getReadConsistencyLevelsDisallowedCSV() |
java.util.Set<java.lang.String> |
getReadConsistencyLevelsWarned() |
java.lang.String |
getReadConsistencyLevelsWarnedCSV() |
boolean |
getSecondaryIndexesEnabled() |
int |
getSecondaryIndexesPerTableFailThreshold() |
int |
getSecondaryIndexesPerTableWarnThreshold() |
java.util.Set<java.lang.String> |
getTablePropertiesDisallowed() |
java.lang.String |
getTablePropertiesDisallowedCSV() |
java.util.Set<java.lang.String> |
getTablePropertiesIgnored() |
java.lang.String |
getTablePropertiesIgnoredCSV() |
java.util.Set<java.lang.String> |
getTablePropertiesWarned() |
java.lang.String |
getTablePropertiesWarnedCSV() |
int |
getTablesFailThreshold() |
int |
getTablesWarnThreshold() |
boolean |
getUncompressedTablesEnabled()
Returns whether users can disable compression on tables
|
boolean |
getUserTimestampsEnabled()
Returns whether user-provided timestamps are allowed.
|
java.util.Set<java.lang.String> |
getWriteConsistencyLevelsDisallowed() |
java.lang.String |
getWriteConsistencyLevelsDisallowedCSV() |
java.util.Set<java.lang.String> |
getWriteConsistencyLevelsWarned() |
java.lang.String |
getWriteConsistencyLevelsWarnedCSV() |
void |
setAllowFilteringEnabled(boolean enabled)
Sets whether ALLOW FILTERING is allowed.
|
void |
setCollectionSizeThreshold(java.lang.String warnSize,
java.lang.String failSize) |
void |
setColumnsPerTableThreshold(int warn,
int fail) |
void |
setCompactTablesEnabled(boolean enabled)
Sets whether users can create new COMPACT STORAGE tables
|
void |
setDataDiskUsageMaxDiskSize(java.lang.String size) |
void |
setDataDiskUsagePercentageThreshold(int warn,
int fail) |
void |
setDropTruncateTableEnabled(boolean enabled)
Sets whether users can TRUNCATE or DROP TABLE
|
void |
setFieldsPerUDTThreshold(int warn,
int fail) |
void |
setGroupByEnabled(boolean enabled)
Sets whether GROUP BY queries are allowed.
|
void |
setInSelectCartesianProductThreshold(int warn,
int fail) |
void |
setItemsPerCollectionThreshold(int warn,
int fail) |
void |
setKeyspacesThreshold(int warn,
int fail) |
void |
setMaterializedViewsPerTableThreshold(int warn,
int fail) |
void |
setMinimumReplicationFactorThreshold(int warn,
int fail) |
void |
setPageSizeThreshold(int warn,
int fail) |
void |
setPartitionKeysInSelectThreshold(int warn,
int fail) |
void |
setReadBeforeWriteListOperationsEnabled(boolean enabled)
Sets whether list operations that require read before write are allowed.
|
void |
setReadConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels) |
void |
setReadConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels) |
void |
setReadConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels) |
void |
setReadConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels) |
void |
setSecondaryIndexesEnabled(boolean enabled)
Enables or disables the ability to create secondary indexes
|
void |
setSecondaryIndexesPerTableThreshold(int warn,
int fail) |
void |
setTablePropertiesDisallowed(java.util.Set<java.lang.String> properties) |
void |
setTablePropertiesDisallowed(java.lang.String... properties) |
void |
setTablePropertiesDisallowedCSV(java.lang.String properties) |
void |
setTablePropertiesIgnored(java.util.Set<java.lang.String> properties) |
void |
setTablePropertiesIgnored(java.lang.String... properties) |
void |
setTablePropertiesIgnoredCSV(java.lang.String properties) |
void |
setTablePropertiesWarned(java.util.Set<java.lang.String> properties) |
void |
setTablePropertiesWarned(java.lang.String... properties) |
void |
setTablePropertiesWarnedCSV(java.lang.String properties) |
void |
setTablesThreshold(int warn,
int fail) |
void |
setUncompressedTablesEnabled(boolean enabled)
Sets whether users can disable compression on tables
|
void |
setUserTimestampsEnabled(boolean enabled)
Sets whether user-provided timestamps are allowed.
|
void |
setWriteConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels) |
void |
setWriteConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels) |
void |
setWriteConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels) |
void |
setWriteConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels) |
public static final java.lang.String MBEAN_NAME
public static final GuardrailsConfigProvider CONFIG_PROVIDER
public static final MaxThreshold keyspaces
public static final MaxThreshold tables
public static final MaxThreshold columnsPerTable
public static final MaxThreshold secondaryIndexesPerTable
public static final DisableFlag createSecondaryIndexesEnabled
public static final MaxThreshold materializedViewsPerTable
public static final Values<java.lang.String> tableProperties
public static final DisableFlag userTimestampsEnabled
public static final DisableFlag groupByEnabled
public static final DisableFlag dropTruncateTableEnabled
public static final DisableFlag uncompressedTablesEnabled
public static final DisableFlag compactTablesEnabled
public static final MaxThreshold pageSize
public static final MaxThreshold partitionKeysInSelect
public static final DisableFlag readBeforeWriteListOperationsEnabled
public static final DisableFlag allowFilteringEnabled
public static final MaxThreshold inSelectCartesianProduct
IN
query.public static final Values<ConsistencyLevel> readConsistencyLevels
public static final Values<ConsistencyLevel> writeConsistencyLevels
public static final MaxThreshold collectionSize
public static final MaxThreshold itemsPerCollection
public static final MaxThreshold fieldsPerUDT
public static final PercentageThreshold localDataDiskUsage
DiskUsageMonitor
and DiskUsageBroadcaster
.public static final Predicates<InetAddressAndPort> replicaDiskUsage
DiskUsageMonitor
and DiskUsageBroadcaster
.public static final MinThreshold minimumReplicationFactor
public int getKeyspacesWarnThreshold()
getKeyspacesWarnThreshold
in interface GuardrailsMBean
public int getKeyspacesFailThreshold()
getKeyspacesFailThreshold
in interface GuardrailsMBean
public void setKeyspacesThreshold(int warn, int fail)
setKeyspacesThreshold
in interface GuardrailsMBean
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.public int getTablesWarnThreshold()
getTablesWarnThreshold
in interface GuardrailsMBean
public int getTablesFailThreshold()
getTablesFailThreshold
in interface GuardrailsMBean
public void setTablesThreshold(int warn, int fail)
setTablesThreshold
in interface GuardrailsMBean
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.public int getColumnsPerTableWarnThreshold()
getColumnsPerTableWarnThreshold
in interface GuardrailsMBean
public int getColumnsPerTableFailThreshold()
getColumnsPerTableFailThreshold
in interface GuardrailsMBean
public void setColumnsPerTableThreshold(int warn, int fail)
setColumnsPerTableThreshold
in interface GuardrailsMBean
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.public int getSecondaryIndexesPerTableWarnThreshold()
getSecondaryIndexesPerTableWarnThreshold
in interface GuardrailsMBean
public int getSecondaryIndexesPerTableFailThreshold()
getSecondaryIndexesPerTableFailThreshold
in interface GuardrailsMBean
public void setSecondaryIndexesPerTableThreshold(int warn, int fail)
setSecondaryIndexesPerTableThreshold
in interface GuardrailsMBean
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.public boolean getSecondaryIndexesEnabled()
getSecondaryIndexesEnabled
in interface GuardrailsMBean
public void setSecondaryIndexesEnabled(boolean enabled)
GuardrailsMBean
setSecondaryIndexesEnabled
in interface GuardrailsMBean
public int getMaterializedViewsPerTableWarnThreshold()
getMaterializedViewsPerTableWarnThreshold
in interface GuardrailsMBean
public int getMaterializedViewsPerTableFailThreshold()
getMaterializedViewsPerTableFailThreshold
in interface GuardrailsMBean
public void setMaterializedViewsPerTableThreshold(int warn, int fail)
setMaterializedViewsPerTableThreshold
in interface GuardrailsMBean
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.public java.util.Set<java.lang.String> getTablePropertiesWarned()
getTablePropertiesWarned
in interface GuardrailsMBean
public java.lang.String getTablePropertiesWarnedCSV()
getTablePropertiesWarnedCSV
in interface GuardrailsMBean
public void setTablePropertiesWarned(java.lang.String... properties)
public void setTablePropertiesWarned(java.util.Set<java.lang.String> properties)
setTablePropertiesWarned
in interface GuardrailsMBean
properties
- properties that are warned about when creating or altering a table.public void setTablePropertiesWarnedCSV(java.lang.String properties)
setTablePropertiesWarnedCSV
in interface GuardrailsMBean
properties
- Comma-separated list of properties that are warned about when creating or altering a table.public java.util.Set<java.lang.String> getTablePropertiesDisallowed()
getTablePropertiesDisallowed
in interface GuardrailsMBean
public java.lang.String getTablePropertiesDisallowedCSV()
getTablePropertiesDisallowedCSV
in interface GuardrailsMBean
public void setTablePropertiesDisallowed(java.lang.String... properties)
public void setTablePropertiesDisallowed(java.util.Set<java.lang.String> properties)
setTablePropertiesDisallowed
in interface GuardrailsMBean
properties
- properties that are not allowed when creating or altering a table.public void setTablePropertiesDisallowedCSV(java.lang.String properties)
setTablePropertiesDisallowedCSV
in interface GuardrailsMBean
properties
- Comma-separated list of properties that are not allowed when creating or altering a table.public java.util.Set<java.lang.String> getTablePropertiesIgnored()
getTablePropertiesIgnored
in interface GuardrailsMBean
public java.lang.String getTablePropertiesIgnoredCSV()
getTablePropertiesIgnoredCSV
in interface GuardrailsMBean
public void setTablePropertiesIgnored(java.lang.String... properties)
public void setTablePropertiesIgnored(java.util.Set<java.lang.String> properties)
setTablePropertiesIgnored
in interface GuardrailsMBean
properties
- properties that are ignored when creating or altering a table.public void setTablePropertiesIgnoredCSV(java.lang.String properties)
setTablePropertiesIgnoredCSV
in interface GuardrailsMBean
properties
- Comma-separated list of properties that are ignored when creating or altering a table.public boolean getUserTimestampsEnabled()
GuardrailsMBean
getUserTimestampsEnabled
in interface GuardrailsMBean
true
if user-provided timestamps are allowed, false
otherwise.public void setUserTimestampsEnabled(boolean enabled)
GuardrailsMBean
setUserTimestampsEnabled
in interface GuardrailsMBean
enabled
- true
if user-provided timestamps are allowed, false
otherwise.public boolean getAllowFilteringEnabled()
GuardrailsMBean
getAllowFilteringEnabled
in interface GuardrailsMBean
true
if ALLOW FILTERING is allowed, false
otherwise.public void setAllowFilteringEnabled(boolean enabled)
GuardrailsMBean
setAllowFilteringEnabled
in interface GuardrailsMBean
enabled
- true
if ALLOW FILTERING is allowed, false
otherwise.public boolean getUncompressedTablesEnabled()
GuardrailsMBean
getUncompressedTablesEnabled
in interface GuardrailsMBean
true
if users can disable compression on a table, false
otherwise.public void setUncompressedTablesEnabled(boolean enabled)
GuardrailsMBean
setUncompressedTablesEnabled
in interface GuardrailsMBean
enabled
- true
if users can disable compression on a table, false
otherwise.public boolean getCompactTablesEnabled()
GuardrailsMBean
getCompactTablesEnabled
in interface GuardrailsMBean
true
if allowed, false
otherwise.public void setCompactTablesEnabled(boolean enabled)
GuardrailsMBean
setCompactTablesEnabled
in interface GuardrailsMBean
enabled
- true
if allowed, false
otherwise.public boolean getGroupByEnabled()
GuardrailsMBean
getGroupByEnabled
in interface GuardrailsMBean
true
if allowed, false
otherwise.public void setGroupByEnabled(boolean enabled)
GuardrailsMBean
setGroupByEnabled
in interface GuardrailsMBean
enabled
- true
if allowed, false
otherwise.public boolean getDropTruncateTableEnabled()
GuardrailsMBean
getDropTruncateTableEnabled
in interface GuardrailsMBean
true
if allowed, false
otherwise.public void setDropTruncateTableEnabled(boolean enabled)
GuardrailsMBean
setDropTruncateTableEnabled
in interface GuardrailsMBean
public int getPageSizeWarnThreshold()
getPageSizeWarnThreshold
in interface GuardrailsMBean
public int getPageSizeFailThreshold()
getPageSizeFailThreshold
in interface GuardrailsMBean
public void setPageSizeThreshold(int warn, int fail)
setPageSizeThreshold
in interface GuardrailsMBean
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.public boolean getReadBeforeWriteListOperationsEnabled()
GuardrailsMBean
getReadBeforeWriteListOperationsEnabled
in interface GuardrailsMBean
true
if list operations that require read before write are allowed, false
otherwise.public void setReadBeforeWriteListOperationsEnabled(boolean enabled)
GuardrailsMBean
setReadBeforeWriteListOperationsEnabled
in interface GuardrailsMBean
enabled
- true
if list operations that require read before write are allowed, false
otherwise.public int getPartitionKeysInSelectWarnThreshold()
getPartitionKeysInSelectWarnThreshold
in interface GuardrailsMBean
public int getPartitionKeysInSelectFailThreshold()
getPartitionKeysInSelectFailThreshold
in interface GuardrailsMBean
public void setPartitionKeysInSelectThreshold(int warn, int fail)
setPartitionKeysInSelectThreshold
in interface GuardrailsMBean
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.@Nullable public java.lang.String getCollectionSizeWarnThreshold()
getCollectionSizeWarnThreshold
in interface GuardrailsMBean
10GiB
, 20MiB
, 30KiB
or 40B
. A null
value
means that the threshold is disabled.@Nullable public java.lang.String getCollectionSizeFailThreshold()
getCollectionSizeFailThreshold
in interface GuardrailsMBean
10GiB
, 20MiB
, 30KiB
or 40B
. A null
value means that the
threshold is disabled.public void setCollectionSizeThreshold(@Nullable java.lang.String warnSize, @Nullable java.lang.String failSize)
setCollectionSizeThreshold
in interface GuardrailsMBean
warnSize
- The threshold to warn when encountering larger size of collection data than threshold, as a
string formatted as in, for example, 10GiB
, 20MiB
, 30KiB
or 40B
.
A null
value means disabled.failSize
- The threshold to prevent collections with larger data size than threshold, as a string formatted
as in, for example, 10GiB
, 20MiB
, 30KiB
or 40B
. A null
value means disabled.public int getItemsPerCollectionWarnThreshold()
getItemsPerCollectionWarnThreshold
in interface GuardrailsMBean
public int getItemsPerCollectionFailThreshold()
getItemsPerCollectionFailThreshold
in interface GuardrailsMBean
public void setItemsPerCollectionThreshold(int warn, int fail)
setItemsPerCollectionThreshold
in interface GuardrailsMBean
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.public int getInSelectCartesianProductWarnThreshold()
getInSelectCartesianProductWarnThreshold
in interface GuardrailsMBean
public int getInSelectCartesianProductFailThreshold()
getInSelectCartesianProductFailThreshold
in interface GuardrailsMBean
public void setInSelectCartesianProductThreshold(int warn, int fail)
setInSelectCartesianProductThreshold
in interface GuardrailsMBean
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.public java.util.Set<java.lang.String> getReadConsistencyLevelsWarned()
getReadConsistencyLevelsWarned
in interface GuardrailsMBean
public java.lang.String getReadConsistencyLevelsWarnedCSV()
getReadConsistencyLevelsWarnedCSV
in interface GuardrailsMBean
public void setReadConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels)
setReadConsistencyLevelsWarned
in interface GuardrailsMBean
consistencyLevels
- consistency levels that are warned about when reading.public void setReadConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels)
setReadConsistencyLevelsWarnedCSV
in interface GuardrailsMBean
consistencyLevels
- Comma-separated list of consistency levels that are warned about when reading.public java.util.Set<java.lang.String> getReadConsistencyLevelsDisallowed()
getReadConsistencyLevelsDisallowed
in interface GuardrailsMBean
public java.lang.String getReadConsistencyLevelsDisallowedCSV()
getReadConsistencyLevelsDisallowedCSV
in interface GuardrailsMBean
public void setReadConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels)
setReadConsistencyLevelsDisallowed
in interface GuardrailsMBean
consistencyLevels
- consistency levels that are not allowed when reading.public void setReadConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels)
setReadConsistencyLevelsDisallowedCSV
in interface GuardrailsMBean
consistencyLevels
- Comma-separated list of consistency levels that are not allowed when reading.public java.util.Set<java.lang.String> getWriteConsistencyLevelsWarned()
getWriteConsistencyLevelsWarned
in interface GuardrailsMBean
public java.lang.String getWriteConsistencyLevelsWarnedCSV()
getWriteConsistencyLevelsWarnedCSV
in interface GuardrailsMBean
public void setWriteConsistencyLevelsWarned(java.util.Set<java.lang.String> consistencyLevels)
setWriteConsistencyLevelsWarned
in interface GuardrailsMBean
consistencyLevels
- consistency levels that are warned about when writing.public void setWriteConsistencyLevelsWarnedCSV(java.lang.String consistencyLevels)
setWriteConsistencyLevelsWarnedCSV
in interface GuardrailsMBean
consistencyLevels
- Comma-separated list of consistency levels that are warned about when writing.public java.util.Set<java.lang.String> getWriteConsistencyLevelsDisallowed()
getWriteConsistencyLevelsDisallowed
in interface GuardrailsMBean
public java.lang.String getWriteConsistencyLevelsDisallowedCSV()
getWriteConsistencyLevelsDisallowedCSV
in interface GuardrailsMBean
public void setWriteConsistencyLevelsDisallowed(java.util.Set<java.lang.String> consistencyLevels)
setWriteConsistencyLevelsDisallowed
in interface GuardrailsMBean
consistencyLevels
- consistency levels that are not allowed when writing.public void setWriteConsistencyLevelsDisallowedCSV(java.lang.String consistencyLevels)
setWriteConsistencyLevelsDisallowedCSV
in interface GuardrailsMBean
consistencyLevels
- Comma-separated list of consistency levels that are not allowed when writing.public int getFieldsPerUDTWarnThreshold()
getFieldsPerUDTWarnThreshold
in interface GuardrailsMBean
public int getFieldsPerUDTFailThreshold()
getFieldsPerUDTFailThreshold
in interface GuardrailsMBean
public void setFieldsPerUDTThreshold(int warn, int fail)
setFieldsPerUDTThreshold
in interface GuardrailsMBean
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.public int getDataDiskUsagePercentageWarnThreshold()
getDataDiskUsagePercentageWarnThreshold
in interface GuardrailsMBean
[1, 100]
, and -1 means disabled.public int getDataDiskUsagePercentageFailThreshold()
getDataDiskUsagePercentageFailThreshold
in interface GuardrailsMBean
[1, 100]
, and -1 means disabled.public void setDataDiskUsagePercentageThreshold(int warn, int fail)
setDataDiskUsagePercentageThreshold
in interface GuardrailsMBean
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.@Nullable public java.lang.String getDataDiskUsageMaxDiskSize()
getDataDiskUsageMaxDiskSize
in interface GuardrailsMBean
10GiB
, 20MiB
, 30KiB
or 40B
. A null
value means
disabled.public void setDataDiskUsageMaxDiskSize(@Nullable java.lang.String size)
setDataDiskUsageMaxDiskSize
in interface GuardrailsMBean
size
- The max disk size of the data directories when calculating disk usage thresholds, as a string
formatted as in, for example, 10GiB
, 20MiB
, 30KiB
or 40B
.
A null
value means disabled.public int getMinimumReplicationFactorWarnThreshold()
getMinimumReplicationFactorWarnThreshold
in interface GuardrailsMBean
public int getMinimumReplicationFactorFailThreshold()
getMinimumReplicationFactorFailThreshold
in interface GuardrailsMBean
public void setMinimumReplicationFactorThreshold(int warn, int fail)
setMinimumReplicationFactorThreshold
in interface GuardrailsMBean
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.Copyright © 2009- The Apache Software Foundation