Class Stats


  • public class Stats
    extends Object
    Used to hold statistics about some SolrCloud operations.

    This is experimental API and subject to change.

    • Constructor Detail

      • Stats

        public Stats()
    • Method Detail

      • getSuccessCount

        public int getSuccessCount​(String operation)
      • getErrorCount

        public int getErrorCount​(String operation)
      • success

        public void success​(String operation)
      • error

        public void error​(String operation)
      • time

        public com.codahale.metrics.Timer.Context time​(String operation)
      • storeFailureDetails

        public void storeFailureDetails​(String operation,
                                        org.apache.solr.common.cloud.ZkNodeProps request,
                                        org.apache.solr.client.solrj.SolrResponse resp)
      • getQueueLength

        public int getQueueLength()
      • setQueueLength

        public void setQueueLength​(int queueLength)
      • clear

        public void clear()