package com.jivesoftware.os.miru.api.topology;

/**
 *
 */
public class MiruPartitionActive {

    public final long lastIngressTimestamp;
    public final long activeUntilTimestamp;
    public final long idleAfterTimestamp;
    public final long destroyAfterTimestamp;
    public final long cleanupAfterTimestamp;

    public MiruPartitionActive(long lastIngressTimestamp,
        long activeUntilTimestamp,
        long idleAfterTimestamp,
        long destroyAfterTimestamp,
        long cleanupAfterTimestamp) {
        this.lastIngressTimestamp = lastIngressTimestamp;
        this.activeUntilTimestamp = activeUntilTimestamp;
        this.idleAfterTimestamp = idleAfterTimestamp;
        this.destroyAfterTimestamp = destroyAfterTimestamp;
        this.cleanupAfterTimestamp = cleanupAfterTimestamp;
    }
}

@@ -41,16 +41,124 @@
 ology;%0A%0A
+import com.fasterxml.jackson.annotation.JsonCreator;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A%0A
 /**%0A *%0A 
@@ -417,16 +417,33 @@
 stamp;%0A%0A
+    @JsonCreator%0A
     publ
@@ -469,146 +469,336 @@
 ive(
-long lastIngressTimestamp,%0A        long activeUntilTimestamp,%0A        long idleAfterTimestamp,%0A        long destroyAfterTimestamp,%0A       
+@JsonProperty(%22lastIngressTimestamp%22) long lastIngressTimestamp,%0A        @JsonProperty(%22activeUntilTimestamp%22) long activeUntilTimestamp,%0A        @JsonProperty(%22idleAfterTimestamp%22) long idleAfterTimestamp,%0A        @JsonProperty(%22destroyAfterTimestamp%22) long destroyAfterTimestamp,%0A        @JsonProperty(%22cleanupAfterTimestamp%22)
  lon

fix json serialization