diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-29 10:14:38 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-29 10:14:38 +0100 |
commit | bb92e6eaa9bca36d9f1e356a2f578d22c98af22f (patch) | |
tree | 6507fa866d5a4ee0f45500e8143c12638aafc07a /module/ri-base/src/main/java | |
parent | d167fc9b40a83187c657f3a048f19ac56f529af3 (diff) | |
download | rules-sandbox-bb92e6eaa9bca36d9f1e356a2f578d22c98af22f.tar.gz rules-sandbox-bb92e6eaa9bca36d9f1e356a2f578d22c98af22f.tar.bz2 rules-sandbox-bb92e6eaa9bca36d9f1e356a2f578d22c98af22f.tar.xz rules-sandbox-bb92e6eaa9bca36d9f1e356a2f578d22c98af22f.zip |
IO: Making input and output files have the same format.
Diffstat (limited to 'module/ri-base/src/main/java')
-rw-r--r-- | module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java | 2 | ||||
-rw-r--r-- | module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java | 20 |
2 files changed, 12 insertions, 10 deletions
diff --git a/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java b/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java index 0b65aaa..6b23cdd 100644 --- a/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java +++ b/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java @@ -10,4 +10,6 @@ public class Cluster { public Cluster(String name) { this.name = name; } + + protected Cluster() {} } diff --git a/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java b/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java index 3888661..a420671 100644 --- a/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java +++ b/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java @@ -1,22 +1,19 @@ package io.trygvis.rules.dba; -import com.fasterxml.jackson.annotation.JsonIdentityReference; import io.trygvis.rules.machine.Machine; import io.trygvis.rules.machine.MachineSpecification; //@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id") public class Container { - public final String id; - -// @JsonIdentityReference(alwaysAsId = true) - public final Cluster cluster; - public final String name; - public final String machineRole; - public final String image; - public final String tag; + public String id; + public Cluster cluster; + public String name; + public String machineRole; + public String image; + public String tag; private Machine machine; - public final MachineSpecification machineSpecification; + public MachineSpecification machineSpecification; public Container(Cluster cluster, String name, String machineRole, String image, String tag, MachineSpecification machineSpecification) { @@ -29,6 +26,9 @@ public class Container { this.machineSpecification = machineSpecification; } + protected Container() { + } + public Cluster getCluster() { return cluster; } |