[ML] Call initialising constructor of BaseTasksRequest (elastic/x-pack-elasticsearch#1771)

Original commit: elastic/x-pack-elasticsearch@216527c959
This commit is contained in:
David Kyle 2017-06-19 16:40:32 +01:00 committed by GitHub
parent 7ab6a7e83a
commit cbceae4a33
7 changed files with 12 additions and 1 deletions

View File

@ -233,9 +233,12 @@ public class CloseJobAction extends Action<CloseJobAction.Request, CloseJobActio
private boolean closed;
Response() {
super(null, null);
}
Response(StreamInput in) throws IOException {
super(null, null);
readFrom(in);
}

View File

@ -190,6 +190,7 @@ public class FlushJobAction extends Action<FlushJobAction.Request, FlushJobActio
private boolean flushed;
Response() {
super(null, null);
}
Response(boolean flushed) {

View File

@ -168,6 +168,7 @@ public class IsolateDatafeedAction
}
public Response(StreamInput in) throws IOException {
super(null, null);
readFrom(in);
}

View File

@ -78,9 +78,11 @@ public class KillProcessAction extends Action<KillProcessAction.Request, KillPro
private boolean killed;
Response() {
super(null, null);
}
Response(StreamInput in) throws IOException {
super(null, null);
readFrom(in);
}

View File

@ -67,10 +67,12 @@ public class PostDataAction extends Action<PostDataAction.Request, PostDataActio
private DataCounts dataCounts;
Response(String jobId) {
super(null, null);
dataCounts = new DataCounts(jobId);
}
private Response() {
super(null, null);
}
public Response(DataCounts counts) {

View File

@ -222,10 +222,12 @@ public class StopDatafeedAction
}
public Response(StreamInput in) throws IOException {
super(null, null);
readFrom(in);
}
public Response() {
super(null, null);
}
public boolean isStopped() {

View File

@ -477,7 +477,7 @@ public class TestPersistentTasksPlugin extends Plugin implements ActionPlugin {
private List<TestTaskResponse> tasks;
public TestTasksResponse() {
super(null, null);
}
public TestTasksResponse(List<TestTaskResponse> tasks, List<TaskOperationFailure> taskFailures,