Class NodeConfigurationBuilder
java.lang.Object
org.jboss.modcluster.config.builder.NodeConfigurationBuilder
- All Implemented Interfaces:
ConfigurationBuilder
,Creator<NodeConfiguration>
Builder for proxy node 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.setBalancer
(String balancer) Sets the name of the balancer.setFlushPackets
(boolean flushPackets) Controls flushing of packets.setFlushWait
(int flushWait) Sets time to wait before flushing packets.setLoadBalancingGroup
(String loadBalancingGroup) Indicates the group of servers to which this node belongs.setNodeTimeout
(int nodeTimeout) Sets maximum time in seconds for idle connections the proxy will wait to connect to the node.setPing
(int ping) Sets time to wait for a pong answer to a ping.setSmax
(int smax) Sets soft maximum inactive connection count.setTtl
(int ttl) Sets maximum time on seconds for idle connections above smax.
-
Method Details
-
setLoadBalancingGroup
Indicates the group of servers to which this node belongs. If defined, mod_cluster will always attempt to failover a given request to a node in the same group as the failed node. This property is equivalent to the mod_jk domain directive. -
setFlushPackets
Controls flushing of packets. -
setFlushWait
Sets time to wait before flushing packets. -
setPing
Sets time to wait for a pong answer to a ping. -
setSmax
Sets soft maximum inactive connection count. -
setTtl
Sets maximum time on seconds for idle connections above smax. -
setNodeTimeout
Sets maximum time in seconds for idle connections the proxy will wait to connect to the node. -
setBalancer
Sets the name of the balancer. -
create
Description copied from interface:Creator
Creates the configuration object.- Specified by:
create
in interfaceCreator<NodeConfiguration>
-
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
-