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