Class InsertDocument
java.lang.Object
org.gcube.accounting.aggregator.persist.DocumentElaboration
org.gcube.accounting.aggregator.persist.InsertDocument
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AggregatorPersistenceDstprotected Fileprotected intstatic final StringThis 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.protected booleanFields inherited from class org.gcube.accounting.aggregator.persist.DocumentElaboration
aggregationStatus, currentlyElaborated, effectiveMaxRowPerStep, file, finalAggregationState, ID, logger, MAX_RETRY, MAX_ROWS_PER_STEP, rowToBeElaborated, startTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddServiceClassName_calledMethods(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) protected voidPerform actions at the end of line by line elaborationprotected org.gcube.com.fasterxml.jackson.databind.JsonNodeanalyseLine(String line) protected voidelaborateLine(String line) protected StringgetKey(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) voidsetServiceUsageRecordElaboration(boolean serviceUsageRecordElaboration) Methods inherited from class org.gcube.accounting.aggregator.persist.DocumentElaboration
elaborate, readFile
-
Field Details
-
CSV_FILENAME_SUFFIX
- See Also:
-
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
-
serviceUsageRecordElaboration
protected boolean serviceUsageRecordElaboration -
calledMethodCSVFile
-
aggregatorPersistenceDst
-
count
protected int count
-
-
Constructor Details
-
InsertDocument
- Throws:
Exception
-
-
Method Details
-
getKey
-
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.JsonProcessingExceptionIOException
-
elaborateLine
- Specified by:
elaborateLinein classDocumentElaboration- Throws:
Exception
-
afterElaboration
Description copied from class:DocumentElaborationPerform actions at the end of line by line elaboration- Specified by:
afterElaborationin classDocumentElaboration- Throws:
Exception
-
setServiceUsageRecordElaboration
public void setServiceUsageRecordElaboration(boolean serviceUsageRecordElaboration) -
getCalledMethodCSVFile
-