Java Code Examples for org.elasticsearch.common.io.stream.StreamOutput#writeNullableString()

The following examples show how to use org.elasticsearch.common.io.stream.StreamOutput#writeNullableString() . 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: ClusterUpdateSettingsRequest.java    From Elasticsearch with Apache License 2.0 6 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(tenantName);
    writeSettingsToStream(transientSettings, out);
    writeSettingsToStream(persistentSettings, out);
    writeTimeout(out);

    out.writeVInt(transientSettingsToRemove.size());
    for (String transientSettingName : transientSettingsToRemove) {
        out.writeString(transientSettingName);
    }
    out.writeVInt(persistentSettingsToRemove.size());
    for (String persistentSettingName : persistentSettingsToRemove) {
        out.writeString(persistentSettingName);
    }
}
 
Example 2
Source File: LoginUserContext.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeNullableString(loginUsername);
    out.writeLong(tenantId);
    out.writeNullableString(password);
    out.writeNullableString(sourceAddrs);
    out.writeNullableString(proxyAddrs);
    out.writeBoolean(authenticated);
    out.writeBoolean(authorized);
}
 
Example 3
Source File: ModifyTenantNodesRequest.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(nodeIp);
    out.writeInt(nodePort);
    out.writeNullableString(tenantName);
    out.writeInt(operation.getValue());
}
 
Example 4
Source File: AlterTenantPropertyRequest.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(tenantName);
    out.writeInt(nodeNum);
    out.writeNullableString(password);
}
 
Example 5
Source File: CreateTenantRequest.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(this.tenantName);
    out.writeInt(this.nodeNum);
    out.writeNullableString(this.password);
    out.writeNullableString(this.instanceList);
}
 
Example 6
Source File: MigrateIndexTenantRequest.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(tenantName);
    int indexNum = indices == null ? 0 : indices.length;
    out.writeInt(indexNum);
    for (int i = 0; i < indexNum; ++i) {
        out.writeString(indices[i]);
    }
}
 
Example 7
Source File: DeleteTenantRequest.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(tenantName);
}