[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; private boolean closed;
Response() { Response() {
super(null, null);
} }
Response(StreamInput in) throws IOException { Response(StreamInput in) throws IOException {
super(null, null);
readFrom(in); readFrom(in);
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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