Package org.elasticsearch.snapshots
Class SnapshotShardFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.snapshots.SnapshotShardFailure
- All Implemented Interfaces:
Serializable
,Writeable
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
Stores information about failures that occurred during shard snapshotting process for serialization as part of
SnapshotInfo
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ShardOperationFailedException
cause, index, reason, status
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionSnapshotShardFailure
(String nodeId, ShardId shardId, String reason) Constructs new snapshot shard failure object -
Method Summary
Modifier and TypeMethodDescriptionboolean
static SnapshotShardFailure
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) Deserializes snapshot failure information from JSONint
hashCode()
nodeId()
Returns node id where failure occurredtoString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ShardOperationFailedException
getCause, index, reason, shardId, status
Methods inherited from class java.lang.Throwable
addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
SnapshotShardFailure
Constructs new snapshot shard failure object- Parameters:
nodeId
- node where failure occurredshardId
- shard idreason
- failure reason
-
-
Method Details
-
nodeId
Returns node id where failure occurred- Returns:
- node id
-
getShardId
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
IOException
-
toString
-
fromXContent
public static SnapshotShardFailure fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException Deserializes snapshot failure information from JSON- Parameters:
parser
- JSON parser- Returns:
- snapshot failure information
- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-