Class ClusterID


  • public class ClusterID
    extends Object
    • Constructor Detail

      • ClusterID

        public ClusterID()
    • Method Detail

      • get

        public static List<Integer> get​(io.etcd.jetcd.Client etcd)
                                 throws IOException
        Retrieves the numeric cluster ID from the Etcd cluster.
        Parameters:
        etcd - Etcd connection.
        Returns:
        The cluster ID, if configured in the cluster.
        Throws:
        IOException - Thrown when retrieving the ID fails.