Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for newNode (0.03 seconds)

  1. benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/Allocators.java

            return new AllocationDeciders(deciders);
        }
    
        private static final AtomicInteger portGenerator = new AtomicInteger();
    
        public static DiscoveryNode newNode(String nodeId, Map<String, String> attributes) {
            return new DiscoveryNode(
                "",
                nodeId,
                new TransportAddress(TransportAddress.META_ADDRESS, portGenerator.incrementAndGet()),
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Feb 03 00:10:53 GMT 2021
    - 3.9K bytes
    - Click Count (0)
  2. benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java

            }
            RoutingTable routingTable = rb.build();
            DiscoveryNodes.Builder nb = DiscoveryNodes.builder();
            for (int i = 1; i <= numNodes; i++) {
                nb.add(Allocators.newNode("node" + i, Collections.singletonMap("tag", "tag_" + (i % numTags))));
            }
            initialClusterState = ClusterState.builder(ClusterName.CLUSTER_NAME_SETTING.getDefault(Settings.EMPTY))
                .metadata(metadata)
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Apr 13 08:33:41 GMT 2021
    - 6.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/general/ApiAdminGeneralAction.java

            validateApi(body, messages -> {});
            final EditBody newBody = new EditBody();
            AdminGeneralAction.updateForm(fessConfig, newBody);
            BeanUtil.copyBeanToBean(body, newBody, CopyOptions::excludeNull);
            AdminGeneralAction.updateConfig(fessConfig, newBody);
            return asJson(new ApiResponse().status(Status.OK).result());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 3.7K bytes
    - Click Count (0)
Back to Top