Class SmartExecutorPersistenceConfiguration
- java.lang.Object
-
- org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConfiguration
-
public class SmartExecutorPersistenceConfiguration extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringpasswordprotected static StringPERSISTENCE_CLASS_NAMEprotected Map<String,org.gcube.common.resources.gcore.ServiceEndpoint.Property>propertyMapStringSERVICE_ENDPOINT_CATEGORYStringSERVICE_ENDPOINT_NAMEprotected static StringTARGET_SCOPEprotected Stringurlprotected Stringusername
-
Constructor Summary
Constructors Constructor Description SmartExecutorPersistenceConfiguration()SmartExecutorPersistenceConfiguration(String persistenceClassName)SmartExecutorPersistenceConfiguration(String url, String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()StringgetProperty(String propertyKey)org.gcube.common.resources.gcore.ServiceEndpointgetServiceEndpoint(String serviceEndpointCategory, String serviceEndpointName, String persistenceClassName)StringgetURL()StringgetUsername()protected voidinit()voidsetPassword(String password)voidsetURL(String url)voidsetUsername(String username)protected voidsetValues(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint, String persistenceClassName)
-
-
-
Field Detail
-
SERVICE_ENDPOINT_CATEGORY
public final String SERVICE_ENDPOINT_CATEGORY
- See Also:
- Constant Field Values
-
SERVICE_ENDPOINT_NAME
public final String SERVICE_ENDPOINT_NAME
- See Also:
- Constant Field Values
-
PERSISTENCE_CLASS_NAME
protected static final String PERSISTENCE_CLASS_NAME
- See Also:
- Constant Field Values
-
TARGET_SCOPE
protected static final String TARGET_SCOPE
- See Also:
- Constant Field Values
-
url
protected String url
-
username
protected String username
-
password
protected String password
-
-
Method Detail
-
init
protected void init()
-
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
-
getProperty
public String getProperty(String propertyKey) throws Exception
- Returns:
- the propertyMap
- Throws:
Exception
-
getServiceEndpoint
public org.gcube.common.resources.gcore.ServiceEndpoint getServiceEndpoint(String serviceEndpointCategory, String serviceEndpointName, String persistenceClassName)
-
-