org.elasticsearch.action.support
Class DefaultShardOperationFailedException
java.lang.Object
org.elasticsearch.action.support.DefaultShardOperationFailedException
- All Implemented Interfaces:
- Serializable, ShardOperationFailedException, Streamable
public class DefaultShardOperationFailedException
- extends Object
- implements ShardOperationFailedException
- See Also:
- Serialized Form
DefaultShardOperationFailedException
public DefaultShardOperationFailedException(IndexShardException e)
DefaultShardOperationFailedException
public DefaultShardOperationFailedException(String index,
int shardId,
Throwable t)
index
public String index()
- Description copied from interface:
ShardOperationFailedException
- The index the operation failed on. Might return null if it can't be derived.
- Specified by:
index
in interface ShardOperationFailedException
shardId
public int shardId()
- Description copied from interface:
ShardOperationFailedException
- The index the operation failed on. Might return -1 if it can't be derived.
- Specified by:
shardId
in interface ShardOperationFailedException
reason
public String reason()
- Description copied from interface:
ShardOperationFailedException
- The reason of the failure.
- Specified by:
reason
in interface ShardOperationFailedException
readShardOperationFailed
public static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012. All Rights Reserved.