Package org.jboss.modcluster.config.impl
Class MCMPHandlerConfigurationImpl
- java.lang.Object
-
- org.jboss.modcluster.config.impl.MCMPHandlerConfigurationImpl
-
- All Implemented Interfaces:
MCMPHandlerConfiguration
public class MCMPHandlerConfigurationImpl extends Object implements MCMPHandlerConfiguration
- Since:
- 1.3.6.Final
- Author:
- Radoslav Husar
-
-
Constructor Summary
Constructors Constructor Description MCMPHandlerConfigurationImpl(Collection<ProxyConfiguration> proxyConfigurations, String proxyURL, int socketTimeout, SocketFactory socketFactory, Map<String,Set<String>> excludedContextsPerHost, Boolean advertise, boolean autoEnableContexts, long stopContextTimeout, TimeUnit stopContextTimeoutUnit, JvmRouteFactory jvmRouteFactory, SessionDrainingStrategy sessionDrainingStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Boolean
getAdvertise()
Receive advertisements from httpd proxies (default is to use advertisements if the proxyList is not set).Map<String,Set<String>>
getExcludedContextsPerHost()
Returns a list of contexts that should never be enabled in mod_cluster.JvmRouteFactory
getJvmRouteFactory()
Factory for generating jvm routeCollection<InetSocketAddress>
getProxies()
Deprecated.Collection<ProxyConfiguration>
getProxyConfigurations()
Gets list of proxies as a collection ofProxyConfiguration
s.String
getProxyURL()
URL prefix.SessionDrainingStrategy
getSessionDrainingStrategy()
SocketFactory
getSocketFactory()
Configuration of the socket factory, supply SSL socket factory to use SSL to connect to the proxy.int
getSocketTimeout()
Connection timeout for communication with the proxy.long
getStopContextTimeout()
Returns the number ofMCMPHandlerConfiguration.getStopContextTimeoutUnit()
to wait for pending requests to complete when stopping a context.TimeUnit
getStopContextTimeoutUnit()
Returns the unit of time to whichMCMPHandlerConfiguration.getStopContextTimeout()
pertains.boolean
isAutoEnableContexts()
Indicates whether or not to automatically enable contexts.boolean
isSsl()
Deprecated.
-
-
-
Constructor Detail
-
MCMPHandlerConfigurationImpl
public MCMPHandlerConfigurationImpl(Collection<ProxyConfiguration> proxyConfigurations, String proxyURL, int socketTimeout, SocketFactory socketFactory, Map<String,Set<String>> excludedContextsPerHost, Boolean advertise, boolean autoEnableContexts, long stopContextTimeout, TimeUnit stopContextTimeoutUnit, JvmRouteFactory jvmRouteFactory, SessionDrainingStrategy sessionDrainingStrategy)
-
-
Method Detail
-
getProxyConfigurations
public Collection<ProxyConfiguration> getProxyConfigurations()
Description copied from interface:MCMPHandlerConfiguration
Gets list of proxies as a collection ofProxyConfiguration
s.- Specified by:
getProxyConfigurations
in interfaceMCMPHandlerConfiguration
- Returns:
- list of proxies as a collection of
ProxyConfiguration
s
-
getProxies
@Deprecated public Collection<InetSocketAddress> getProxies()
Deprecated.Description copied from interface:MCMPHandlerConfiguration
Gets list of proxies as a collection ofInetSocketAddress
es.- Specified by:
getProxies
in interfaceMCMPHandlerConfiguration
- Returns:
- list of proxies as a collection of
InetSocketAddress
es
-
getProxyURL
public String getProxyURL()
Description copied from interface:MCMPHandlerConfiguration
URL prefix.- Specified by:
getProxyURL
in interfaceMCMPHandlerConfiguration
-
getSocketTimeout
public int getSocketTimeout()
Description copied from interface:MCMPHandlerConfiguration
Connection timeout for communication with the proxy.- Specified by:
getSocketTimeout
in interfaceMCMPHandlerConfiguration
-
isSsl
@Deprecated public boolean isSsl()
Deprecated.Description copied from interface:MCMPHandlerConfiguration
SSL client cert usage to connect to the proxy.- Specified by:
isSsl
in interfaceMCMPHandlerConfiguration
-
getSocketFactory
public SocketFactory getSocketFactory()
Description copied from interface:MCMPHandlerConfiguration
Configuration of the socket factory, supply SSL socket factory to use SSL to connect to the proxy.- Specified by:
getSocketFactory
in interfaceMCMPHandlerConfiguration
-
getExcludedContextsPerHost
public Map<String,Set<String>> getExcludedContextsPerHost()
Description copied from interface:MCMPHandlerConfiguration
Returns a list of contexts that should never be enabled in mod_cluster. Contexts may be- Specified by:
getExcludedContextsPerHost
in interfaceMCMPHandlerConfiguration
- Returns:
- a comma delimited list of contexts of the form "[host:]context"
-
getAdvertise
public Boolean getAdvertise()
Description copied from interface:MCMPHandlerConfiguration
Receive advertisements from httpd proxies (default is to use advertisements if the proxyList is not set).- Specified by:
getAdvertise
in interfaceMCMPHandlerConfiguration
-
isAutoEnableContexts
public boolean isAutoEnableContexts()
Description copied from interface:MCMPHandlerConfiguration
Indicates whether or not to automatically enable contexts. If false, context will need to be enabled manually.- Specified by:
isAutoEnableContexts
in interfaceMCMPHandlerConfiguration
- Returns:
- true, if contexts should auto-enable, false otherwise.
-
getStopContextTimeout
public long getStopContextTimeout()
Description copied from interface:MCMPHandlerConfiguration
Returns the number ofMCMPHandlerConfiguration.getStopContextTimeoutUnit()
to wait for pending requests to complete when stopping a context.- Specified by:
getStopContextTimeout
in interfaceMCMPHandlerConfiguration
- Returns:
- timeout in seconds.
-
getStopContextTimeoutUnit
public TimeUnit getStopContextTimeoutUnit()
Description copied from interface:MCMPHandlerConfiguration
Returns the unit of time to whichMCMPHandlerConfiguration.getStopContextTimeout()
pertains.- Specified by:
getStopContextTimeoutUnit
in interfaceMCMPHandlerConfiguration
- Returns:
- a unit of time
-
getJvmRouteFactory
public JvmRouteFactory getJvmRouteFactory()
Description copied from interface:MCMPHandlerConfiguration
Factory for generating jvm route- Specified by:
getJvmRouteFactory
in interfaceMCMPHandlerConfiguration
-
getSessionDrainingStrategy
public SessionDrainingStrategy getSessionDrainingStrategy()
- Specified by:
getSessionDrainingStrategy
in interfaceMCMPHandlerConfiguration
-
-