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 BooleangetAdvertise()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.JvmRouteFactorygetJvmRouteFactory()Factory for generating jvm routeCollection<InetSocketAddress>getProxies()Deprecated.Collection<ProxyConfiguration>getProxyConfigurations()Gets list of proxies as a collection ofProxyConfigurations.StringgetProxyURL()URL prefix.SessionDrainingStrategygetSessionDrainingStrategy()SocketFactorygetSocketFactory()Configuration of the socket factory, supply SSL socket factory to use SSL to connect to the proxy.intgetSocketTimeout()Connection timeout for communication with the proxy.longgetStopContextTimeout()Returns the number ofMCMPHandlerConfiguration.getStopContextTimeoutUnit()to wait for pending requests to complete when stopping a context.TimeUnitgetStopContextTimeoutUnit()Returns the unit of time to whichMCMPHandlerConfiguration.getStopContextTimeout()pertains.booleanisAutoEnableContexts()Indicates whether or not to automatically enable contexts.booleanisSsl()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:MCMPHandlerConfigurationGets list of proxies as a collection ofProxyConfigurations.- Specified by:
getProxyConfigurationsin interfaceMCMPHandlerConfiguration- Returns:
- list of proxies as a collection of
ProxyConfigurations
-
getProxies
@Deprecated public Collection<InetSocketAddress> 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
public String 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 public boolean isSsl()
Deprecated.Description copied from interface:MCMPHandlerConfigurationSSL client cert usage to connect to the proxy.- Specified by:
isSslin interfaceMCMPHandlerConfiguration
-
getSocketFactory
public SocketFactory 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
public Map<String,Set<String>> 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
public Boolean 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
public TimeUnit getStopContextTimeoutUnit()
Description copied from interface:MCMPHandlerConfigurationReturns the unit of time to whichMCMPHandlerConfiguration.getStopContextTimeout()pertains.- Specified by:
getStopContextTimeoutUnitin interfaceMCMPHandlerConfiguration- Returns:
- a unit of time
-
getJvmRouteFactory
public JvmRouteFactory getJvmRouteFactory()
Description copied from interface:MCMPHandlerConfigurationFactory for generating jvm route- Specified by:
getJvmRouteFactoryin interfaceMCMPHandlerConfiguration
-
getSessionDrainingStrategy
public SessionDrainingStrategy getSessionDrainingStrategy()
- Specified by:
getSessionDrainingStrategyin interfaceMCMPHandlerConfiguration
-
-