Package org.jboss.modcluster.config.impl
Class MCMPHandlerConfigurationImpl
java.lang.Object
org.jboss.modcluster.config.impl.MCMPHandlerConfigurationImpl
- All Implemented Interfaces:
MCMPHandlerConfiguration
- Since:
- 1.3.6.Final
- Author:
- Radoslav Husar
-
Constructor Summary
ConstructorDescriptionMCMPHandlerConfigurationImpl
(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
Modifier and TypeMethodDescriptionReceive advertisements from httpd proxies (default is to use advertisements if the proxyList is not set).Returns a list of contexts that should never be enabled in mod_cluster.Factory for generating jvm routeDeprecated.Gets list of proxies as a collection ofProxyConfiguration
s.URL prefix.Configuration of the socket factory, supply SSL socket factory to use SSL to connect to the proxy.int
Connection timeout for communication with the proxy.long
Returns the number ofMCMPHandlerConfiguration.getStopContextTimeoutUnit()
to wait for pending requests to complete when stopping a context.Returns the unit of time to whichMCMPHandlerConfiguration.getStopContextTimeout()
pertains.boolean
Indicates whether or not to automatically enable contexts.boolean
isSsl()
Deprecated.
-
Constructor Details
-
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 Details
-
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.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
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.Description copied from interface:MCMPHandlerConfiguration
SSL client cert usage to connect to the proxy.- Specified by:
isSsl
in interfaceMCMPHandlerConfiguration
-
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
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
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
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
Description copied from interface:MCMPHandlerConfiguration
Factory for generating jvm route- Specified by:
getJvmRouteFactory
in interfaceMCMPHandlerConfiguration
-
getSessionDrainingStrategy
- Specified by:
getSessionDrainingStrategy
in interfaceMCMPHandlerConfiguration
-