public class DefaultConfiguration extends Object implements Configuration
ANSI_LOGGER_ENABLED, API_VERSION, AUTH_TOKEN, DEFAULT_CONFIG_FILE_NAME, DEFAULT_FMP_PATH, DEFAULT_NAMESPACE_CLEANUP_TIMEOUT, DEFAULT_NAMESPACE_DESTROY_TIMEOUT, DEFAULT_NAMESPACE_LAZY_CREATE_ENABLED, DEFAULT_WAIT_POLL_INTERVAL, DEFAULT_WAIT_TIMEOUT, DOCKER_REGISTRY_FORMAT, DOCKER_REGISTRY_HOST, DOCKER_REGISTRY_PORT, DOCKER_REGISTY, DOMAIN, ENVIRONMENT_CONFIG_RESOURCE_NAME, ENVIRONMENT_CONFIG_URL, ENVIRONMENT_DEPENDENCIES, ENVIRONMENT_INIT_ENABLED, ENVIRONMENT_SCRIPT_ENV, ENVIRONMENT_SETUP_SCRIPT_URL, ENVIRONMENT_TEARDOWN_SCRIPT_URL, FALLBACK_CLIENT_CONFIG, FMP_BUILD, FMP_BUILD_DISABLE_FOR_MAVEN, FMP_BUILD_OPTIONS, FMP_DEBUG_OUTPUT, FMP_LOGS, FMP_POM_PATH, FMP_PROFILES, FMP_SYSTEM_PROPERTIES, KUBERNETES_DOMAIN, KUBERNETES_MASTER, KUBERNETES_NAMESPACE, LOGS_COPY, LOGS_PATH, MASTER_URL, NAMESPACE, NAMESPACE_CLEANUP_CONFIRM_ENABLED, NAMESPACE_CLEANUP_ENABLED, NAMESPACE_CLEANUP_TIMEOUT, NAMESPACE_DESTROY_CONFIRM_ENABLED, NAMESPACE_DESTROY_ENABLED, NAMESPACE_DESTROY_TIMEOUT, NAMESPACE_LAZY_CREATE_ENABLED, NAMESPACE_PREFIX, NAMESPACE_TO_USE, NAMESPACE_USE_CURRENT, PASSWORD, TRUST_CERTS, USERNAME, WAIT_ENABLED, WAIT_FOR_SERVICE_LIST, WAIT_POLL_INTERVAL, WAIT_TIMEOUT| Constructor and Description |
|---|
DefaultConfiguration(String sessionId,
URL masterUrl,
String namespace,
Map<String,String> scriptEnvironmentVariables,
URL environmentSetupScriptUrl,
URL environmentTeardownScriptUrl,
URL environmentConfigUrl,
List<URL> environmentDependencies,
boolean namespaceUseCurrentEnabled,
boolean namespaceLazyCreateEnabled,
boolean namespaceCleanupEnabled,
long namespaceCleanupTimeout,
boolean namespaceCleanupConfirmationEnabled,
boolean namespaceDestroyEnabled,
boolean namespaceDestroyConfirmationEnabled,
long namespaceDestroyTimeout,
boolean waitEnabled,
long waitTimeout,
long waitPollInterval,
List<String> waitForServiceList,
boolean ansiLoggerEnabled,
boolean environmentInitEnabled,
boolean logCopyEnabled,
String logPath,
String kubernetesDomain,
String dockerRegistry,
String token,
String username,
String password,
String apiVersion,
boolean trustCerts,
boolean fmpBuildEnabled,
boolean fmpBuildForMavenDisable,
boolean fmpDebugOutput,
boolean fmpLogsEnabled,
String fmpPomPath,
List<String> fmpProfiles,
List<String> fmpSystemProperties,
String fmpBuildOptions) |
public DefaultConfiguration(String sessionId, URL masterUrl, String namespace, Map<String,String> scriptEnvironmentVariables, URL environmentSetupScriptUrl, URL environmentTeardownScriptUrl, URL environmentConfigUrl, List<URL> environmentDependencies, boolean namespaceUseCurrentEnabled, boolean namespaceLazyCreateEnabled, boolean namespaceCleanupEnabled, long namespaceCleanupTimeout, boolean namespaceCleanupConfirmationEnabled, boolean namespaceDestroyEnabled, boolean namespaceDestroyConfirmationEnabled, long namespaceDestroyTimeout, boolean waitEnabled, long waitTimeout, long waitPollInterval, List<String> waitForServiceList, boolean ansiLoggerEnabled, boolean environmentInitEnabled, boolean logCopyEnabled, String logPath, String kubernetesDomain, String dockerRegistry, String token, String username, String password, String apiVersion, boolean trustCerts, boolean fmpBuildEnabled, boolean fmpBuildForMavenDisable, boolean fmpDebugOutput, boolean fmpLogsEnabled, String fmpPomPath, List<String> fmpProfiles, List<String> fmpSystemProperties, String fmpBuildOptions)
public static DefaultConfiguration fromMap(Map<String,String> map)
public static String getDockerRegistry(Map<String,String> map) throws MalformedURLException
MalformedURLExceptionpublic static URL getKubernetesConfigurationUrl(Map<String,String> map) throws MalformedURLException
map - The arquillian configuration.MalformedURLExceptionpublic static URL findConfigResource(String resourceName)
resourceName - The name of the resource.public static URL asUrlOrResource(String s)
s - The string to convert.public static Map<String,String> parseMap(String s) throws IOException
IOExceptionpublic String getSessionId()
getSessionId in interface Configurationpublic String getNamespace()
getNamespace in interface Configurationpublic URL getMasterUrl()
getMasterUrl in interface Configurationpublic Map<String,String> getScriptEnvironmentVariables()
getScriptEnvironmentVariables in interface Configurationpublic URL getEnvironmentSetupScriptUrl()
getEnvironmentSetupScriptUrl in interface Configurationpublic URL getEnvironmentTeardownScriptUrl()
getEnvironmentTeardownScriptUrl in interface Configurationpublic URL getEnvironmentConfigUrl()
getEnvironmentConfigUrl in interface Configurationpublic List<URL> getEnvironmentDependencies()
getEnvironmentDependencies in interface Configurationpublic boolean isNamespaceLazyCreateEnabled()
isNamespaceLazyCreateEnabled in interface Configurationpublic boolean isNamespaceCleanupEnabled()
isNamespaceCleanupEnabled in interface Configurationpublic long getNamespaceCleanupTimeout()
getNamespaceCleanupTimeout in interface Configurationpublic boolean isNamespaceCleanupConfirmationEnabled()
isNamespaceCleanupConfirmationEnabled in interface Configurationpublic boolean isNamespaceDestroyEnabled()
isNamespaceDestroyEnabled in interface Configurationpublic boolean isNamespaceDestroyConfirmationEnabled()
isNamespaceDestroyConfirmationEnabled in interface Configurationpublic boolean isNamespaceUseCurrentEnabled()
isNamespaceUseCurrentEnabled in interface Configurationpublic long getNamespaceDestroyTimeout()
getNamespaceDestroyTimeout in interface Configurationpublic boolean isWaitEnabled()
isWaitEnabled in interface Configurationpublic long getWaitTimeout()
getWaitTimeout in interface Configurationpublic long getWaitPollInterval()
getWaitPollInterval in interface Configurationpublic List<String> getWaitForServiceList()
getWaitForServiceList in interface Configurationpublic boolean isAnsiLoggerEnabled()
isAnsiLoggerEnabled in interface Configurationpublic boolean isEnvironmentInitEnabled()
isEnvironmentInitEnabled in interface Configurationpublic boolean isLogCopyEnabled()
isLogCopyEnabled in interface Configurationpublic String getLogPath()
getLogPath in interface Configurationpublic String getKubernetesDomain()
getKubernetesDomain in interface Configurationpublic String getDockerRegistry()
getDockerRegistry in interface Configurationpublic boolean hasBasicAuth()
public String getUsername()
getUsername in interface Configurationpublic String getPassword()
getPassword in interface Configurationpublic String getApiVersion()
getApiVersion in interface Configurationpublic String getToken()
getToken in interface Configurationpublic boolean isTrustCerts()
isTrustCerts in interface Configurationpublic boolean isFmpBuildForMavenDisable()
isFmpBuildForMavenDisable in interface Configurationpublic boolean isFmpDebugOutput()
isFmpDebugOutput in interface Configurationpublic boolean isFmpLogsEnabled()
isFmpLogsEnabled in interface Configurationpublic boolean isFmpBuildEnabled()
isFmpBuildEnabled in interface Configurationpublic String getFmpPomPath()
getFmpPomPath in interface Configurationpublic String getFmpBuildOptions()
getFmpBuildOptions in interface Configurationpublic List<String> getFmpProfiles()
getFmpProfiles in interface Configurationpublic List<String> getFmpSystemProperties()
getFmpSystemProperties in interface Configurationprotected void setToken(String token)
protected void appendPropertyWithValue(StringBuilder content, String property, Object value)
Copyright © 2018 JBoss by Red Hat. All rights reserved.