@Override public void setNodeService(@Nullable NodeService nodeService) { this.nodeService = nodeService; }
@Override public void setNodeService(@Nullable NodeService nodeService) { this.nodeService = nodeService; }
@Override public void setNodeService(@Nullable NodeService nodeService) { this.nodeService = nodeService; }
@Override public void setNodeService(@Nullable NodeService nodeService) { this.nodeService = nodeService; }
@Override public void setNodeService(@Nullable NodeService nodeService) { this.nodeService = nodeService; }
@Override public void setNodeService(@Nullable NodeService nodeService) { // nothing to do here }
InjectorImpl(@Nullable InjectorImpl parent, State state, Initializer initializer) { this.parent = parent; this.state = state; this.initializer = initializer; if (parent != null) { localContext = parent.localContext; } else { localContext = new ThreadLocal<>(); } }
@Override public void onFailure(String source, @Nullable Exception e) { logger.error("unexpected error while trying to finalize cluster join", e); joinThreadControl.markThreadAsDoneAndStartNew(currentThread); } });
public HistogramAggregator(String name, AggregatorFactories factories, Rounding rounding, InternalOrder order, boolean keyed, long minDocCount, @Nullable ExtendedBounds extendedBounds, @Nullable ValuesSource.Numeric valuesSource, ValueFormatter formatter, InternalHistogram.Factory<?> histogramFactory, AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { super(name, factories, aggregationContext, parent, pipelineAggregators, metaData); this.rounding = rounding; this.order = order; this.keyed = keyed; this.minDocCount = minDocCount; this.extendedBounds = extendedBounds; this.valuesSource = valuesSource; this.formatter = formatter; this.histogramFactory = histogramFactory; bucketOrds = new LongHash(1, aggregationContext.bigArrays()); }
DateHistogramAggregator(String name, AggregatorFactories factories, Rounding rounding, long offset, InternalOrder order, boolean keyed, long minDocCount, @Nullable ExtendedBounds extendedBounds, @Nullable ValuesSource.Numeric valuesSource, DocValueFormat formatter, SearchContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { super(name, factories, aggregationContext, parent, pipelineAggregators, metaData); this.rounding = rounding; this.offset = offset; this.order = order; this.keyed = keyed; this.minDocCount = minDocCount; this.extendedBounds = extendedBounds; this.valuesSource = valuesSource; this.formatter = formatter; bucketOrds = new LongHash(1, aggregationContext.bigArrays()); }
@Nullable private NodeService nodeService; private volatile DiscoveryNodes latestDiscoNodes; private final PublishClusterStateAction publishClusterState;
@Nullable private NodeService nodeService; private AllocationService allocationService;
@Nullable private NodeService nodeService; private AllocationService allocationService; private volatile DiscoveryNodes latestDiscoNodes;
@Nullable private NodeService nodeService; private AllocationService allocationService;
@Override public void onFailure(String source, @Nullable Throwable t) { logger.error("unexpected error while trying to finalize cluster join", t); joinThreadControl.markThreadAsDoneAndStartNew(currentThread); } });
@Nullable private NodeService nodeService;
/** * Returns a string containing the {@code tokens}, converted to strings if * necessary, separated by {@code delimiter}. * <p> * Each token will be converted to a {@link CharSequence} using * {@link String#valueOf(Object)}, if it isn't a {@link CharSequence} already. * Note that this implies that null tokens will be appended as the * four-character string {@code "null"}. * * @param delimiter a string to append between every element, but not at the * beginning or end * @param firstToken the first object to append * @param otherTokens subsequent objects to append * @return a string consisting of the joined elements */ public static String join( String delimiter, @Nullable Object firstToken, Object... otherTokens) { Objects.requireNonNull(otherTokens); return join(delimiter, CollectionUtils.asArrayList(firstToken, otherTokens)); }
HistogramAggregator(String name, AggregatorFactories factories, double interval, double offset, InternalOrder order, boolean keyed, long minDocCount, double minBound, double maxBound, @Nullable ValuesSource.Numeric valuesSource, DocValueFormat formatter, SearchContext context, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { super(name, factories, context, parent, pipelineAggregators, metaData); if (interval <= 0) { throw new IllegalArgumentException("interval must be positive, got: " + interval); } this.interval = interval; this.offset = offset; this.order = order; this.keyed = keyed; this.minDocCount = minDocCount; this.minBound = minBound; this.maxBound = maxBound; this.valuesSource = valuesSource; this.formatter = formatter; bucketOrds = new LongHash(1, context.bigArrays()); }
/** * Appends each of the {@code tokens} to {@code appendable}, separated by * {@code delimiter}. * <p> * Each token will be converted to a {@link CharSequence} using * {@link String#valueOf(Object)}, if it isn't a {@link CharSequence} already. * Note that this implies that null tokens will be appended as the * four-character string {@code "null"}. * * @param appendable the object to append the results to * @param delimiter a string to append between every element, but not at the * beginning or end * @param firstToken the first object to append * @param otherTokens subsequent objects to append * @return the same {@code Appendable} instance that was passed in * @throws JoinException if an {@link IOException} occurs */ public static <T extends Appendable> T join(T appendable, String delimiter, @Nullable Object firstToken, Object... otherTokens) { Objects.requireNonNull(otherTokens); return join(appendable, delimiter, CollectionUtils.asArrayList(firstToken, otherTokens)); }
/** * Builds a connection profile that is dedicated to a single channel type. Use this * when opening single use connections */ public static ConnectionProfile buildSingleChannelProfile(TransportRequestOptions.Type channelType, @Nullable TimeValue connectTimeout, @Nullable TimeValue handshakeTimeout) { Builder builder = new Builder(); builder.addConnections(1, channelType); final EnumSet<TransportRequestOptions.Type> otherTypes = EnumSet.allOf(TransportRequestOptions.Type.class); otherTypes.remove(channelType); builder.addConnections(0, otherTypes.stream().toArray(TransportRequestOptions.Type[]::new)); if (connectTimeout != null) { builder.setConnectTimeout(connectTimeout); } if (handshakeTimeout != null) { builder.setHandshakeTimeout(handshakeTimeout); } return builder.build(); }