Class HandlerReportBuilder


  • public class HandlerReportBuilder
    extends Object
    Methods taken from AlfrescoCoreAdminHandler that deal with building reports
    • Constructor Detail

      • HandlerReportBuilder

        public HandlerReportBuilder()
    • Method Detail

      • buildAclReport

        public static org.apache.solr.common.util.NamedList<Object> buildAclReport​(AclTracker tracker,
                                                                                   Long aclid)
                                                                            throws IOException,
                                                                                   org.json.JSONException
        Builds AclReport
        Parameters:
        tracker -
        aclid -
        Returns:
        Throws:
        IOException
        org.json.JSONException
      • buildTxReport

        public static org.apache.solr.common.util.NamedList<Object> buildTxReport​(TrackerRegistry trackerRegistry,
                                                                                  InformationServer srv,
                                                                                  String coreName,
                                                                                  MetadataTracker tracker,
                                                                                  Long txid)
                                                                           throws org.alfresco.httpclient.AuthenticationException,
                                                                                  IOException,
                                                                                  org.json.JSONException,
                                                                                  org.apache.commons.codec.EncoderException
        Builds TxReport
        Parameters:
        trackerRegistry -
        srv -
        coreName -
        tracker -
        txid -
        Returns:
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
        org.apache.commons.codec.EncoderException
      • buildAclTxReport

        public static org.apache.solr.common.util.NamedList<Object> buildAclTxReport​(TrackerRegistry trackerRegistry,
                                                                                     InformationServer srv,
                                                                                     String coreName,
                                                                                     AclTracker tracker,
                                                                                     Long acltxid)
                                                                              throws org.alfresco.httpclient.AuthenticationException,
                                                                                     IOException,
                                                                                     org.json.JSONException,
                                                                                     org.apache.commons.codec.EncoderException
        Builds AclTxReport
        Parameters:
        trackerRegistry -
        srv -
        coreName -
        tracker -
        acltxid -
        Returns:
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
        org.apache.commons.codec.EncoderException
      • buildNodeReport

        public static org.apache.solr.common.util.NamedList<Object> buildNodeReport​(MetadataTracker tracker,
                                                                                    org.alfresco.solr.client.Node node)
                                                                             throws IOException,
                                                                                    org.json.JSONException
        Builds Node report
        Parameters:
        tracker -
        node -
        Returns:
        Throws:
        IOException
        org.json.JSONException
      • buildNodeReport

        public static org.apache.solr.common.util.NamedList<Object> buildNodeReport​(MetadataTracker tracker,
                                                                                    Long dbid)
                                                                             throws IOException,
                                                                                    org.json.JSONException
        Builds Node Report
        Parameters:
        tracker -
        dbid -
        Returns:
        Throws:
        IOException
        org.json.JSONException
      • buildTrackerReport

        public static org.apache.solr.common.util.NamedList<Object> buildTrackerReport​(TrackerRegistry trackerRegistry,
                                                                                       InformationServer srv,
                                                                                       String coreName,
                                                                                       Long fromTx,
                                                                                       Long toTx,
                                                                                       Long fromAclTx,
                                                                                       Long toAclTx,
                                                                                       Long fromTime,
                                                                                       Long toTime)
                                                                                throws IOException,
                                                                                       org.json.JSONException,
                                                                                       org.alfresco.httpclient.AuthenticationException,
                                                                                       org.apache.commons.codec.EncoderException
        Builds Tracker report
        Parameters:
        trackerRegistry -
        srv -
        coreName -
        fromTx -
        toTx -
        fromAclTx -
        toAclTx -
        fromTime -
        toTime -
        Returns:
        Throws:
        IOException
        org.json.JSONException
        org.alfresco.httpclient.AuthenticationException
        org.apache.commons.codec.EncoderException
      • addCoreSummary

        public static void addCoreSummary​(TrackerRegistry trackerRegistry,
                                          String cname,
                                          boolean detail,
                                          boolean hist,
                                          boolean values,
                                          InformationServer srv,
                                          org.apache.solr.common.util.NamedList<Object> report)
                                   throws IOException
        Adds a core summary
        Parameters:
        cname -
        detail -
        hist -
        values -
        srv -
        report -
        Throws:
        IOException