public final class TaskOperationFailure extends Object implements Writeable<TaskOperationFailure>, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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
IOException
public String getNodeId()
public long getTaskId()
public String getReason()
public RestStatus getStatus()
public Throwable getCause()
public TaskOperationFailure readFrom(StreamInput in) throws IOException
StreamableReader
readFrom
in interface StreamableReader<TaskOperationFailure>
IOException
public void writeTo(StreamOutput out) throws IOException
Writeable
writeTo
in interface Writeable<TaskOperationFailure>
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.