Java Code Examples for org.elasticsearch.action.admin.indices.stats.ShardStats#readShardStats()
The following examples show how to use
org.elasticsearch.action.admin.indices.stats.ShardStats#readShardStats() .
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: IndexShardStatsResponse.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); shards = new ShardStats[in.readVInt()]; for (int i = 0; i < shards.length; i++) { shards[i] = ShardStats.readShardStats(in); } }
Example 2
Source File: ClusterStatsNodeResponse.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterStatus = null; if (in.readBoolean()) { clusterStatus = ClusterHealthStatus.fromValue(in.readByte()); } this.nodeInfo = NodeInfo.readNodeInfo(in); this.nodeStats = NodeStats.readNodeStats(in); int size = in.readVInt(); shardsStats = new ShardStats[size]; for (size--; size >= 0; size--) { shardsStats[size] = ShardStats.readShardStats(in); } }
Example 3
Source File: TransportIndexShardStatsAction.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override protected ShardStats readShardResult(StreamInput in) throws IOException { return ShardStats.readShardStats(in); }