Ejemplo n.º 1
0
 private static void interceptTransportActions(String... actions) {
   Iterable<TransportService> transportServices =
       internalCluster().getInstances(TransportService.class);
   for (TransportService transportService : transportServices) {
     ((InterceptingTransportService) transportService).interceptTransportActions(actions);
   }
 }
Ejemplo n.º 2
0
 private static void clearInterceptedActions() {
   Iterable<TransportService> transportServices =
       internalCluster().getInstances(TransportService.class);
   for (TransportService transportService : transportServices) {
     ((InterceptingTransportService) transportService).clearInterceptedActions();
   }
 }