Class NodesResponseHeader

    • Constructor Detail

    • Method Detail

      • fromXContent

        public static NodesResponseHeader fromXContent​(XContentParser parser,
                                                       java.lang.Void context)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getTotal

        public int getTotal()
        the total number of nodes that the operation was carried on
      • getFailed

        public int getFailed()
        the number of nodes that the operation has failed on
      • getSuccessful

        public int getSuccessful()
        the number of nodes that the operation was successful on
      • getFailures

        public java.util.List<ElasticsearchException> getFailures()
        Get the failed node exceptions.
        Returns:
        Never null. Can be empty.
      • hasFailures

        public boolean hasFailures()
        Determine if there are any node failures in failures.
        Returns:
        true if failures contains at least 1 exception.
      • equals

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

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