RestStatus function ( ) { if ( state == SnapshotState . FAILED ) { return RestStatus . INTERNAL_SERVER_ERROR ; } if ( shardFailures . size ( ) == 0 ) { return RestStatus . OK ; } return RestStatus . status ( successfulShards , totalShards , shardFailures . toArray ( new ShardOperationFailedException [ shardFailures . size ( ) ] ) ) ; }
returns snapshot rest status concode_field_sep String reason concode_elem_sep XContentBuilderString TOTAL concode_elem_sep XContentBuilderString STATE concode_elem_sep List<SnapshotShardFailure> shardFailures concode_elem_sep XContentBuilderString START_TIME concode_elem_sep XContentBuilderString SHARDS concode_elem_sep FormatDateTimeFormatter DATE_TIME_FORMATTER concode_elem_sep int successfulShards concode_elem_sep XContentBuilderString REASON concode_elem_sep XContentBuilderString FAILURES concode_elem_sep int totalShards concode_elem_sep XContentBuilderString END_TIME concode_elem_sep XContentBuilderString FAILED concode_elem_sep List<String> indices concode_elem_sep XContentBuilderString SUCCESSFUL concode_elem_sep XContentBuilderString START_TIME_IN_MILLIS concode_elem_sep XContentBuilderString DURATION_IN_MILLIS concode_elem_sep String name concode_elem_sep long startTime concode_elem_sep SnapshotState state concode_elem_sep long endTime concode_elem_sep XContentBuilderString INDICES concode_elem_sep XContentBuilderString END_TIME_IN_MILLIS concode_elem_sep XContentBuilderString DURATION concode_field_sep SnapshotInfo readOptionalSnapshotInfo concode_elem_sep String reason concode_elem_sep void readFrom concode_elem_sep List<SnapshotShardFailure> shardFailures concode_elem_sep int successfulShards concode_elem_sep int totalShards concode_elem_sep int failedShards concode_elem_sep void writeTo concode_elem_sep List<String> indices concode_elem_sep XContentBuilder toXContent concode_elem_sep SnapshotInfo readSnapshotInfo concode_elem_sep String name concode_elem_sep long startTime concode_elem_sep SnapshotState state concode_elem_sep long endTime