Class Conditions

java.lang.Object
io.nosqlbench.nb.api.advisor.conditions.Conditions

public class Conditions extends Object

The mappings between logging levels for conditions and the advisory levels should be consistent, so they will be described here to start.

These are the levels which conditions should use:

  1. Level.ERROR (internal to conditions, cause immediate exceptions)
  2. Level.WARN (conditions which should inform the user about a likely issue)
  3. Level.INFO (conditions which may inform the user about a possible issue)

This means that the following three behaviors are possible:

  1. NBAdvisorLevel.none - Only ERROR level results throw exceptions, no results are presented.
  2. NBAdvisorLevel.validate - Only ERROR level results throw exceptions, all results are presented.
  3. NBAdvisorLevel.enforce - ERROR and WARN levels throw exceptions.
  • Field Details

    • NoHyphensError

      public static NoHyphens NoHyphensError
    • NoHyphensWarning

      public static NoHyphens NoHyphensWarning
    • NoSpacesError

      public static NoSpaces NoSpacesError
    • NoSpacesWarning

      public static NoSpaces NoSpacesWarning
    • ValidNameError

      public static ValidName ValidNameError
    • ValidNameWarning

      public static ValidName ValidNameWarning
    • DeprecatedError

      public static Deprecated DeprecatedError
    • DeprecatedWarning

      public static Deprecated DeprecatedWarning
  • Constructor Details

    • Conditions

      public Conditions()