Ignore:
Timestamp:
01/26/15 15:12:46 (9 years ago)
Author:
emanuel.dima@uni-tuebingen.de
Message:
  1. alpha14: collections view stable sorting, better filtering; upfront diagnostic messages for search
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/Statistics.java

    r5894 r5954  
    1919                List<Long> executionTimes = Collections.synchronizedList(new ArrayList<Long>());
    2020
     21                @JsonProperty
     22                List<Diagnostic> diagnostics = Collections.synchronizedList(new ArrayList<Diagnostic>());
    2123                @JsonProperty
    2224                Map<String, Integer> errors = Collections.synchronizedMap(new HashMap<String, Integer>());
     
    7880        }
    7981
     82        public void addEndpointDiagnostic(Institution institution, String endpoint, Diagnostic diag) {
     83                EndpointStats stats = getEndpointStats(institution, endpoint);
     84                stats.diagnostics.add(diag);
     85        }
     86
    8087        public void addErrorDatapoint(Institution institution, String endpoint, SRUClientException error) {
    8188                EndpointStats stats = getEndpointStats(institution, endpoint);
Note: See TracChangeset for help on using the changeset viewer.