X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fmodel%2FMR_Cluster.java;fp=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fmodel%2FMR_Cluster.java;h=46279ee60b4a7ef24f810c7c93d88e6b6e39b364;hb=503da874ce876dbe463bcc1a03f63ea0f48fe650;hp=d8ebc8bc8fdcde3f30cd45da5097dc7abbb04205;hpb=0afd0dd2f1fa4435fa730a287e68fec4f271e617;p=dmaap%2Fdbcapi.git 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..46279ee 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 @@ -24,6 +24,8 @@ import java.util.Date; import javax.xml.bind.annotation.XmlRootElement; +import org.onap.dmaap.dbcapi.util.DmaapTimestamp; + @XmlRootElement @@ -32,7 +34,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 +49,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 +63,22 @@ public class MR_Cluster extends DmaapObject { String[] h ) { this.dcaeLocationName = dLN; this.fqdn = f; +logger.info( "templog:MR_Cluster at 10" ); + this.hosts = new String[3]; this.hosts[0] = h[0]; +logger.info( "templog:MR_Cluster at 20" ); this.hosts[1] = h[1]; +logger.info( "templog:MR_Cluster at 30" ); this.hosts[2] = h[2]; +logger.info( "templog:MR_Cluster at 40" ); this.topicProtocol = defaultTopicProtocol; +logger.info( "templog:MR_Cluster at 50" ); 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() ); +logger.info( "templog:MR_Cluster at 60" ); } public String getDcaeLocationName() {