Class AdvertiseConfigurationBuilder
java.lang.Object
org.jboss.modcluster.config.builder.AdvertiseConfigurationBuilder
- All Implemented Interfaces:
ConfigurationBuilder
,Creator<AdvertiseConfiguration>
public class AdvertiseConfigurationBuilder
extends Object
implements Creator<AdvertiseConfiguration>
Builder for multicast-based advertise 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.setAdvertiseInterface
(InetAddress advertiseInterface) Deprecated.setAdvertiseInterface
(NetworkInterface advertiseInterface) Sets the interface to use for advertisements.setAdvertiseSecurityKey
(String advertiseSecurityKey) Sets the shared advertise security key.setAdvertiseSocketAddress
(InetSocketAddress advertiseSocketAddress) Sets the socket factory to use for advertisements.setAdvertiseThreadFactory
(ThreadFactory advertiseThreadFactory) Sets the tread factory for advertise mechanism.
-
Method Details
-
setAdvertiseSocketAddress
public AdvertiseConfigurationBuilder setAdvertiseSocketAddress(InetSocketAddress advertiseSocketAddress) Sets the socket factory to use for advertisements. -
setAdvertiseInterface
Sets the interface to use for advertisements. -
setAdvertiseInterface
@Deprecated public AdvertiseConfigurationBuilder setAdvertiseInterface(InetAddress advertiseInterface) Deprecated.UsesetAdvertiseInterface(java.net.NetworkInterface)
instead.Sets the interface to use for advertisements. -
setAdvertiseSecurityKey
Sets the shared advertise security key. -
setAdvertiseThreadFactory
public AdvertiseConfigurationBuilder setAdvertiseThreadFactory(ThreadFactory advertiseThreadFactory) Sets the tread factory for advertise mechanism. -
create
Description copied from interface:Creator
Creates the configuration object.- Specified by:
create
in interfaceCreator<AdvertiseConfiguration>
-
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
-
setAdvertiseInterface(java.net.NetworkInterface)
instead.