Class CuratorYamlConfig


  • public class CuratorYamlConfig
    extends java.lang.Object
    CuratorYamlConfig represents the configuration of the curator system which can be used to modify result presentation under certain conditions as it was represented in yaml in v13.0.0. This format was changed to JSON (and changed to a list rather than a map with non-string keys) in v13.4 to avoid problems in the JSON representation.
    Since:
    13.4
    • Field Detail

      • triggerActions

        private java.util.Map<Trigger,​ActionSet> triggerActions

        The map of triggers and associated actions for this curator configuration.

        The actions will be performed when a request matching the given trigger is detected.

        Since:
        13.4
    • Constructor Detail

      • CuratorYamlConfig

        public CuratorYamlConfig​(java.util.Map<Trigger,​ActionSet> triggerActions)
      • CuratorYamlConfig

        public CuratorYamlConfig()
    • Method Detail

      • toTriggerActions

        public java.util.List<TriggerActions> toTriggerActions()

        Convert the internal map into a TriggerAction list compatible with the new format.

        Since:
        14.0
      • getTriggerActions

        public java.util.Map<Trigger,​ActionSet> getTriggerActions()

        The map of triggers and associated actions for this curator configuration.

        The actions will be performed when a request matching the given trigger is detected.

        Since:
        13.4
      • setTriggerActions

        public void setTriggerActions​(java.util.Map<Trigger,​ActionSet> triggerActions)

        The map of triggers and associated actions for this curator configuration.

        The actions will be performed when a request matching the given trigger is detected.

        Since:
        13.4