Package com.suse.coco.configuration
Interface Configuration
-
- All Known Implementing Classes:
DefaultConfiguration
public interface ConfigurationApplication configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBatchSize()Retrieves the number of attestation results to process at a time.intgetCorePoolSize()Retrieves the number of core threads for the queue processorjava.lang.StringgetDatabaseConnectionString()Retrieves the connection stringjava.lang.StringgetDatabasePassword()Retrieves the database passwordjava.lang.StringgetDatabaseUser()Retrieve the database userintgetMaximumPoolSize()Retrieves the maximum number of threads for the queue processorlonggetThreadKeepAliveInSeconds()The number of seconds a thread will remain alive even without work to do.java.util.PropertiestoProperties()Convert this configuration to a Properties
-
-
-
Method Detail
-
getDatabaseUser
java.lang.String getDatabaseUser()
Retrieve the database user- Returns:
- the user to access the database
-
getDatabasePassword
java.lang.String getDatabasePassword()
Retrieves the database password- Returns:
- the unencrypted password to access the database
-
getDatabaseConnectionString
java.lang.String getDatabaseConnectionString()
Retrieves the connection string- Returns:
- the jdbc string to connect to the database
-
getBatchSize
int getBatchSize()
Retrieves the number of attestation results to process at a time.- Returns:
- the maximum number of attestation results to process.
-
getCorePoolSize
int getCorePoolSize()
Retrieves the number of core threads for the queue processor- Returns:
- the number of core threads
-
getMaximumPoolSize
int getMaximumPoolSize()
Retrieves the maximum number of threads for the queue processor- Returns:
- the maximum number of threads
-
getThreadKeepAliveInSeconds
long getThreadKeepAliveInSeconds()
The number of seconds a thread will remain alive even without work to do.- Returns:
- the number of seconds a thread will be kept idle.
-
toProperties
java.util.Properties toProperties()
Convert this configuration to a Properties- Returns:
- a
Propertiesrepresenting the configuration.
-
-