當前位置: 首頁>>代碼示例>>Java>>正文


Java RestStatus.readFrom方法代碼示例

本文整理匯總了Java中org.elasticsearch.rest.RestStatus.readFrom方法的典型用法代碼示例。如果您正苦於以下問題:Java RestStatus.readFrom方法的具體用法?Java RestStatus.readFrom怎麽用?Java RestStatus.readFrom使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.elasticsearch.rest.RestStatus的用法示例。


在下文中一共展示了RestStatus.readFrom方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    id = in.readVInt();
    description = in.readString();
    final int len = in.readVInt();
    ArrayList<ClusterBlockLevel> levels = new ArrayList<>();
    for (int i = 0; i < len; i++) {
        levels.add(ClusterBlockLevel.fromId(in.readVInt()));
    }
    this.levels = EnumSet.copyOf(levels);
    retryable = in.readBoolean();
    disableStatePersistence = in.readBoolean();
    status = RestStatus.readFrom(in);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:15,代碼來源:ClusterBlock.java

示例2: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    nodeId = in.readOptionalString();
    shardId = ShardId.readShardId(in);
    reason = in.readString();
    status = RestStatus.readFrom(in);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:8,代碼來源:SnapshotShardFailure.java

示例3: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        shardTarget = new SearchShardTarget(in);
    }
    reason = in.readString();
    status = RestStatus.readFrom(in);
    cause = in.readException();
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:10,代碼來源:ShardSearchFailure.java

示例4: TaskOperationFailure

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
/**
 * Read from a stream.
 */
public TaskOperationFailure(StreamInput in) throws IOException {
    nodeId = in.readString();
    taskId = in.readLong();
    reason = in.readException();
    status = RestStatus.readFrom(in);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:10,代碼來源:TaskOperationFailure.java

示例5: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    shardId = ShardId.readShardId(in);
    nodeId = in.readOptionalString();
    cause = in.readException();
    status = RestStatus.readFrom(in);
    primary = in.readBoolean();
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:9,代碼來源:ReplicationResponse.java

示例6: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        index = in.readString();
    }
    shardId = in.readVInt();
    reason = in.readException();
    status = RestStatus.readFrom(in);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:10,代碼來源:DefaultShardOperationFailedException.java

示例7: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    nodeId = in.readOptionalString();
    index = in.readString();
    shardId = in.readVInt();
    reason = in.readString();
    status = RestStatus.readFrom(in);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:9,代碼來源:SnapshotShardFailure.java

示例8: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        shardTarget = readSearchShardTarget(in);
    }
    reason = in.readString();
    status = RestStatus.readFrom(in);
    cause = in.readThrowable();
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:ShardSearchFailure.java

示例9: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.readBoolean()) {
        index = in.readString();
    }
    shardId = in.readVInt();
    reason = in.readThrowable();
    status = RestStatus.readFrom(in);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:DefaultShardOperationFailedException.java

示例10: readFrom

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    index = in.readString();
    shardId = in.readVInt();
    nodeId = in.readOptionalString();
    cause = in.readThrowable();
    status = RestStatus.readFrom(in);
    primary = in.readBoolean();
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:ActionWriteResponse.java

示例11: ElasticsearchStatusException

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
/**
 * Read from a stream.
 */
public ElasticsearchStatusException(StreamInput in) throws IOException {
    super(in);
    status = RestStatus.readFrom(in);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:8,代碼來源:ElasticsearchStatusException.java

示例12: NotSerializableExceptionWrapper

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
public NotSerializableExceptionWrapper(StreamInput in) throws IOException {
    super(in);
    name = in.readString();
    status = RestStatus.readFrom(in);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:6,代碼來源:NotSerializableExceptionWrapper.java

示例13: ElasticsearchSecurityException

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
public ElasticsearchSecurityException(StreamInput in) throws IOException {
    super(in);
    status = RestStatus.readFrom(in);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:5,代碼來源:ElasticsearchSecurityException.java

示例14: TaskOperationFailure

import org.elasticsearch.rest.RestStatus; //導入方法依賴的package包/類
public TaskOperationFailure(StreamInput in) throws IOException {
    nodeId = in.readString();
    taskId = in.readLong();
    reason = in.readThrowable();
    status = RestStatus.readFrom(in);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:7,代碼來源:TaskOperationFailure.java


注:本文中的org.elasticsearch.rest.RestStatus.readFrom方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。