Package org.gcube.accounting.persistence
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 Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?>The class identifying the consumer requesting the configuration.static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringstatic final StringFields inherited from class org.gcube.documentstore.persistence.PersistenceBackendConfiguration
properties -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the name of the query template used to retrieve the database configuration from the Graph IS.protected org.gcube.common.resources.gcore.ServiceEndpointgetServiceEndpoint(String serviceEndpointCategory, String serviceEndpointName, Class<?> clz) booleanloadFromGraphIS(Class<?> clz) protected voidMethods inherited from class org.gcube.documentstore.persistence.PersistenceBackendConfiguration
addProperty, getInstance, getProperty, toString
-
Field Details
-
TARGET_SCOPE
- See Also:
-
SERVICE_ENDPOINT_CATEGORY
- See Also:
-
SERVICE_ENDPOINT_NAME
- See Also:
-
TIMESCALEDB_QUERY_TEMPLATE_NAME
- See Also:
-
URL_PROPERTY_KEY
- See Also:
-
USERNAME_PROPERTY_KEY
- See Also:
-
PASSWORD_PROPERTY_KEY
- See Also:
-
clz
The class identifying the consumer requesting the configuration. It is retained so that subclasses can select the proper query template viagetDatabaseQueryTemplateName().
-
-
Constructor Details
-
AccountingPersistenceConfiguration
public AccountingPersistenceConfiguration() -
AccountingPersistenceConfiguration
- Throws:
Exception
-
-
Method Details
-
loadFromGraphIS
- Throws:
Exception
-
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
-
setValues
protected void setValues(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint, Class<?> clz) throws Exception - Throws:
Exception
-