Class SmartExecutorPersistenceConfiguration

java.lang.Object
org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration

public class SmartExecutorPersistenceConfiguration extends Object
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 Details

  • Constructor Details

    • SmartExecutorPersistenceConfiguration

      public SmartExecutorPersistenceConfiguration(String url, String username, String password)
    • SmartExecutorPersistenceConfiguration

      public SmartExecutorPersistenceConfiguration() throws Exception
      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

      public String getURL()
      Returns:
      the url
    • setURL

      public void setURL(String url)
      Parameters:
      url - the url to set
    • getUsername

      public String getUsername()
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Parameters:
      username - the username to set
    • getPassword

      public String getPassword()
      Returns:
      the password
    • setPassword

      public void setPassword(String password)
      Parameters:
      password - the password to set