protected MasterNodeRequest(StreamInput in) throws IOException { super(in); masterNodeTimeout = in.readTimeValue(); }
protected AcknowledgedRequest(StreamInput in) throws IOException { super(in); timeout = in.readTimeValue(); }
public Scroll(StreamInput in) throws IOException { this.keepAlive = in.readTimeValue(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); masterNodeTimeout = in.readTimeValue(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); timeout = in.readTimeValue(); }
/** * Read an optional {@link TimeValue} from the stream, returning null if no TimeValue was written. */ public @Nullable TimeValue readOptionalTimeValue() throws IOException { if (readBoolean()) { return readTimeValue(); } else { return null; } } }
UnicastPingRequest(StreamInput in) throws IOException { super(in); id = in.readInt(); timeout = in.readTimeValue(); pingResponse = new PingResponse(in); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); waitForActiveShards = ActiveShardCount.readFrom(in); int size = in.readVInt(); for (int i = 0; i < size; i++) { requests.add(DocWriteRequest.readDocumentRequest(in)); } refreshPolicy = RefreshPolicy.readFrom(in); timeout = in.readTimeValue(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); took = in.readTimeValue(); status = new BulkByScrollTask.Status(in); bulkFailures = in.readList(Failure::new); searchFailures = in.readList(ScrollableHitSource.SearchFailure::new); timedOut = in.readBoolean(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); threads = in.readInt(); ignoreIdleThreads = in.readBoolean(); type = in.readString(); interval = in.readTimeValue(); snapshots = in.readInt(); }
public RemoteConnectionInfo(StreamInput input) throws IOException { if (input.getVersion().onOrAfter(Version.V_6_6_0)) { seedNodes = Arrays.asList(input.readStringArray()); } else { // versions prior to 7.0.0 sent the resolved transport address of the seed nodes final List<TransportAddress> transportAddresses = input.readList(TransportAddress::new); seedNodes = transportAddresses .stream() .map(a -> a.address().getHostString() + ":" + a.address().getPort()) .collect(Collectors.toList()); } httpAddresses = input.readList(TransportAddress::new); connectionsPerCluster = input.readVInt(); initialConnectionTimeout = input.readTimeValue(); numNodesConnected = input.readVInt(); clusterAlias = input.readString(); if (input.getVersion().onOrAfter(Version.V_6_1_0)) { skipUnavailable = input.readBoolean(); } else { skipUnavailable = false; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); index = in.readString(); if (in.readBoolean()) { shardId = ShardId.readShardId(in); } else { shardId = null; } timeout = in.readTimeValue(); concreteIndex = in.readOptionalString(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); searchRequest = new SearchRequest(); searchRequest.readFrom(in); abortOnVersionConflict = in.readBoolean(); size = in.readVInt(); refresh = in.readBoolean(); timeout = in.readTimeValue(); activeShardCount = ActiveShardCount.readFrom(in); retryBackoffInitialTime = in.readTimeValue(); maxRetries = in.readVInt(); requestsPerSecond = in.readFloat(); slices = in.readVInt(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.readBoolean()) { shardId = ShardId.readShardId(in); } else { shardId = null; } waitForActiveShards = ActiveShardCount.readFrom(in); timeout = in.readTimeValue(); index = in.readString(); routedBasedOnClusterVersion = in.readVLong(); }
/** * Read from a stream. */ public RemoteInfo(StreamInput in) throws IOException { scheme = in.readString(); host = in.readString(); port = in.readVInt(); query = in.readBytesReference(); username = in.readOptionalString(); password = in.readOptionalString(); int headersLength = in.readVInt(); Map<String, String> headers = new HashMap<>(headersLength); for (int i = 0; i < headersLength; i++) { headers.put(in.readString(), in.readString()); } this.headers = unmodifiableMap(headers); if (in.getVersion().onOrAfter(Version.V_5_2_0)) { socketTimeout = in.readTimeValue(); connectTimeout = in.readTimeValue(); } else { socketTimeout = DEFAULT_SOCKET_TIMEOUT; connectTimeout = DEFAULT_CONNECT_TIMEOUT; } if (in.getVersion().onOrAfter(Version.V_6_4_0)) { pathPrefix = in.readOptionalString(); } else { pathPrefix = null; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = in.readString(); clusterHealthStatus = ClusterHealthStatus.fromValue(in.readByte()); clusterStateHealth = new ClusterStateHealth(in); numberOfPendingTasks = in.readInt(); timedOut = in.readBoolean(); numberOfInFlightFetch = in.readInt(); delayedUnassignedShards= in.readInt(); taskMaxWaitingTime = in.readTimeValue(); }
public Status(StreamInput in) throws IOException { if (in.getVersion().onOrAfter(Version.V_5_1_1)) { sliceId = in.readOptionalVInt(); } else { sliceId = null; } total = in.readVLong(); updated = in.readVLong(); created = in.readVLong(); deleted = in.readVLong(); batches = in.readVInt(); versionConflicts = in.readVLong(); noops = in.readVLong(); bulkRetries = in.readVLong(); searchRetries = in.readVLong(); throttled = in.readTimeValue(); requestsPerSecond = in.readFloat(); reasonCancelled = in.readOptionalString(); throttledUntil = in.readTimeValue(); if (in.getVersion().onOrAfter(Version.V_5_1_1)) { sliceStatuses = in.readList(stream -> stream.readOptionalWriteable(StatusOrException::new)); } else { sliceStatuses = emptyList(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); routingTable = in.readBoolean(); nodes = in.readBoolean(); metaData = in.readBoolean(); blocks = in.readBoolean(); customs = in.readBoolean(); indices = in.readStringArray(); indicesOptions = IndicesOptions.readIndicesOptions(in); if (in.getVersion().onOrAfter(Version.V_6_6_0)) { waitForTimeout = in.readTimeValue(); waitForMetaDataVersion = in.readOptionalLong(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); int size = in.readVInt(); if (size == 0) { indices = Strings.EMPTY_ARRAY; } else { indices = new String[size]; for (int i = 0; i < indices.length; i++) { indices[i] = in.readString(); } } timeout = in.readTimeValue(); if (in.readBoolean()) { waitForStatus = ClusterHealthStatus.fromValue(in.readByte()); } waitForNoRelocatingShards = in.readBoolean(); waitForActiveShards = ActiveShardCount.readFrom(in); waitForNodes = in.readString(); if (in.readBoolean()) { waitForEvents = Priority.readFrom(in); } if (in.getVersion().onOrAfter(Version.V_6_2_0)) { waitForNoInitializingShards = in.readBoolean(); } }
UnicastPingRequest(StreamInput in) throws IOException { super(in); id = in.readInt(); timeout = in.readTimeValue(); pingResponse = new PingResponse(in); }