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.RestChannelnewBuilder in class org.elasticsearch.rest.AbstractRestChanneljava.io.IOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder newErrorBuilder()
throws java.io.IOException
newErrorBuilder in interface org.elasticsearch.rest.RestChannelnewErrorBuilder in class org.elasticsearch.rest.AbstractRestChanneljava.io.IOExceptionpublic 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.RestChannelnewBuilder in class org.elasticsearch.rest.AbstractRestChanneljava.io.IOExceptionprotected org.elasticsearch.common.io.stream.BytesStreamOutput newBytesOutput()
newBytesOutput in class org.elasticsearch.rest.AbstractRestChannelpublic org.elasticsearch.rest.RestRequest request()
request in interface org.elasticsearch.rest.RestChannelrequest in class org.elasticsearch.rest.AbstractRestChannelpublic void sendResponse(org.elasticsearch.rest.RestResponse response)
public boolean await()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.util.concurrent.atomic.AtomicInteger responses()
public java.util.concurrent.atomic.AtomicInteger errors()