Class GuardrailsConfigProvider.Default
- java.lang.Object
-
- org.apache.cassandra.db.guardrails.GuardrailsConfigProvider.Default
-
- All Implemented Interfaces:
GuardrailsConfigProvider
- Enclosing interface:
- GuardrailsConfigProvider
public static class GuardrailsConfigProvider.Default extends java.lang.Object implements GuardrailsConfigProvider
Default implementation ofGuardrailsConfigProvider
that always returns theGuardrailsConfig
parsed fromcassandra.yaml
, independently of theClientState
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.guardrails.GuardrailsConfigProvider
GuardrailsConfigProvider.Default
-
-
Field Summary
-
Fields inherited from interface org.apache.cassandra.db.guardrails.GuardrailsConfigProvider
CUSTOM_IMPLEMENTATION_PROPERTY, instance
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GuardrailsConfig
getOrCreate(ClientState state)
Returns theGuardrailsConfig
to be used for the specifiedClientState
.
-
-
-
Method Detail
-
getOrCreate
public GuardrailsConfig getOrCreate(@Nullable ClientState state)
Description copied from interface:GuardrailsConfigProvider
Returns theGuardrailsConfig
to be used for the specifiedClientState
.- Specified by:
getOrCreate
in interfaceGuardrailsConfigProvider
- Parameters:
state
- a client state, maybenull
if the guardrails check for which we are getting the config is for a background process that is not associated to a user query.- Returns:
- the configuration to be used for
state
-
-