You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2013/12/20 16:15:34 UTC

[19/19] git commit: adding the serializability to the partition context and network partiton context

adding the serializability to the partition context and network partiton context


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/8c6a58c9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/8c6a58c9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/8c6a58c9

Branch: refs/heads/master
Commit: 8c6a58c97ead7dd8b8284b1962729d028227b5cb
Parents: b302284
Author: Udara Liyanage <ud...@wso2.com>
Authored: Fri Dec 20 20:44:26 2013 -0500
Committer: Udara Liyanage <ud...@wso2.com>
Committed: Fri Dec 20 20:44:26 2013 -0500

----------------------------------------------------------------------
 .../org/apache/stratos/autoscaler/NetworkPartitionContext.java  | 5 +++--
 .../java/org/apache/stratos/autoscaler/PartitionContext.java    | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8c6a58c9/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
index e902fff..61b2351 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/NetworkPartitionContext.java
@@ -30,9 +30,10 @@ import java.util.Map;
  * Holds runtime data of a network partition.
  *
  */
-public class NetworkPartitionContext{
+public class NetworkPartitionContext implements Serializable{
 
-    private static final Log log = LogFactory.getLog(NetworkPartitionContext.class);
+	private static final long serialVersionUID = -8851073480764734511L;
+	private static final Log log = LogFactory.getLog(NetworkPartitionContext.class);
     private String id;
 
     private String defaultLbClusterId;

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8c6a58c9/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
index e60d855..51150e0 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
@@ -40,9 +40,10 @@ import java.util.concurrent.CopyOnWriteArrayList;
  *
  */
 
-public class PartitionContext{
+public class PartitionContext implements Serializable{
 
-    private static final Log log = LogFactory.getLog(PartitionContext.class);
+	private static final long serialVersionUID = -2920388667345980487L;
+	private static final Log log = LogFactory.getLog(PartitionContext.class);
     private String partitionId;
     private String serviceName;
     private String networkPartitionId;