Class CommonDomainContainerConfiguration
- java.lang.Object
-
- org.jboss.as.arquillian.container.domain.CommonDomainContainerConfiguration
-
- All Implemented Interfaces:
org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
public class CommonDomainContainerConfiguration extends Object implements org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Constructor Summary
Constructors Constructor Description CommonDomainContainerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthenticationConfig()The URI path for the authentication configuration.Map<String,String>getContainerModeMap()Map<String,String>getContainerNameMap()InetAddressgetManagementAddress()intgetManagementPort()StringgetPassword()StringgetProtocol()Returns the protocol to for HTTP connections.intgetServerGroupOperationTimeoutInSeconds()intgetServerOperationTimeoutInSeconds()StringgetSocketBindingName()Returns the socket binding name to use.StringgetUsername()voidsetAuthenticationConfig(String authenticationConfig)Set the URI path for the authentication configuration.voidsetContainerModeMap(String containerModeString)Change the container mode of the Servers or ServerGroups in the Domain.voidsetContainerNameMap(String containerNameMap)Change the container name as seen by Arquillian of the Servers or ServerGroups in the Domain.voidsetManagementAddress(String host)voidsetManagementPort(int managementPort)voidsetPassword(String password)voidsetProtocol(String protocol)Sets the protocol for HTTP connections.voidsetServerGroupOperationTimeoutInSeconds(int serverGroupStartupTimeoutInSeconds)The number of seconds to wait before failing when starting/stopping a server group in the Domain.voidsetServerOperationTimeoutInSeconds(int serverStartupTimeoutInSeconds)The number of seconds to wait before failing when starting/stopping a single server in the Domain.voidsetSocketBindingName(String socketBindingName)Sets the socket binding name to use for determining the host and port for HTTP connections.voidsetUsername(String username)voidvalidate()
-
-
-
Method Detail
-
getManagementAddress
public InetAddress getManagementAddress()
-
setManagementAddress
public void setManagementAddress(String host)
-
getManagementPort
public int getManagementPort()
-
setManagementPort
public void setManagementPort(int managementPort)
-
getUsername
public String getUsername()
-
setPassword
public void setPassword(String password)
-
getPassword
public String getPassword()
-
setUsername
public void setUsername(String username)
-
setContainerNameMap
public void setContainerNameMap(String containerNameMap)
Change the container name as seen by Arquillian of the Servers or ServerGroups in the Domain. format: host:server-name=new-name,server-group-name=crm-servers- Parameters:
containerNameMap-
-
setContainerModeMap
public void setContainerModeMap(String containerModeString)
Change the container mode of the Servers or ServerGroups in the Domain. format: host:server-name=manual,host:.*=suite- Parameters:
containerModeString-
-
setServerGroupOperationTimeoutInSeconds
public void setServerGroupOperationTimeoutInSeconds(int serverGroupStartupTimeoutInSeconds)
The number of seconds to wait before failing when starting/stopping a server group in the Domain.- Parameters:
serverGroupStartupTimeoutInSeconds-
-
getServerGroupOperationTimeoutInSeconds
public int getServerGroupOperationTimeoutInSeconds()
-
setServerOperationTimeoutInSeconds
public void setServerOperationTimeoutInSeconds(int serverStartupTimeoutInSeconds)
The number of seconds to wait before failing when starting/stopping a single server in the Domain.- Parameters:
serverStartupTimeoutInSeconds-
-
getServerOperationTimeoutInSeconds
public int getServerOperationTimeoutInSeconds()
-
getAuthenticationConfig
public String getAuthenticationConfig()
The URI path for the authentication configuration.- Returns:
- the URI for the path or
nullif no path was set
-
setAuthenticationConfig
public void setAuthenticationConfig(String authenticationConfig)
Set the URI path for the authentication configuration.- Parameters:
authenticationConfig- the URI path
-
getProtocol
public String getProtocol()
Returns the protocol to for HTTP connections. This currently only supports http and https with a default of http.- Returns:
- the protocol
-
setProtocol
public void setProtocol(String protocol)
Sets the protocol for HTTP connections. Ifnullthe default of http is used.- Parameters:
protocol- the protocol to use, this must be http or https
-
getSocketBindingName
public String getSocketBindingName()
Returns the socket binding name to use.- Returns:
- the socket binding name or
nullto discover one
-
setSocketBindingName
public void setSocketBindingName(String socketBindingName)
Sets the socket binding name to use for determining the host and port for HTTP connections. This can be used to override discovering the first binding name.The socket binding name is configured in WildFly. If this is not set, one will be determined from the Undertow subsystem.
- Parameters:
socketBindingName- the socket binding name ornullfor one to be determined
-
validate
public void validate() throws org.jboss.arquillian.container.spi.ConfigurationException- Specified by:
validatein interfaceorg.jboss.arquillian.container.spi.client.container.ContainerConfiguration- Throws:
org.jboss.arquillian.container.spi.ConfigurationException
-
-