You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by re...@apache.org on 2013/11/11 07:30:42 UTC
git commit: adding Scope as enum
Updated Branches:
refs/heads/master 23a17cb20 -> 2e6af556a
adding Scope as enum
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/2e6af556
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/2e6af556
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/2e6af556
Branch: refs/heads/master
Commit: 2e6af556aa2169d6d131c9153ee8032fc85609d3
Parents: 23a17cb
Author: rekathiru <rt...@gmail.com>
Authored: Mon Nov 11 12:00:29 2013 +0530
Committer: rekathiru <rt...@gmail.com>
Committed: Mon Nov 11 12:00:29 2013 +0530
----------------------------------------------------------------------
.../messaging/domain/topology/Partition.java | 6 ++---
.../messaging/domain/topology/Scope.java | 26 ++++++++++++++++++++
2 files changed, 29 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/2e6af556/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Partition.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Partition.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Partition.java
index ecbd14b..02ae6a6 100644
--- a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Partition.java
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Partition.java
@@ -23,7 +23,7 @@ import java.util.Map;
public class Partition {
private String id;
- private String scope;
+ private Scope scope;
/**
* key - type of scope
* value - name of the scope
@@ -39,11 +39,11 @@ public class Partition {
}
- public String getScope() {
+ public Scope getScope() {
return scope;
}
- public void setScope(String scope) {
+ public void setScope(Scope scope) {
this.scope = scope;
}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/2e6af556/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Scope.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Scope.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Scope.java
new file mode 100644
index 0000000..fc05745
--- /dev/null
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Scope.java
@@ -0,0 +1,26 @@
+ /*
+ * 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.domain.topology;
+
+ /**
+ * represents the scope of each partition which can be configured in stratos.
+ */
+public enum Scope {
+ PROVIDER, REGION, ZONE, HOST
+}