public class InsertDocument extends DocumentElaboration
| Modifier and Type | Field and Description |
|---|---|
protected File |
calledMethodCSVFile |
protected int |
count |
static String |
CSV_FILENAME_SUFFIX |
protected org.gcube.documentstore.persistence.PersistencePostgreSQL |
persistencePostgreSQL |
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.
|
protected boolean |
serviceUsageRecordElaboration |
protected List<String> |
unparsableLines |
aggregationStatus, file, finalAggregationState, ID, logger, MAX_RETRY, rowToBeElaborated, startTime, THRESHOLD_FOR_FIVE_PERCENT, THRESHOLD_FOR_ONE_PERCENT| Constructor and Description |
|---|
InsertDocument(AggregationStatus aggregationStatus,
File file) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addServiceClassName_calledMethods(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) |
protected void |
afterElaboration()
Perform actions at the end of line by line elaboration
|
protected org.gcube.com.fasterxml.jackson.databind.JsonNode |
analyseLine(String line) |
protected void |
elaborateLine(String line) |
File |
getCalledMethodCSVFile() |
protected String |
getKey(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) |
void |
setServiceUsageRecordElaboration(boolean serviceUsageRecordElaboration) |
elaborate, readFilepublic static final String CSV_FILENAME_SUFFIX
protected Map<String,Map<String,Integer>> serviceClassName_calledMethods
protected boolean serviceUsageRecordElaboration
protected File calledMethodCSVFile
protected org.gcube.documentstore.persistence.PersistencePostgreSQL persistencePostgreSQL
protected int count
public InsertDocument(AggregationStatus aggregationStatus, File file) throws Exception
Exceptionprotected String getKey(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
protected void addServiceClassName_calledMethods(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
protected org.gcube.com.fasterxml.jackson.databind.JsonNode analyseLine(String line) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException, IOException
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionprotected void elaborateLine(String line) throws Exception
elaborateLine in class DocumentElaborationExceptionprotected void afterElaboration()
throws Exception
DocumentElaborationafterElaboration in class DocumentElaborationExceptionpublic void setServiceUsageRecordElaboration(boolean serviceUsageRecordElaboration)
public File getCalledMethodCSVFile()
Copyright © 2022. All Rights Reserved.