Class DistributedCommandBusProperties.JGroupsProperties
java.lang.Object
org.axonframework.extension.springboot.DistributedCommandBusProperties.JGroupsProperties
- Enclosing class:
DistributedCommandBusProperties
The JGroups specific configuration for the Distributed Command Bus.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Address to bind the JGroups client to.Returns the port to listen to JGroups connections (default 7800).Returns the Cluster Name of the JGroups Cluster to connect with (defaults to "Axon").Returns the path to the configuration file to use to configure the Groups instance.Returns theDistributedCommandBusProperties.JGroupsProperties.Gossipconfiguration in case the Gossip protocol is configured for JGroups (default).voidsetBindAddr(String bindAddr) Sets the Address to bind the JGroups to.voidsetBindPort(String bindPort) Returns the port to listen to JGroups connections (default 7800).voidsetClusterName(String clusterName) Sets the Cluster Name of the JGroups Cluster to connect with (defaults to "Axon").voidsetConfigurationFile(String configurationFile) Sets the path to the configuration file to use to configure the Groups instance.voidSets theDistributedCommandBusProperties.JGroupsProperties.Gossipconfiguration in case the Gossip protocol is configured for JGroups (default).
-
Constructor Details
-
JGroupsProperties
public JGroupsProperties()
-
-
Method Details
-
getGossip
Returns theDistributedCommandBusProperties.JGroupsProperties.Gossipconfiguration in case the Gossip protocol is configured for JGroups (default).- Returns:
- the
DistributedCommandBusProperties.JGroupsProperties.Gossipconfiguration.
-
setGossip
Sets theDistributedCommandBusProperties.JGroupsProperties.Gossipconfiguration in case the Gossip protocol is configured for JGroups (default).- Parameters:
gossip- theDistributedCommandBusProperties.JGroupsProperties.Gossipconfiguration.
-
getClusterName
Returns the Cluster Name of the JGroups Cluster to connect with (defaults to "Axon").- Returns:
- the Cluster Name of the JGroups Cluster to connect with.
-
setClusterName
Sets the Cluster Name of the JGroups Cluster to connect with (defaults to "Axon").- Parameters:
clusterName- the Cluster Name of the JGroups Cluster to connect with.
-
getConfigurationFile
Returns the path to the configuration file to use to configure the Groups instance.- Returns:
- the path to the configuration file to use to configure the Groups instance.
-
setConfigurationFile
Sets the path to the configuration file to use to configure the Groups instance. Default to a TCP_GOSSIP based configuration.- Parameters:
configurationFile- the path to the configuration file to use to configure the Groups instance.
-
getBindAddr
Returns the Address to bind the JGroups client to. Defaults to "GLOBAL", which binds the client to the IP of any network interface connecting to an external network (i.e. other than loopback).- Returns:
- the Address to bind the JGroups client to.
-
setBindAddr
Sets the Address to bind the JGroups to. Defaults to "GLOBAL", which binds to the IP of any network interface connecting to an external network (i.e. other than loopback).- Parameters:
bindAddr- The address to bind JGroups to.
-
getBindPort
Returns the port to listen to JGroups connections (default 7800). Could be 0, to indicate any free port.- Returns:
- the port to listen to JGroups connections (default 7800).
-
setBindPort
Returns the port to listen to JGroups connections (default 7800). Could be 0, to indicate any free port.- Parameters:
bindPort- the port to listen to JGroups connections (default 7800).
-