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
ConstructorsConstructorDescriptionMCMPHandlerConfigurationImpl(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 ofProxyConfigurations.URL prefix.Configuration of the socket factory, supply SSL socket factory to use SSL to connect to the proxy.intConnection timeout for communication with the proxy.longReturns the number ofMCMPHandlerConfiguration.getStopContextTimeoutUnit()to wait for pending requests to complete when stopping a context.Returns the unit of time to whichMCMPHandlerConfiguration.getStopContextTimeout()pertains.booleanIndicates whether or not to automatically enable contexts.booleanisSsl()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:MCMPHandlerConfigurationGets list of proxies as a collection ofProxyConfigurations.- Specified by:
getProxyConfigurationsin interfaceMCMPHandlerConfiguration- Returns:
- list of proxies as a collection of
ProxyConfigurations
-
getProxies
Deprecated.Description copied from interface:MCMPHandlerConfigurationGets list of proxies as a collection ofInetSocketAddresses.- Specified by:
getProxiesin interfaceMCMPHandlerConfiguration- Returns:
- list of proxies as a collection of
InetSocketAddresses
-
getProxyURL
Description copied from interface:MCMPHandlerConfigurationURL prefix.- Specified by:
getProxyURLin interfaceMCMPHandlerConfiguration
-
getSocketTimeout
public int getSocketTimeout()Description copied from interface:MCMPHandlerConfigurationConnection timeout for communication with the proxy.- Specified by:
getSocketTimeoutin interfaceMCMPHandlerConfiguration
-
isSsl
Deprecated.Description copied from interface:MCMPHandlerConfigurationSSL client cert usage to connect to the proxy.- Specified by:
isSslin interfaceMCMPHandlerConfiguration
-
getSocketFactory
Description copied from interface:MCMPHandlerConfigurationConfiguration of the socket factory, supply SSL socket factory to use SSL to connect to the proxy.- Specified by:
getSocketFactoryin interfaceMCMPHandlerConfiguration
-
getExcludedContextsPerHost
Description copied from interface:MCMPHandlerConfigurationReturns a list of contexts that should never be enabled in mod_cluster. Contexts may be- Specified by:
getExcludedContextsPerHostin interfaceMCMPHandlerConfiguration- Returns:
- a comma delimited list of contexts of the form "[host:]context"
-
getAdvertise
Description copied from interface:MCMPHandlerConfigurationReceive advertisements from httpd proxies (default is to use advertisements if the proxyList is not set).- Specified by:
getAdvertisein interfaceMCMPHandlerConfiguration
-
isAutoEnableContexts
public boolean isAutoEnableContexts()Description copied from interface:MCMPHandlerConfigurationIndicates whether or not to automatically enable contexts. If false, context will need to be enabled manually.- Specified by:
isAutoEnableContextsin interfaceMCMPHandlerConfiguration- Returns:
- true, if contexts should auto-enable, false otherwise.
-
getStopContextTimeout
public long getStopContextTimeout()Description copied from interface:MCMPHandlerConfigurationReturns the number ofMCMPHandlerConfiguration.getStopContextTimeoutUnit()to wait for pending requests to complete when stopping a context.- Specified by:
getStopContextTimeoutin interfaceMCMPHandlerConfiguration- Returns:
- timeout in seconds.
-
getStopContextTimeoutUnit
Description copied from interface:MCMPHandlerConfigurationReturns the unit of time to whichMCMPHandlerConfiguration.getStopContextTimeout()pertains.- Specified by:
getStopContextTimeoutUnitin interfaceMCMPHandlerConfiguration- Returns:
- a unit of time
-
getJvmRouteFactory
Description copied from interface:MCMPHandlerConfigurationFactory for generating jvm route- Specified by:
getJvmRouteFactoryin interfaceMCMPHandlerConfiguration
-
getSessionDrainingStrategy
- Specified by:
getSessionDrainingStrategyin interfaceMCMPHandlerConfiguration
-