Class DistributedCommandBusProperties.JGroupsProperties

java.lang.Object
org.axonframework.extension.springboot.DistributedCommandBusProperties.JGroupsProperties
Enclosing class:
DistributedCommandBusProperties

public static class DistributedCommandBusProperties.JGroupsProperties extends Object
The JGroups specific configuration for the Distributed Command Bus.
  • Constructor Details

    • JGroupsProperties

      public JGroupsProperties()
  • Method Details

    • getGossip

      Returns the DistributedCommandBusProperties.JGroupsProperties.Gossip configuration in case the Gossip protocol is configured for JGroups (default).
      Returns:
      the DistributedCommandBusProperties.JGroupsProperties.Gossip configuration.
    • setGossip

      Sets the DistributedCommandBusProperties.JGroupsProperties.Gossip configuration in case the Gossip protocol is configured for JGroups (default).
      Parameters:
      gossip - the DistributedCommandBusProperties.JGroupsProperties.Gossip configuration.
    • getClusterName

      public String 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

      public void setClusterName(String clusterName)
      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

      public String 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

      public void setConfigurationFile(String configurationFile)
      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

      public String 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

      public void setBindAddr(String bindAddr)
      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

      public String 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

      public void setBindPort(String bindPort)
      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).