Java Code Examples for org.elasticsearch.common.settings.Settings#readSettingsFromStream()
The following examples show how to use
org.elasticsearch.common.settings.Settings#readSettingsFromStream() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IndexMetaData.java From crate with Apache License 2.0 | 6 votes |
IndexMetaDataDiff(StreamInput in) throws IOException { index = in.readString(); routingNumShards = in.readInt(); version = in.readLong(); mappingVersion = in.readVLong(); settingsVersion = in.readVLong(); state = State.fromId(in.readByte()); settings = Settings.readSettingsFromStream(in); primaryTerms = in.readVLongArray(); mappings = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), MappingMetaData::new, MappingMetaData::readDiffFrom); aliases = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), AliasMetaData::new, AliasMetaData::readDiffFrom); customData = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), DiffableStringMap::new, DiffableStringMap::readDiffFrom); inSyncAllocationIds = DiffableUtils.readImmutableOpenIntMapDiff(in, DiffableUtils.getVIntKeySerializer(), DiffableUtils.StringSetValueSerializer.getInstance()); }
Example 2
Source File: RepositoryMetaData.java From Elasticsearch with Apache License 2.0 | 5 votes |
/** * Reads repository metadata from stream input * * @param in stream input * @return repository metadata */ public static RepositoryMetaData readFrom(StreamInput in) throws IOException { String name = in.readString(); String type = in.readString(); Settings settings = Settings.readSettingsFromStream(in); return new RepositoryMetaData(name, type, settings); }
Example 3
Source File: ClusterUpdateSettingsResponse.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); transientSettings = Settings.readSettingsFromStream(in); persistentSettings = Settings.readSettingsFromStream(in); readAcknowledged(in); }
Example 4
Source File: NodeInfo.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); version = Version.readVersion(in); build = Build.readBuild(in); if (in.readBoolean()) { ImmutableMap.Builder<String, String> builder = ImmutableMap.builder(); int size = in.readVInt(); for (int i = 0; i < size; i++) { builder.put(in.readString(), in.readString()); } serviceAttributes = builder.build(); } if (in.readBoolean()) { settings = Settings.readSettingsFromStream(in); } if (in.readBoolean()) { os = OsInfo.readOsInfo(in); } if (in.readBoolean()) { process = ProcessInfo.readProcessInfo(in); } if (in.readBoolean()) { jvm = JvmInfo.readJvmInfo(in); } if (in.readBoolean()) { threadPool = ThreadPoolInfo.readThreadPoolInfo(in); } if (in.readBoolean()) { transport = TransportInfo.readTransportInfo(in); } if (in.readBoolean()) { http = HttpInfo.readHttpInfo(in); } if (in.readBoolean()) { plugins = new PluginsAndModules(); plugins.readFrom(in); } }
Example 5
Source File: MetaData.java From crate with Apache License 2.0 | 5 votes |
MetaDataDiff(StreamInput in) throws IOException { clusterUUID = in.readString(); clusterUUIDCommitted = in.readBoolean(); version = in.readLong(); coordinationMetaData = new CoordinationMetaData(in); transientSettings = Settings.readSettingsFromStream(in); persistentSettings = Settings.readSettingsFromStream(in); indices = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), IndexMetaData::readFrom, IndexMetaData::readDiffFrom); templates = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), IndexTemplateMetaData::readFrom, IndexTemplateMetaData::readDiffFrom); customs = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), CUSTOM_VALUE_SERIALIZER); }
Example 6
Source File: RepositoryMetaData.java From crate with Apache License 2.0 | 4 votes |
public RepositoryMetaData(StreamInput in) throws IOException { name = in.readString(); type = in.readString(); settings = Settings.readSettingsFromStream(in); }
Example 7
Source File: ClusterUpdateSettingsResponse.java From crate with Apache License 2.0 | 4 votes |
public ClusterUpdateSettingsResponse(StreamInput in) throws IOException { super(in); transientSettings = Settings.readSettingsFromStream(in); persistentSettings = Settings.readSettingsFromStream(in); }