public class CloudInspectUtil extends Object
| Constructor and Description | 
|---|
| CloudInspectUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | checkIfDiffIsLegal(org.apache.solr.common.SolrDocumentList a,
                  org.apache.solr.common.SolrDocumentList b,
                  String aName,
                  String bName,
                  Set<String> bAddFails,
                  Set<String> bDeleteFails)When a and b are known to be different, this method tells if the difference
 is legal given the adds and deletes that failed from b. | 
| static boolean | compareResults(org.apache.solr.client.solrj.SolrClient controlClient,
              org.apache.solr.client.solrj.SolrClient cloudClient)Compares the results of the control and cloud clients. | 
| static boolean | compareResults(org.apache.solr.client.solrj.SolrClient controlClient,
              org.apache.solr.client.solrj.SolrClient cloudClient,
              Set<String> addFails,
              Set<String> deleteFails)Compares the results of the control and cloud clients. | 
| static Set<Map> | showDiff(org.apache.solr.common.SolrDocumentList a,
        org.apache.solr.common.SolrDocumentList b,
        String aName,
        String bName)Shows the difference between two lists of documents. | 
public static boolean checkIfDiffIsLegal(org.apache.solr.common.SolrDocumentList a,
                         org.apache.solr.common.SolrDocumentList b,
                         String aName,
                         String bName,
                         Set<String> bAddFails,
                         Set<String> bDeleteFails)
a - first list of docsb - second list of docsaName - label for first list of docsbName - label for second list of docsbAddFails - null or list of the ids of adds that failed for bbDeleteFails - null or list of the ids of deletes that failed for bpublic static Set<Map> showDiff(org.apache.solr.common.SolrDocumentList a, org.apache.solr.common.SolrDocumentList b, String aName, String bName)
a - the first listb - the second listaName - label for the first listbName - label for the second listpublic static boolean compareResults(org.apache.solr.client.solrj.SolrClient controlClient,
                     org.apache.solr.client.solrj.SolrClient cloudClient)
                              throws org.apache.solr.client.solrj.SolrServerException,
                                     IOException
org.apache.solr.client.solrj.SolrServerExceptionIOExceptionpublic static boolean compareResults(org.apache.solr.client.solrj.SolrClient controlClient,
                     org.apache.solr.client.solrj.SolrClient cloudClient,
                     Set<String> addFails,
                     Set<String> deleteFails)
                              throws org.apache.solr.client.solrj.SolrServerException,
                                     IOException
org.apache.solr.client.solrj.SolrServerExceptionIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.