Fixed compile errors after merge.
This commit is contained in:
parent
f587519f17
commit
d0634e444d
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
|||
import org.elasticsearch.action.support.master.MasterNodeRequest;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.io.stream.Writeable;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
@ -24,9 +25,14 @@ public class DeleteEnrichPolicyAction extends Action<AcknowledgedResponse> {
|
|||
super(NAME);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Writeable.Reader<AcknowledgedResponse> getResponseReader() {
|
||||
return AcknowledgedResponse::new;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcknowledgedResponse newResponse() {
|
||||
return new AcknowledgedResponse();
|
||||
throw new UnsupportedOperationException("usage of Streamable is to be replaced by Writeable");
|
||||
}
|
||||
|
||||
public static class Request extends MasterNodeRequest<DeleteEnrichPolicyAction.Request> {
|
||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
|||
import org.elasticsearch.action.support.master.MasterNodeReadRequest;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.io.stream.Writeable;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
@ -24,9 +25,14 @@ public class ExecuteEnrichPolicyAction extends Action<AcknowledgedResponse> {
|
|||
super(NAME);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Writeable.Reader<AcknowledgedResponse> getResponseReader() {
|
||||
return AcknowledgedResponse::new;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcknowledgedResponse newResponse() {
|
||||
return new AcknowledgedResponse();
|
||||
throw new UnsupportedOperationException("usage of Streamable is to be replaced by Writeable");
|
||||
}
|
||||
|
||||
public static class Request extends MasterNodeReadRequest<Request> {
|
||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
|||
import org.elasticsearch.action.support.master.MasterNodeRequest;
|
||||
import org.elasticsearch.common.io.stream.StreamInput;
|
||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||
import org.elasticsearch.common.io.stream.Writeable;
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
import org.elasticsearch.xpack.core.enrich.EnrichPolicy;
|
||||
|
||||
|
@ -30,9 +31,14 @@ public class PutEnrichPolicyAction extends Action<AcknowledgedResponse> {
|
|||
return new Request(name, EnrichPolicy.fromXContent(parser));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Writeable.Reader<AcknowledgedResponse> getResponseReader() {
|
||||
return AcknowledgedResponse::new;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcknowledgedResponse newResponse() {
|
||||
return new AcknowledgedResponse();
|
||||
throw new UnsupportedOperationException("usage of Streamable is to be replaced by Writeable");
|
||||
}
|
||||
|
||||
public static class Request extends MasterNodeRequest<PutEnrichPolicyAction.Request> {
|
||||
|
|
Loading…
Reference in New Issue