Add RDAP metric class

The code to use this class will come in future CLs, to avoid a huge CL.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=175162557
This commit is contained in:
mountford 2017-11-09 08:41:12 -08:00 committed by jianglai
parent 2aa897e698
commit ff1ab08302
10 changed files with 570 additions and 10 deletions

View file

@ -219,7 +219,7 @@ public class RdapEntitySearchAction extends RdapActionBase {
((contactResource != null) && shouldBeVisible(contactResource, now))
? ImmutableList.of(contactResource)
: ImmutableList.of(),
IncompletenessWarningType.NONE,
IncompletenessWarningType.COMPLETE,
getMatchingRegistrars(partialStringQuery.getInitialString()),
now);
// Handle queries with a wildcard (or including deleted), but no suffix. Because the handle
@ -328,6 +328,6 @@ public class RdapEntitySearchAction extends RdapActionBase {
ImmutableList.copyOf(jsonOutputList),
(jsonOutputList.size() < rdapResultSetMaxSize)
? incompletenessWarningType
: IncompletenessWarningType.NONE);
: IncompletenessWarningType.COMPLETE);
}
}