package io.irontest.models;

/**
 * Created by Zheng on 26/05/2016.
 */
public class MQIIBEndpointProperties extends Properties {
    private String queueManagerName;
    private String host;
    private Integer port;
    private String svrConnChannelName;
    private String queueManagerAddress;

    public String getQueueManagerName() {
        return queueManagerName;
    }

    public void setQueueManagerName(String queueManagerName) {
        this.queueManagerName = queueManagerName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getSvrConnChannelName() {
        return svrConnChannelName;
    }

    public void setSvrConnChannelName(String svrConnChannelName) {
        this.svrConnChannelName = svrConnChannelName;
    }

    public String getQueueManagerAddress() {
        return queueManagerAddress != null ? queueManagerAddress : host + ':' + port + '/' + queueManagerName;
    }

    public void setQueueManagerAddress(String queueManagerAddress) {
        this.queueManagerAddress = queueManagerAddress;
    }
}

@@ -22,16 +22,123 @@
 odels;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnore;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A%0A
 /**%0A * C
@@ -360,48 +360,8 @@
 ame;
-%0A    private String queueManagerAddress;
 %0A%0A  
@@ -1028,32 +1028,50 @@
 nelName;%0A    %7D%0A%0A
+    @JsonProperty%0A
     public Strin
@@ -1117,60 +1117,8 @@
 turn
- queueManagerAddress != null ? queueManagerAddress :
  hos
@@ -1157,32 +1157,48 @@
 gerName;%0A    %7D%0A%0A
+    @JsonIgnore%0A
     public void 
@@ -1262,55 +1262,22 @@
     
-this.queueManagerAddress = queueManagerAddress;
+//  do nothing
 %0A   

fix queueManagerAddress not-update issue