Module org.elasticsearch.xcore
Class MonitoringBulkResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.xpack.core.monitoring.action.MonitoringBulkResponse
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionMonitoringBulkResponse(long tookInMillis, boolean ignored) MonitoringBulkResponse(long tookInMillis, MonitoringBulkResponse.Error error) -
Method Summary
Modifier and TypeMethodDescriptiongetError()org.elasticsearch.core.TimeValuegetTook()longbooleanDetermine if the request was ignored.status()Returns HTTP statusRestStatus.OKif monitoring bulk request was successful (or ignored because collection is disabled)RestStatus.INTERNAL_SERVER_ERRORif monitoring bulk request was partially successful or failed completelyvoidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
MonitoringBulkResponse
public MonitoringBulkResponse(long tookInMillis, boolean ignored) -
MonitoringBulkResponse
-
MonitoringBulkResponse
- Throws:
IOException
-
-
Method Details
-
getTook
public org.elasticsearch.core.TimeValue getTook() -
getTookInMillis
public long getTookInMillis() -
isIgnored
public boolean isIgnored()Determine if the request was ignored.- Returns:
trueif the request was ignored because collection was disabled.
-
status
Returns HTTP statusRestStatus.OKif monitoring bulk request was successful (or ignored because collection is disabled)RestStatus.INTERNAL_SERVER_ERRORif monitoring bulk request was partially successful or failed completely
-
getError
-
writeTo
- Throws:
IOException
-