Class SmartExecutorPersistenceConfiguration
java.lang.Object
org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration
The address and the credentials of the database of the Smart Executor, read from the Resource
Registry: the
AccessPointFacet of the EService of the database, identified by its
SoftwareFacet and classified as the database of the Smart Executor. The database follows the
VirtualService of the Smart Executor, so it is in every Context where the service runs.- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected Stringprotected Stringprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionReads the configuration from the Resource Registry, in the Context of the current request.SmartExecutorPersistenceConfiguration(String url, String username, String password) -
Method Summary
Modifier and TypeMethodDescriptiongetURL()voidsetPassword(String password) voidvoidsetUsername(String username)
-
Field Details
-
QUERY_TEMPLATE_NAME
- See Also:
-
SOFTWARE_GROUP
- See Also:
-
SOFTWARE_NAME
- See Also:
-
CLASSIFICATION_CATEGORY
- See Also:
-
CLASSIFICATION_NAME
- See Also:
-
ENDPOINT_PROPERTY
- See Also:
-
USERNAME_PROPERTY
- See Also:
-
PASSWORD_PROPERTY
- See Also:
-
url
-
username
-
password
-
-
Constructor Details
-
SmartExecutorPersistenceConfiguration
-
SmartExecutorPersistenceConfiguration
Reads the configuration from the Resource Registry, in the Context of the current request.- Throws:
Exception- if the Resource Registry cannot be queried or holds no database for the Smart Executor
-
-
Method Details
-
getURL
- Returns:
- the url
-
setURL
- Parameters:
url- the url to set
-
getUsername
- Returns:
- the username
-
setUsername
- Parameters:
username- the username to set
-
getPassword
- Returns:
- the password
-
setPassword
- Parameters:
password- the password to set
-