X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fdbcapi.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fmodel%2FMR_Cluster.java;h=81850834f98e9ad7a61485cd744bb5c5c050fafe;hp=79de9ba22b2ff12a3d033e23763fd8d98bfdffee;hb=ac03a4b32eae987019cec2cd39d6d252fb320c2f;hpb=fb8a36eeec10b389a3ccc79c5f31ee925243c1b8 diff --git a/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java b/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java index 79de9ba..8185083 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java +++ b/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java @@ -55,6 +55,7 @@ public class MR_Cluster extends DmaapObject { } + // Deprecate this constructor public MR_Cluster( String dLN, String f, String a, @@ -70,9 +71,27 @@ public class MR_Cluster extends DmaapObject { this.lastMod = new DmaapTimestamp(); this.lastMod.mark(); - debugLogger.debug( "MR_Cluster constructor w initialization complete" + this.lastMod.getVal() ); + debugLogger.debug( "depracated MR_Cluster constructor w initialization complete" + this.lastMod.getVal() ); } - + + // new style constructor + public MR_Cluster( String dLN, + String f, + String prot, + String port ) { + this.dcaeLocationName = dLN; + this.fqdn = f; + this.hosts = new String[3]; + this.hosts[0] = fqdn; + this.hosts[1] = fqdn; + this.hosts[2] = fqdn; + this.topicProtocol = prot; + this.topicPort = port; + this.lastMod = new DmaapTimestamp(); + this.lastMod.mark(); + + debugLogger.debug( "MR_Cluster constructor w initialization complete" + this.lastMod.getVal() ); +} public String getDcaeLocationName() { return dcaeLocationName; }