@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeOptionalWriteable(license); out.writeList(new LinkedList<>(modules)); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArray(updatedConfigTypes); out.writeOptionalString(message); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(hotThreads); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); storeFilesMetaData.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (status != null) { out.writeVInt(status.size()); for (Map.Entry<Snapshot, Map<ShardId, SnapshotIndexShardStatus>> entry : status.entrySet()) { entry.getKey().writeTo(out); out.writeVInt(entry.getValue().size()); for (Map.Entry<ShardId, SnapshotIndexShardStatus> shardEntry : entry.getValue().entrySet()) { shardEntry.getKey().writeTo(out); shardEntry.getValue().writeTo(out); } } } else { out.writeVInt(0); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (metaData == null) { out.writeBoolean(false); } else { out.writeBoolean(true); metaData.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(timestamp); out.writeLong(sinceTime); out.writeGenericValue(restUsage); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (reloadException != null) { out.writeBoolean(true); out.writeException(reloadException); } else { out.writeBoolean(false); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (out.getVersion().before(Version.V_6_0_0_alpha1)) { // legacy version out.writeLong(-1L); } out.writeOptionalString(allocationId); out.writeBoolean(primary); if (storeException != null) { out.writeBoolean(true); out.writeException(storeException); } else { out.writeBoolean(false); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (clusterStatus == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeByte(clusterStatus.value()); } nodeInfo.writeTo(out); nodeStats.writeTo(out); out.writeVInt(shardsStats.length); for (ShardStats ss : shardsStats) { ss.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); storeFilesMetaData.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(hotThreads); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(version.id); Build.writeBuild(build, out); if (totalIndexingBuffer == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeLong(totalIndexingBuffer.getBytes()); } if (settings == null) { out.writeBoolean(false); } else { out.writeBoolean(true); Settings.writeSettingsToStream(settings, out); } out.writeOptionalWriteable(os); out.writeOptionalWriteable(process); out.writeOptionalWriteable(jvm); out.writeOptionalWriteable(threadPool); out.writeOptionalWriteable(transport); out.writeOptionalWriteable(http); out.writeOptionalWriteable(plugins); out.writeOptionalWriteable(ingest); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVLong(timestamp); if (indices == null) { out.writeBoolean(false); } else { out.writeBoolean(true); indices.writeTo(out); } out.writeOptionalWriteable(os); out.writeOptionalWriteable(process); out.writeOptionalWriteable(jvm); out.writeOptionalWriteable(threadPool); out.writeOptionalWriteable(fs); out.writeOptionalWriteable(transport); out.writeOptionalWriteable(http); out.writeOptionalWriteable(breaker); out.writeOptionalWriteable(scriptStats); out.writeOptionalWriteable(discoveryStats); out.writeOptionalWriteable(ingestStats); if (out.getVersion().onOrAfter(Version.V_6_1_0)) { out.writeOptionalWriteable(adaptiveSelectionStats); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeOptionalWriteable(license); out.writeList(new LinkedList<>(modules)); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVLong(timestamp); cacheStats.writeTo(out); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(timestamp); out.writeLong(sinceTime); out.writeGenericValue(restUsage); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (metaData == null) { out.writeBoolean(false); } else { out.writeBoolean(true); metaData.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (reloadException != null) { out.writeBoolean(true); out.writeException(reloadException); } else { out.writeBoolean(false); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(version); if (storeException != null) { out.writeBoolean(true); out.writeThrowable(storeException); } else { out.writeBoolean(false); } } }