Code redesign
Refs #11756: Refactor DataHArvesterPlugin to support scheduled execution from smart-executor Task-Url: https://support.d4science.org/issues/11756 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-dashboard-harvester-se-plugin@167622 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9a7434ad54
commit
40527e0fe6
2
.project
2
.project
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>DataHarvesterPlugin</name>
|
||||
<name>accounting-dashboard-harvester-se-plugin</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
|
|
@ -131,7 +131,6 @@ public class AccountingDataHarvesterPlugin extends Plugin<DataHarvestPluginDecla
|
|||
|
||||
SortedSet<String> contexts = contextAuthorization.getContexts();
|
||||
|
||||
|
||||
ArrayList<HarvestedData> data = new ArrayList<HarvestedData>();
|
||||
|
||||
for(String context : contexts) {
|
||||
|
|
|
@ -25,7 +25,7 @@ public class DatabaseParameterRetriever {
|
|||
public static final String LOCAL_DB = "LOCAL_DB";
|
||||
|
||||
public static final String SERVICE_ENDPOINT_CATEGORY = "Database";
|
||||
public static final String SERVICE_ENDPOINT_NAME = "Analytics Board";
|
||||
public static final String SERVICE_ENDPOINT_NAME = "AccountingDashboard";
|
||||
|
||||
public static final String DB_URI = "DB_URI";
|
||||
public static final String DB_USERNAME = "DB_USERNAME";
|
||||
|
|
|
@ -17,7 +17,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|||
public void test() {
|
||||
try {
|
||||
|
||||
// org.gcube.dataharvest.utils.Utils.setContext(ROOT);
|
||||
org.gcube.dataharvest.utils.Utils.setContext(ROOT);
|
||||
|
||||
DataHarvestPluginDeclaration dataHarvestPluginDeclaration = new DataHarvestPluginDeclaration();
|
||||
AccountingDataHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDataHarvesterPlugin(dataHarvestPluginDeclaration);
|
||||
|
|
|
@ -2,4 +2,7 @@ VO_FILE=scopedata.xml
|
|||
USERNAME=luca.frosini
|
||||
SERVICE_NAME=accounting-harvester
|
||||
|
||||
LOCAL_DB=true
|
||||
LOCAL_DB=true
|
||||
DB_URI=jdbc:postgresql://postgresql-srv-dev.d4science.org:5432/analytics_b_dev
|
||||
DB_USERNAME=analytics_b_dev_u
|
||||
DB_PASSWORD=78cb625303be21b
|
Loading…
Reference in New Issue