|
34 | 34 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_RETRY_DELAY_FIELD; |
35 | 35 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_BUFFER_COUNT; |
36 | 36 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_BUFFER_SIZE; |
| 37 | +import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_REQUEST_OPERATION_COUNT; |
| 38 | +import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_REQUEST_SIZE; |
37 | 39 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.READ_POLL_TIMEOUT; |
38 | 40 |
|
39 | 41 | public final class PutFollowAction extends Action<PutFollowAction.Response> { |
@@ -66,12 +68,18 @@ public static class Request extends AcknowledgedRequest<Request> implements Indi |
66 | 68 | PARSER.declareString(Request::setLeaderIndex, LEADER_INDEX_FIELD); |
67 | 69 | PARSER.declareString((req, val) -> req.followRequest.setFollowerIndex(val), FOLLOWER_INDEX_FIELD); |
68 | 70 | PARSER.declareInt((req, val) -> req.followRequest.setMaxReadRequestOperationCount(val), MAX_READ_REQUEST_OPERATION_COUNT); |
69 | | - PARSER.declareInt((req, val) -> req.followRequest.setMaxOutstandingReadRequests(val), MAX_OUTSTANDING_READ_REQUESTS); |
70 | 71 | PARSER.declareField( |
71 | 72 | (req, val) -> req.followRequest.setMaxReadRequestSize(val), |
72 | 73 | (p, c) -> ByteSizeValue.parseBytesSizeValue(p.text(), MAX_READ_REQUEST_SIZE.getPreferredName()), |
73 | 74 | MAX_READ_REQUEST_SIZE, |
74 | 75 | ObjectParser.ValueType.STRING); |
| 76 | + PARSER.declareInt((req, val) -> req.followRequest.setMaxOutstandingReadRequests(val), MAX_OUTSTANDING_READ_REQUESTS); |
| 77 | + PARSER.declareInt((req, val) -> req.followRequest.setMaxWriteRequestOperationCount(val), MAX_WRITE_REQUEST_OPERATION_COUNT); |
| 78 | + PARSER.declareField( |
| 79 | + (req, val) -> req.followRequest.setMaxWriteRequestSize(val), |
| 80 | + (p, c) -> ByteSizeValue.parseBytesSizeValue(p.text(), MAX_WRITE_REQUEST_SIZE.getPreferredName()), |
| 81 | + MAX_WRITE_REQUEST_SIZE, |
| 82 | + ObjectParser.ValueType.STRING); |
75 | 83 | PARSER.declareInt((req, val) -> req.followRequest.setMaxOutstandingWriteRequests(val), MAX_OUTSTANDING_WRITE_REQUESTS); |
76 | 84 | PARSER.declareInt((req, val) -> req.followRequest.setMaxWriteBufferCount(val), MAX_WRITE_BUFFER_COUNT); |
77 | 85 | PARSER.declareField( |
|
0 commit comments