Exemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public void removeAll(final SearchIndexDefinition indexDefinition, final ListFilter listFilter) {
   try (AnalyticsTracker tracker =
       analyticsManager.startTracker(ANALYTICS_TYPE, indexDefinition.getName() + "/removeAll")) {
     searchServicesPlugin.remove(indexDefinition, listFilter);
     tracker.markAsSucceeded();
   }
 }
Exemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 public <S extends KeyConcept> void remove(
     final SearchIndexDefinition indexDefinition, final URI<S> uri) {
   try (AnalyticsTracker tracker =
       analyticsManager.startTracker(ANALYTICS_TYPE, indexDefinition.getName() + "/remove")) {
     searchServicesPlugin.remove(indexDefinition, uri);
     tracker.setMeasure("nbModifiedRow", 1).markAsSucceeded();
   }
 }
Exemplo n.º 3
0
 /** {@inheritDoc} */
 @Override
 public long count(final SearchIndexDefinition indexDefinition) {
   try (AnalyticsTracker tracker =
       analyticsManager.startTracker(ANALYTICS_TYPE, indexDefinition.getName() + "/count")) {
     final long result = searchServicesPlugin.count(indexDefinition);
     tracker.markAsSucceeded();
     return result;
   }
 }
Exemplo n.º 4
0
 /** {@inheritDoc} */
 @Override
 public <S extends KeyConcept, I extends DtObject> void put(
     final SearchIndexDefinition indexDefinition, final SearchIndex<S, I> index) {
   try (AnalyticsTracker tracker =
       analyticsManager.startTracker(ANALYTICS_TYPE, indexDefinition.getName() + "/put")) {
     searchServicesPlugin.put(indexDefinition, index);
     tracker.setMeasure("nbModifiedRow", 1).markAsSucceeded();
   }
 }
Exemplo n.º 5
0
 /** {@inheritDoc} */
 @Override
 public <R extends DtObject> FacetedQueryResult<R, SearchQuery> loadList(
     final SearchIndexDefinition indexDefinition,
     final SearchQuery searchQuery,
     final DtListState listState) {
   try (AnalyticsTracker tracker =
       analyticsManager.startTracker(ANALYTICS_TYPE, indexDefinition.getName() + "/load")) {
     final FacetedQueryResult<R, SearchQuery> result =
         searchServicesPlugin.loadList(indexDefinition, searchQuery, listState);
     tracker.setMeasure("nbSelectedRow", result.getCount()).markAsSucceeded();
     return result;
   }
 }