Class InsertDocument

java.lang.Object
org.gcube.accounting.aggregator.persist.DocumentElaboration
org.gcube.accounting.aggregator.persist.InsertDocument

public class InsertDocument extends DocumentElaboration
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • CSV_FILENAME_SUFFIX

      public static final String CSV_FILENAME_SUFFIX
      See Also:
    • serviceClassName_calledMethods

      protected Map<String,Map<String,Integer>> serviceClassName_calledMethods
      This is used to save a CSV file which allow to made a post analysis of calledMethods The format of the CSV file is serviceClass,serviceName,calledMethod e.g. SDI,GeoNetwork,create There is an entry for each triple
    • unparsableLines

      protected List<String> unparsableLines
    • serviceUsageRecordElaboration

      protected boolean serviceUsageRecordElaboration
    • calledMethodCSVFile

      protected File calledMethodCSVFile
    • aggregatorPersistenceDst

      protected AggregatorPersistenceDst aggregatorPersistenceDst
    • count

      protected int count
  • Constructor Details

  • Method Details

    • getKey

      protected String getKey(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
    • addServiceClassName_calledMethods

      protected void addServiceClassName_calledMethods(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
    • analyseLine

      protected org.gcube.com.fasterxml.jackson.databind.JsonNode analyseLine(String line) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException, IOException
      Throws:
      org.gcube.com.fasterxml.jackson.core.JsonProcessingException
      IOException
    • elaborateLine

      protected void elaborateLine(String line) throws Exception
      Specified by:
      elaborateLine in class DocumentElaboration
      Throws:
      Exception
    • afterElaboration

      protected void afterElaboration() throws Exception
      Description copied from class: DocumentElaboration
      Perform actions at the end of line by line elaboration
      Specified by:
      afterElaboration in class DocumentElaboration
      Throws:
      Exception
    • setServiceUsageRecordElaboration

      public void setServiceUsageRecordElaboration(boolean serviceUsageRecordElaboration)
    • getCalledMethodCSVFile

      public File getCalledMethodCSVFile()