Class CancelAllocationCommand

    • Constructor Detail

      • CancelAllocationCommand

        public CancelAllocationCommand​(java.lang.String index,
                                       int shardId,
                                       java.lang.String node,
                                       boolean allowPrimary)
        Parameters:
        index - index of the shard which allocation should be canceled
        shardId - id of the shard which allocation should be canceled
        node - id of the node that manages the shard which allocation should be canceled
      • CancelAllocationCommand

        public CancelAllocationCommand​(StreamInput in)
                                throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: AllocationCommand
        Get the name of the command
        Specified by:
        name in interface AllocationCommand
        Returns:
        name of the command
      • index

        public java.lang.String index()
        Get the index of the shard which allocation should be canceled
        Returns:
        index of the shard which allocation should be canceled
      • shardId

        public int shardId()
        Get the id of the shard which allocation should be canceled
        Returns:
        id of the shard which allocation should be canceled
      • node

        public java.lang.String node()
        Get the id of the node that manages the shard which allocation should be canceled
        Returns:
        id of the node that manages the shard which allocation should be canceled
      • allowPrimary

        public boolean allowPrimary()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object