コード例 #1
0
 private static void interceptTransportActions(String... actions) {
   Iterable<TransportService> transportServices =
       internalCluster().getInstances(TransportService.class);
   for (TransportService transportService : transportServices) {
     ((InterceptingTransportService) transportService).interceptTransportActions(actions);
   }
 }
コード例 #2
0
 private static void clearInterceptedActions() {
   Iterable<TransportService> transportServices =
       internalCluster().getInstances(TransportService.class);
   for (TransportService transportService : transportServices) {
     ((InterceptingTransportService) transportService).clearInterceptedActions();
   }
 }