summaryrefslogtreecommitdiffstats
path: root/hosted-zone-api/src/main/java/ai/vespa/cloud/Cluster.java
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-zone-api/src/main/java/ai/vespa/cloud/Cluster.java')
-rw-r--r--hosted-zone-api/src/main/java/ai/vespa/cloud/Cluster.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/hosted-zone-api/src/main/java/ai/vespa/cloud/Cluster.java b/hosted-zone-api/src/main/java/ai/vespa/cloud/Cluster.java
new file mode 100644
index 00000000000..6e064b09d7a
--- /dev/null
+++ b/hosted-zone-api/src/main/java/ai/vespa/cloud/Cluster.java
@@ -0,0 +1,19 @@
+package ai.vespa.cloud;
+
+/**
+ * The properties of a cluster of nodes.
+ *
+ * @author gjoranv
+ */
+public class Cluster {
+
+ private final int size;
+
+ public Cluster(int size) {
+ this.size = size;
+ }
+
+ /** Returns the number of nodes in this cluster. */
+ public int size() { return size; }
+
+}