org.elasticsearch.action.support
Class DefaultShardOperationFailedException

java.lang.Object
  extended by org.elasticsearch.action.support.DefaultShardOperationFailedException
All Implemented Interfaces:
Serializable, ShardOperationFailedException, Streamable

public class DefaultShardOperationFailedException
extends Object
implements ShardOperationFailedException

See Also:
Serialized Form

Constructor Summary
DefaultShardOperationFailedException(IndexShardException e)
           
DefaultShardOperationFailedException(String index, int shardId, Throwable t)
           
 
Method Summary
 String index()
          The index the operation failed on.
 void readFrom(StreamInput in)
           
static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in)
           
 String reason()
          The reason of the failure.
 int shardId()
          The index the operation failed on.
 String toString()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultShardOperationFailedException

public DefaultShardOperationFailedException(IndexShardException e)

DefaultShardOperationFailedException

public DefaultShardOperationFailedException(String index,
                                            int shardId,
                                            Throwable t)
Method Detail

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.