You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ni...@apache.org on 2013/11/27 19:55:04 UTC
[07/26] git commit: moving the Deployment Policy file from autoscaler
moving the Deployment Policy file from autoscaler
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/3a9dc6ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/3a9dc6ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/3a9dc6ec
Branch: refs/heads/master
Commit: 3a9dc6eceaf85a88405f34e146592b34c8bddfed
Parents: 2e06dd1
Author: Melan Nimesh <me...@gmail.com>
Authored: Sun Nov 24 12:58:16 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Sun Nov 24 12:58:16 2013 +0530
----------------------------------------------------------------------
.../domain/policy/DeploymentPolicy.java | 67 ++++++++++++++++++++
1 file changed, 67 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/3a9dc6ec/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/DeploymentPolicy.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/DeploymentPolicy.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/DeploymentPolicy.java
new file mode 100644
index 0000000..50f9006
--- /dev/null
+++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/DeploymentPolicy.java
@@ -0,0 +1,67 @@
+/*
+ * 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.autoscaler.policy.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * The model class for Deployment-Policy definition.
+ */
+public class DeploymentPolicy {
+
+ private String id;
+ private List<PartitionGroup> partitionGroups;
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the partition-groups.
+ */
+ public List<PartitionGroup> getPartitionGroups() {
+ if (partitionGroups == null) {
+ partitionGroups = new ArrayList<PartitionGroup>();
+ }
+ return this.partitionGroups;
+ }
+
+}
\ No newline at end of file