Class EtcdSeedNodeProviderConfig

    • Constructor Detail

      • EtcdSeedNodeProviderConfig

        public EtcdSeedNodeProviderConfig()
    • Method Detail

      • getEndpoints

        public List<String> getEndpoints()
        Returns the list of Etcd endpoint addresses (see setEndpoints(List)).
        Returns:
        List of Etcd endpoints.
      • setEndpoints

        public void setEndpoints​(List<String> endpoints)
        Sets the list of Etcd endpoint addresses. Each address must be a valid string representation of URI.

        This parameter is mandatory and requires at least one Etcd endpoint address to be specified.

        Parameters:
        endpoints - Etcd endpoints.
      • setUsername

        public void setUsername​(String username)
        Sets the Etcd username.

        This parameter is optional if Etcd doesn't require authorization.

        Parameters:
        username - Etcd username.
      • setPassword

        public void setPassword​(String password)
        Sets the Etcd password.

        This parameter is optional if Etcd doesn't require authorization.

        Parameters:
        password - Etcd password.
      • getBasePath

        public String getBasePath()
        Returns the base path to store seed nodes information in Etcd (see setBasePath(String)).
        Returns:
        Base path to store seed nodes.
      • setBasePath

        public void setBasePath​(String basePath)
        Sets the base path to store seed nodes information in Etcd.

        Default value of this parameter is "/hekate/cluster".

        Parameters:
        basePath - Base path to store seed nodes.
      • getCleanupInterval

        public int getCleanupInterval()
        Returns the time interval in milliseconds between stale node cleanup runs (see setCleanupInterval(int)).
        Returns:
        Time interval in milliseconds.
      • setCleanupInterval

        public void setCleanupInterval​(int cleanupInterval)
        Sets the time interval in milliseconds between stale node cleanup runs.

        Default value of this parameter is 60000.

        For more details please see the documentation of SeedNodeProvider.

        Parameters:
        cleanupInterval - Time interval in milliseconds.
        See Also:
        SeedNodeProvider.cleanupInterval()