Class MCMPHandlerConfigurationBuilder
java.lang.Object
org.jboss.modcluster.config.builder.MCMPHandlerConfigurationBuilder
- All Implemented Interfaces:
ConfigurationBuilder
,Creator<MCMPHandlerConfiguration>
public class MCMPHandlerConfigurationBuilder
extends Object
implements Creator<MCMPHandlerConfiguration>
Builder for MCMP (Mod-Cluster Management Protocol) handler configuration.
- Since:
- 1.3.6.Final
- Author:
- Radoslav Husar
-
Method Summary
Modifier and TypeMethodDescriptionBuilder for multicast-based advertise configuration.balancer()
Builder for balancer configuration.build()
Builds the main configuration object.create()
Creates the configuration object.mcmp()
Builder for MCMP (Mod-Cluster Management Protocol) handler configuration.node()
Builder for proxy node configuration.setAdvertise
(Boolean advertise) Sets whether to receive advertisements from httpd proxies.setAutoEnableContexts
(boolean autoEnableContexts) Sets whether or not to automatically enable contexts.setExcludedContextsPerHost
(Map<String, Set<String>> excludedContextsPerHost) Sets a map of contexts per host that should never be registered by mod_cluster with the proxy.setJvmRouteFactory
(JvmRouteFactory jvmRouteFactory) Sets a factory for generating a JVM route.setProxyConfigurations
(Collection<ProxyConfiguration> proxyConfigurations) Sets a static list of proxies to register with as a collection ofProxyConfiguration
s.setProxyURL
(String proxyURL) Sets URL prefix to send with commands to mod_cluster.setSessionDrainingStrategy
(SessionDrainingStrategy sessionDrainingStrategy) Configures the strategy for draining sessions from a context.setSocketFactory
(SocketFactory socketFactory) Sets socket factory for communication with the proxy; supply an SSL socket factory to use SSL to connect to the proxy.setSocketTimeout
(int socketTimeout) Sets connection timeout for communication with the proxy.setStopContextTimeout
(long stopContextTimeout) Sets the number ofsetStopContextTimeoutUnit(TimeUnit)
to wait for pending requests to complete when stopping a context.setStopContextTimeoutUnit
(TimeUnit stopContextTimeoutUnit) Sets the unit of time to whichsetStopContextTimeout(long)
pertains.
-
Method Details
-
setProxyConfigurations
public MCMPHandlerConfigurationBuilder setProxyConfigurations(Collection<ProxyConfiguration> proxyConfigurations) Sets a static list of proxies to register with as a collection ofProxyConfiguration
s. -
setProxyURL
Sets URL prefix to send with commands to mod_cluster. Default is no prefix. -
setSocketTimeout
Sets connection timeout for communication with the proxy. -
setSocketFactory
Sets socket factory for communication with the proxy; supply an SSL socket factory to use SSL to connect to the proxy. -
setExcludedContextsPerHost
public MCMPHandlerConfigurationBuilder setExcludedContextsPerHost(Map<String, Set<String>> excludedContextsPerHost) Sets a map of contexts per host that should never be registered by mod_cluster with the proxy. -
setAdvertise
Sets whether to receive advertisements from httpd proxies. -
setAutoEnableContexts
Sets whether or not to automatically enable contexts. If false, context will need to be enabled manually. -
setStopContextTimeout
Sets the number ofsetStopContextTimeoutUnit(TimeUnit)
to wait for pending requests to complete when stopping a context. -
setStopContextTimeoutUnit
Sets the unit of time to whichsetStopContextTimeout(long)
pertains. -
setJvmRouteFactory
Sets a factory for generating a JVM route. -
setSessionDrainingStrategy
public MCMPHandlerConfigurationBuilder setSessionDrainingStrategy(SessionDrainingStrategy sessionDrainingStrategy) Configures the strategy for draining sessions from a context. -
create
Description copied from interface:Creator
Creates the configuration object.- Specified by:
create
in interfaceCreator<MCMPHandlerConfiguration>
-
advertise
Description copied from interface:ConfigurationBuilder
Builder for multicast-based advertise configuration.- Specified by:
advertise
in interfaceConfigurationBuilder
-
balancer
Description copied from interface:ConfigurationBuilder
Builder for balancer configuration.- Specified by:
balancer
in interfaceConfigurationBuilder
-
node
Description copied from interface:ConfigurationBuilder
Builder for proxy node configuration.- Specified by:
node
in interfaceConfigurationBuilder
-
mcmp
Description copied from interface:ConfigurationBuilder
Builder for MCMP (Mod-Cluster Management Protocol) handler configuration.- Specified by:
mcmp
in interfaceConfigurationBuilder
-
build
Description copied from interface:ConfigurationBuilder
Builds the main configuration object.- Specified by:
build
in interfaceConfigurationBuilder
-