コード例 #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();
   }
 }
コード例 #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();
   }
 }
コード例 #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;
   }
 }
コード例 #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();
   }
 }
コード例 #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;
   }
 }