Interface AllocationCommand

All Superinterfaces:
NamedWriteable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject, Writeable
All Known Implementing Classes:
AbstractAllocateAllocationCommand, AllocateEmptyPrimaryAllocationCommand, AllocateReplicaAllocationCommand, AllocateStalePrimaryAllocationCommand, BasePrimaryAllocationCommand, CancelAllocationCommand, MoveAllocationCommand

public interface AllocationCommand extends NamedWriteable, org.elasticsearch.xcontent.ToXContentObject
A command to move shards in some way. Commands are registered in NetworkModule.
  • 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 interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(RoutingAllocation allocation, boolean explain)
    Executes the command on a RoutingAllocation setup
    default Optional<String>
    Returns any feedback the command wants to provide for logging.
    default String
    Returns the name of the writeable object
    Get the name of the command

    Methods inherited from interface org.elasticsearch.xcontent.ToXContent

    toXContent

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment

    Methods inherited from interface org.elasticsearch.common.io.stream.Writeable

    writeTo