Class AccountingPersistenceConfiguration

java.lang.Object
org.gcube.documentstore.persistence.PersistenceBackendConfiguration
org.gcube.accounting.persistence.AccountingPersistenceConfiguration

public class AccountingPersistenceConfiguration extends org.gcube.documentstore.persistence.PersistenceBackendConfiguration
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

  • Constructor Details

    • AccountingPersistenceConfiguration

      public AccountingPersistenceConfiguration()
    • AccountingPersistenceConfiguration

      public AccountingPersistenceConfiguration(Class<?> clz) throws Exception
      Throws:
      Exception
  • Method Details

    • loadFromGraphIS

      public boolean loadFromGraphIS(Class<?> clz) throws Exception
      Throws:
      Exception
    • getDatabaseQueryTemplateName

      protected String getDatabaseQueryTemplateName()
      Returns the name of the query template used to retrieve the database configuration from the Graph IS. The base implementation returns the template owned by the accounting-lib module. Consumers that read/write a different database (e.g. the analytics or the aggregator components) are expected to override this method to return their own template, whose definition is shipped and registered by the owning component.
      Returns:
      the query template name to execute for the database configuration
    • getServiceEndpoint

      protected org.gcube.common.resources.gcore.ServiceEndpoint getServiceEndpoint(String serviceEndpointCategory, String serviceEndpointName, Class<?> clz)
    • setValues

      protected void setValues(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint, Class<?> clz) throws Exception
      Throws:
      Exception