Package org.lable.oss.uniqueid.etcd
Class ClusterID
- java.lang.Object
-
- org.lable.oss.uniqueid.etcd.ClusterID
-
public class ClusterID extends Object
-
-
Constructor Summary
Constructors Constructor Description ClusterID()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Integer>get(io.etcd.jetcd.Client etcd)Retrieves the numeric cluster ID from the Etcd cluster.
-
-
-
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.
-
-