Add resource version to ReplicationController.
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/85ee2f30 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/85ee2f30 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/85ee2f30 Branch: refs/heads/docker-integration Commit: 85ee2f301ce8f916341eddcb37e5e02458317528 Parents: 6feb047 Author: Nirmal Fernando <[email protected]> Authored: Sun Sep 21 22:30:49 2014 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Sun Sep 21 22:30:49 2014 +0530 ---------------------------------------------------------------------- .../client/model/ReplicationController.java | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/85ee2f30/components/org.apache.stratos.kubernetes.client/src/main/java/org/apache/stratos/kubernetes/client/model/ReplicationController.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.kubernetes.client/src/main/java/org/apache/stratos/kubernetes/client/model/ReplicationController.java b/components/org.apache.stratos.kubernetes.client/src/main/java/org/apache/stratos/kubernetes/client/model/ReplicationController.java index 91a2a5f..66369ed 100644 --- a/components/org.apache.stratos.kubernetes.client/src/main/java/org/apache/stratos/kubernetes/client/model/ReplicationController.java +++ b/components/org.apache.stratos.kubernetes.client/src/main/java/org/apache/stratos/kubernetes/client/model/ReplicationController.java @@ -31,6 +31,7 @@ public class ReplicationController { private String kind; private String id; + private int resourceVersion; private String creationTimestamp; private String selfLink; private String apiVersion; @@ -74,18 +75,25 @@ public class ReplicationController { this.desiredState = desiredState; } - @Override - public String toString() { - return "ReplicationController [kind=" + kind + ", id=" + id - + ", creationTimestamp=" + creationTimestamp + ", selfLink=" - + selfLink + ", labels=" + labels + ", desiredState=" - + desiredState + "]"; - } public String getApiVersion() { return apiVersion; } public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public int getResourceVersion() { + return resourceVersion; + } + public void setResourceVersion(int resourceVersion) { + this.resourceVersion = resourceVersion; + } + @Override + public String toString() { + return "ReplicationController [kind=" + kind + ", id=" + id + + ", resourceVersion=" + resourceVersion + + ", creationTimestamp=" + creationTimestamp + ", selfLink=" + + selfLink + ", apiVersion=" + apiVersion + ", labels=" + + labels + ", desiredState=" + desiredState + "]"; + } }
