moving the Partition 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/d8d98bc5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/d8d98bc5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/d8d98bc5 Branch: refs/heads/master Commit: d8d98bc53eb9a081571b2e5ca2cd956e9574dcae Parents: 3a9dc6e Author: Melan Nimesh <[email protected]> Authored: Sun Nov 24 13:13:55 2013 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Sun Nov 24 13:13:55 2013 +0530 ---------------------------------------------------------------------- .../messaging/domain/policy/Partition.java | 87 ++++++++++++++++++++ 1 file changed, 87 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/d8d98bc5/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/Partition.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/Partition.java b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/Partition.java new file mode 100644 index 0000000..e65dd05 --- /dev/null +++ b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/policy/Partition.java @@ -0,0 +1,87 @@ +/* + * 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; + +/** + * The model class for Partition definition. + */ +public class Partition { + + private int partitionMax; + private int partitionMin; + private String id; + + + /** + * Gets the value of the partitionMax property. + * + */ + public int getPartitionMembersMax() { + return partitionMax; + } + + /** + * Sets the value of the partitionMax property. + * + */ + public void setPartitionMax(int value) { + this.partitionMax = value; + } + + /** + * Gets the value of the partitionMin property. + * + */ + public int getPartitionMembersMin() { + return partitionMin; + } + + /** + * Sets the value of the partitionMin property. + * + */ + public void setPartitionMin(int value) { + this.partitionMin = value; + } + /** + * 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 id) { + this.id = id; + } + +} \ No newline at end of file
