public final class FakeRestChannel
extends org.elasticsearch.rest.AbstractRestChannel
Constructor and Description |
---|
FakeRestChannel(org.elasticsearch.rest.RestRequest request,
boolean detailedErrorsEnabled,
int responseCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
await() |
java.util.concurrent.atomic.AtomicInteger |
errors() |
org.elasticsearch.common.xcontent.XContentBuilder |
newBuilder() |
org.elasticsearch.common.xcontent.XContentBuilder |
newBuilder(org.elasticsearch.common.bytes.BytesReference autoDetectSource,
boolean useFiltering) |
protected org.elasticsearch.common.io.stream.BytesStreamOutput |
newBytesOutput() |
org.elasticsearch.common.xcontent.XContentBuilder |
newErrorBuilder() |
org.elasticsearch.rest.RestRequest |
request() |
java.util.concurrent.atomic.AtomicInteger |
responses() |
void |
sendResponse(org.elasticsearch.rest.RestResponse response) |
public FakeRestChannel(org.elasticsearch.rest.RestRequest request, boolean detailedErrorsEnabled, int responseCount)
public org.elasticsearch.common.xcontent.XContentBuilder newBuilder() throws java.io.IOException
newBuilder
in interface org.elasticsearch.rest.RestChannel
newBuilder
in class org.elasticsearch.rest.AbstractRestChannel
java.io.IOException
public org.elasticsearch.common.xcontent.XContentBuilder newErrorBuilder() throws java.io.IOException
newErrorBuilder
in interface org.elasticsearch.rest.RestChannel
newErrorBuilder
in class org.elasticsearch.rest.AbstractRestChannel
java.io.IOException
public org.elasticsearch.common.xcontent.XContentBuilder newBuilder(@Nullable org.elasticsearch.common.bytes.BytesReference autoDetectSource, boolean useFiltering) throws java.io.IOException
newBuilder
in interface org.elasticsearch.rest.RestChannel
newBuilder
in class org.elasticsearch.rest.AbstractRestChannel
java.io.IOException
protected org.elasticsearch.common.io.stream.BytesStreamOutput newBytesOutput()
newBytesOutput
in class org.elasticsearch.rest.AbstractRestChannel
public org.elasticsearch.rest.RestRequest request()
request
in interface org.elasticsearch.rest.RestChannel
request
in class org.elasticsearch.rest.AbstractRestChannel
public void sendResponse(org.elasticsearch.rest.RestResponse response)
public boolean await() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.util.concurrent.atomic.AtomicInteger responses()
public java.util.concurrent.atomic.AtomicInteger errors()