Package ai.pipestream.api.validation
Interface ConfigValidator<T extends ConfigValidatable>
- Type Parameters:
T- The type of configuration object being validated, must implement ConfigValidatable
- All Known Subinterfaces:
ModeAwareValidator<T>,PipelineClusterConfigValidator,PipelineConfigValidator
public interface ConfigValidator<T extends ConfigValidatable>
Base interface for all configuration validators in the Rokkon pipeline system.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the priority of this validator (lower numbers = higher priority).default StringReturns the name of this validator for error reporting.default Set<ValidationMode> Returns the set of validation modes this validator supports.Validates the given configuration object and returns a validation result.
-
Method Details
-
validate
Validates the given configuration object and returns a validation result.- Parameters:
config- The configuration object to validate- Returns:
- ValidationResult containing the validation outcome
-
getValidatorName
Returns the name of this validator for error reporting.- Returns:
- A human-readable name for this validator
-
getPriority
default int getPriority()Returns the priority of this validator (lower numbers = higher priority). Validators with higher priority are executed first.- Returns:
- Priority level (default is 100)
-
supportedModes
Returns the set of validation modes this validator supports. Defaults to all modes (PRODUCTION, DESIGN, TESTING) for backward compatibility.- Returns:
- Set of ValidationMode enums this validator should run for
-