moving the PartitionGroup 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/e4df27de Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/e4df27de Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/e4df27de Branch: refs/heads/master Commit: e4df27de36a708f21ad5017a06d5e2ade8f5b619 Parents: d8d98bc Author: Melan Nimesh <[email protected]> Authored: Sun Nov 24 13:14:20 2013 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Sun Nov 24 13:14:20 2013 +0530 ---------------------------------------------------------------------- .../messaging/domain/policy/PartitionGroup.java | 81 ++++++++++++++++++++ 1 file changed, 81 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/e4df27de/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/PartitionGroup.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/PartitionGroup.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/PartitionGroup.java new file mode 100644 index 0000000..2db5e67 --- /dev/null +++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/PartitionGroup.java @@ -0,0 +1,81 @@ +/* + * 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 PartitionGroup definition. + */ +public class PartitionGroup { + + private String id; + private String partitionAlgo; + private List<Partition> partitions; + + /** + * Gets the value of the partitionAlgo property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPartitionAlgo() { + return partitionAlgo; + } + + /** + * Sets the value of the partitionAlgo property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPartitionAlgo(String value) { + this.partitionAlgo = value; + } + + /** + * Gets the value of the partitions. + */ + public List<Partition> getPartitions() { + if (partitions == null) { + partitions = new ArrayList<Partition>(); + } + return this.partitions; + } + + /** + * Gets the value of the id. + */ + public String getId() { + return id; + } + + /** + * sets the value of the id. + */ + public void setId(String id) { + this.id = id; + } +}
