Class ClusterSettings


  • public class ClusterSettings
    extends Object
    Settings for the cluster
    • Constructor Detail

      • ClusterSettings

        public ClusterSettings()
    • Method Detail

      • getConnectTimeout

        @Nullable
        public @Nullable Integer getConnectTimeout()
        Defines the number of milliseconds that a server node waits when it joins the cluster (e.g. when waiting for a coordinator server node)
        Returns:
        connectTimeout
      • setConnectTimeout

        public void setConnectTimeout​(Integer connectTimeout)
      • getMode

        @Nullable
        public @Nullable ClusterMode getMode()
        Get mode
        Returns:
        mode
      • getName

        @Nullable
        public @Nullable String getName()
        Defines the name of the cluster. If the server node has a coordinator role, the cluster is created under this name. If the server node has the role of a member, the node attempts to join the cluster with this name.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getNodeName

        @Nullable
        public @Nullable String getNodeName()
        Defines the name for the node. If it is empty, the host name of the machine is used.
        Returns:
        nodeName
      • setNodeName

        public void setNodeName​(String nodeName)
      • getRole

        @Nullable
        public @Nullable ClusterRole getRole()
        Get role
        Returns:
        role
      • getSecretKey

        @Nullable
        public @Nullable String getSecretKey()
        The encryption key used for communication in the cluster between the nodes. All nodes must use the same 64-digit hexadecimal encryption key. The encryption key is created when the cluster is initialized.
        Returns:
        secretKey
      • setSecretKey

        public void setSecretKey​(String secretKey)
      • getStopOnError

        @Nullable
        public @Nullable Boolean getStopOnError()
        If 'true', the server node is also started if an error has occurred (e.g. when joining the cluster).
        Returns:
        stopOnError
      • setStopOnError

        public void setStopOnError​(Boolean stopOnError)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object