You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2013/10/15 08:56:06 UTC
git commit: Removed TopologyMessage class and updated Cluster, Service
Updated Branches:
refs/heads/master fdddd6387 -> 221982e4f
Removed TopologyMessage class and updated Cluster, Service
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/221982e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/221982e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/221982e4
Branch: refs/heads/master
Commit: 221982e4f715c067f80cec2d18cf3aeb1badd457
Parents: fdddd63
Author: Imesh Gunaratne <im...@apache.org>
Authored: Tue Oct 15 12:25:47 2013 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Tue Oct 15 12:25:47 2013 +0530
----------------------------------------------------------------------
.../messaging/domain/topology/Cluster.java | 9 +++++
.../messaging/domain/topology/Service.java | 9 -----
.../messaging/message/TopologyMessage.java | 37 --------------------
3 files changed, 9 insertions(+), 46 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/221982e4/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
index 8f11579..4ed5a53 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Cluster.java
@@ -29,6 +29,7 @@ import java.util.*;
*/
public class Cluster implements Serializable {
private String clusterId;
+ private String hostName;
private String tenantRange;
private Cloud cloud;
private Region region;
@@ -49,6 +50,14 @@ public class Cluster implements Serializable {
this.clusterId = clusterId;
}
+ public String getHostName() {
+ return hostName;
+ }
+
+ public void setHostName(String hostName) {
+ this.hostName = hostName;
+ }
+
public String getTenantRange() {
return tenantRange;
}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/221982e4/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Service.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Service.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Service.java
index cc5b2dd..ef3a1d5 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Service.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Service.java
@@ -26,7 +26,6 @@ import java.util.*;
*/
public class Service {
private String serviceName;
- private String domainName;
// Key: Cluster.clusterId
private Map<String, Cluster> clusterMap;
private Properties properties;
@@ -43,14 +42,6 @@ public class Service {
this.serviceName = serviceName;
}
- public String getDomainName() {
- return domainName;
- }
-
- public void setDomainName(String domainName) {
- this.domainName = domainName;
- }
-
public Collection<Cluster> getClusterMap() {
return clusterMap.values();
}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/221982e4/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/message/TopologyMessage.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/message/TopologyMessage.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/message/TopologyMessage.java
deleted file mode 100644
index 87cdc5a..0000000
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/message/TopologyMessage.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.messaging.message;
-
-import java.util.Properties;
-
-
-/**
- * Represents a message that would traverse through Stratos
- * @author nirmal
- *
- */
-public class TopologyMessage {
-
- private Properties properties = new Properties();
-
- public void addProperty(String key, String value) {
- properties.put(key, value);
- }
-
-}