本文整理汇总了Java中org.elasticsearch.rest.RestStatus.writeTo方法的典型用法代码示例。如果您正苦于以下问题:Java RestStatus.writeTo方法的具体用法?Java RestStatus.writeTo怎么用?Java RestStatus.writeTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.elasticsearch.rest.RestStatus
的用法示例。
在下文中一共展示了RestStatus.writeTo方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeVInt(id);
out.writeString(description);
out.writeVInt(levels.size());
for (ClusterBlockLevel level : levels) {
out.writeVInt(level.id());
}
out.writeBoolean(retryable);
out.writeBoolean(disableStatePersistence);
RestStatus.writeTo(out, status);
}
示例2: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeOptionalString(nodeId);
shardId.writeTo(out);
out.writeString(reason);
RestStatus.writeTo(out, status);
}
示例3: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
if (shardTarget == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
shardTarget.writeTo(out);
}
out.writeString(reason);
RestStatus.writeTo(out, status);
out.writeException(cause);
}
示例4: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeString(nodeId);
out.writeLong(taskId);
out.writeException(reason);
RestStatus.writeTo(out, status);
}
示例5: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
shardId.writeTo(out);
out.writeOptionalString(nodeId);
out.writeException(cause);
RestStatus.writeTo(out, status);
out.writeBoolean(primary);
}
示例6: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
if (index == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
out.writeString(index);
}
out.writeVInt(shardId);
out.writeException(reason);
RestStatus.writeTo(out, status);
}
示例7: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeOptionalString(nodeId);
out.writeString(index);
out.writeVInt(shardId);
out.writeString(reason);
RestStatus.writeTo(out, status);
}
示例8: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
if (shardTarget == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
shardTarget.writeTo(out);
}
out.writeString(reason);
RestStatus.writeTo(out, status);
out.writeThrowable(cause);
}
示例9: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeString(nodeId);
out.writeLong(taskId);
out.writeThrowable(reason);
RestStatus.writeTo(out, status);
}
示例10: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
if (index == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
out.writeString(index);
}
out.writeVInt(shardId);
out.writeThrowable(reason);
RestStatus.writeTo(out, status);
}
示例11: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeString(index);
out.writeVInt(shardId);
out.writeOptionalString(nodeId);
out.writeThrowable(cause);
RestStatus.writeTo(out, status);
out.writeBoolean(primary);
}
示例12: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
RestStatus.writeTo(out, status);
}
示例13: writeTo
import org.elasticsearch.rest.RestStatus; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
out.writeString(name);
RestStatus.writeTo(out, status);
}