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=79de9ba22b2ff12a3d033e23763fd8d98bfdffee;hp=d8ebc8bc8fdcde3f30cd45da5097dc7abbb04205;hb=d5d37c0477744cbaa6a9d9fc690c0dafbb2d1868;hpb=a05efb7b7b3cfc77f5e3fda11e8434834829f56a 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 d8ebc8b..79de9ba 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 @@ -20,10 +20,10 @@ package org.onap.dmaap.dbcapi.model; -import java.util.Date; - import javax.xml.bind.annotation.XmlRootElement; +import org.onap.dmaap.dbcapi.util.DmaapTimestamp; + @XmlRootElement @@ -32,7 +32,7 @@ public class MR_Cluster extends DmaapObject { private String dcaeLocationName; private String fqdn; private String[] hosts; - //private DmaapTimestamp lastMod; + private DmaapTimestamp lastMod; private String topicProtocol; private String topicPort; @@ -47,7 +47,9 @@ public class MR_Cluster extends DmaapObject { public MR_Cluster() { this.topicProtocol = defaultTopicProtocol; this.topicPort = defaultTopicPort; - this.lastMod = new Date(); + this.hosts = new String[3]; + this.lastMod = new DmaapTimestamp(); + this.lastMod.mark(); debugLogger.debug( "MR_Cluster constructor " + this.lastMod ); @@ -59,13 +61,16 @@ public class MR_Cluster extends DmaapObject { String[] h ) { this.dcaeLocationName = dLN; this.fqdn = f; + this.hosts = new String[3]; this.hosts[0] = h[0]; this.hosts[1] = h[1]; this.hosts[2] = h[2]; this.topicProtocol = defaultTopicProtocol; this.topicPort = defaultTopicPort; + this.lastMod = new DmaapTimestamp(); + this.lastMod.mark(); - debugLogger.debug( "MR_Cluster constructor w initialization complete" + this.lastMod ); + debugLogger.debug( "MR_Cluster constructor w initialization complete" + this.lastMod.getVal() ); } public String getDcaeLocationName() {