public interface MetricsValidator
MetricsAccessor
,
and validate them.Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete validation.
|
void |
init(Config config)
Initialize with config.
|
void |
validate(MetricsAccessor accessor)
Validate the metrics values of a job
|
void init(Config config)
config
- Job configvoid validate(MetricsAccessor accessor) throws MetricsValidationFailureException
accessor
- Accessor to get the metrics values through specific metrics system, e.g. JMX.MetricsValidationFailureException
- Exception when the validation fails.void complete() throws MetricsValidationFailureException
MetricsValidationFailureException
- Exception when the validation fails.