|
boolean com.griddynamics.jagger.engine.e1.collector.ConsistencyValidator< Q, E, R >.validate |
( |
Q |
query, |
|
|
E |
endpoint, |
|
|
R |
result, |
|
|
long |
duration |
|
) |
| |
|
virtual |
Returns true if invocation result equals calibration result.
- Author
- Dmitry Kotlyarov
- Parameters
-
query | - the query of current invocation |
endpoint | - the endpoint of current invocation |
result | - the result of invocation |
duration | - the duration of invocation |
- Returns
- true if invocation result equals calibration result
Implements com.griddynamics.jagger.engine.e1.collector.ResponseValidator< Q, E, R >.
86 CalibrationInfo<Q, E, R> info = null;
87 for (CalibrationInfo<Q, E, R> expected : getExpected()) {
88 if (match(CalibrationInfo.create(query, endpoint, result), expected)) {
95 log.warn( "Cannot find calibration info for query {} and endpoint {}", query, endpoint);
99 return resultEquivalence.equivalent(info.getResult(), result);
|