public final class TaskOperationFailure extends Object implements Writeable<TaskOperationFailure>, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
TaskOperationFailure(StreamInput in) |
TaskOperationFailure(String nodeId,
long taskId,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause() |
String |
getNodeId() |
String |
getReason() |
RestStatus |
getStatus() |
long |
getTaskId() |
TaskOperationFailure |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
public TaskOperationFailure(StreamInput in) throws IOException
IOExceptionpublic String getNodeId()
public long getTaskId()
public String getReason()
public RestStatus getStatus()
public Throwable getCause()
public TaskOperationFailure readFrom(StreamInput in) throws IOException
StreamableReaderreadFrom in interface StreamableReader<TaskOperationFailure>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
WriteablewriteTo in interface Writeable<TaskOperationFailure>IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.