Class ShutdownShardMigrationStatus
java.lang.Object
org.elasticsearch.cluster.metadata.ShutdownShardMigrationStatus
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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 interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionShutdownShardMigrationStatus
(SingleNodeShutdownMetadata.Status status, long shardsRemaining) ShutdownShardMigrationStatus
(SingleNodeShutdownMetadata.Status status, long shardsRemaining, String explanation) ShutdownShardMigrationStatus
(SingleNodeShutdownMetadata.Status status, long shardsRemaining, String explanation, ShardAllocationDecision allocationDecision) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
hashCode()
toString()
toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NODE_ALLOCATION_DECISION_KEY
- See Also:
-
-
Constructor Details
-
ShutdownShardMigrationStatus
-
ShutdownShardMigrationStatus
public ShutdownShardMigrationStatus(SingleNodeShutdownMetadata.Status status, long shardsRemaining, @Nullable String explanation) -
ShutdownShardMigrationStatus
public ShutdownShardMigrationStatus(SingleNodeShutdownMetadata.Status status, long shardsRemaining, @Nullable String explanation, @Nullable ShardAllocationDecision allocationDecision) -
ShutdownShardMigrationStatus
- Throws:
IOException
-
-
Method Details
-
getShardsRemaining
public long getShardsRemaining() -
getExplanation
-
getStatus
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-