Class ReplicationResponse.ShardInfo

    • Constructor Detail

      • ShardInfo

        public ShardInfo()
      • ShardInfo

        public ShardInfo​(StreamInput in)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getTotal

        public int getTotal()
        Returns:
        the total number of shards the write should go to (replicas and primaries). This includes relocating shards, so this number can be higher than the number of shards.
      • getSuccessful

        public int getSuccessful()
        Returns:
        the total number of shards the write succeeded on (replicas and primaries). This includes relocating shards, so this number can be higher than the number of shards.
      • getFailed

        public int getFailed()
        Returns:
        The total number of replication failures.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object