Class ResourceCatalogueHarvester
- java.lang.Object
-
- org.gcube.dataharvest.harvester.BasicHarvester
-
- org.gcube.dataharvest.harvester.sobigdata.SoBigDataHarvester
-
- org.gcube.dataharvest.harvester.sobigdata.ResourceCatalogueHarvester
-
public class ResourceCatalogueHarvester extends SoBigDataHarvester
The Class ResourceCatalogueHarvester.- Author:
- Eric Perrone (ISTI - CNR), Luca Frosini (ISTI - CNR), Francesco Mangiacrapa(ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static intROWSprotected StringsolrBaseUrl-
Fields inherited from class org.gcube.dataharvest.harvester.sobigdata.SoBigDataHarvester
contexts, mapCatalogueGroupToVRE, mapSystemTypeToDBEntry, mapWsFolderNameToVRE
-
Fields inherited from class org.gcube.dataharvest.harvester.BasicHarvester
end, instant, start
-
-
Constructor Summary
Constructors Constructor Description ResourceCatalogueHarvester(Date start, Date end, SortedSet<String> contexts)Instantiates a new resource catalogue harvester.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexecuteQueryFor(List<String> solrParameters, Date startDate, Date endDate, String flValue)Execute query.List<org.gcube.accounting.accounting.summary.access.model.update.AccountingRecord>getAccountingRecords()protected StringgetSolrBaseUrl()Gets the solr base url.StringrequestJson(String url)-
Methods inherited from class org.gcube.dataharvest.harvester.sobigdata.SoBigDataHarvester
getMapCatalogueGroupToVRE, getMapSystemTypeToDBEntry, getMapWsFolderNameToVRE, getValidContexts, initMappingMaps, listGroup
-
Methods inherited from class org.gcube.dataharvest.harvester.BasicHarvester
getDimension
-
-
-
-
Field Detail
-
ROWS
public static int ROWS
-
solrBaseUrl
protected String solrBaseUrl
-
-
Method Detail
-
getSolrBaseUrl
protected String getSolrBaseUrl()
Gets the solr base url.- Returns:
- the solr base url
-
getAccountingRecords
public List<org.gcube.accounting.accounting.summary.access.model.update.AccountingRecord> getAccountingRecords() throws Exception
- Specified by:
getAccountingRecordsin classBasicHarvester- Throws:
Exception
-
executeQueryFor
public String executeQueryFor(List<String> solrParameters, Date startDate, Date endDate, String flValue) throws Exception
Execute query.- Parameters:
solrParameters- the solr parametersstartDate- the start dateendDate- the end dateflValue- the fl value- Returns:
- the string
- Throws:
Exception- the exception
-
requestJson
public String requestJson(String url) throws MalformedURLException, IOException
- Throws:
MalformedURLExceptionIOException
-
-