4 /*******************************************************************************
5 * ============LICENSE_START=======================================================
7 * ================================================================================
8 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
9 * ================================================================================
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
22 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
24 *******************************************************************************/
25 package com.att.dmf.mr.beans;
27 import java.io.Serializable;
29 import javax.xml.bind.annotation.XmlRootElement;
32 * @author muzainulhaque.qazi
36 public class TopicBean implements Serializable {
38 private static final long serialVersionUID = -8620390377775457949L;
39 private String topicName;
40 private String topicDescription;
42 private int partitionCount;
43 private int replicationCount;
45 private boolean transactionEnabled;
55 * constructor initialization with topic details name, description,
56 * partition, replication, transaction
60 * @param partitionCount
61 * @param replicationCount
62 * @param transactionEnabled
64 public TopicBean(String topicName, String topicDescription, int partitionCount, int replicationCount,
65 boolean transactionEnabled) {
67 this.topicName = topicName;
68 this.topicDescription = topicDescription;
69 this.partitionCount = partitionCount;
70 this.replicationCount = replicationCount;
71 this.transactionEnabled = transactionEnabled;
76 * returns topic name which is of String type
78 public String getTopicName() {
86 public void setTopicName(String topicName) {
87 this.topicName = topicName;
93 * returns partition count which is of int type
95 public int getPartitionCount() {
96 return partitionCount;
100 * @param partitionCount
101 * set partition Count
103 public void setPartitionCount(int partitionCount) {
104 this.partitionCount = partitionCount;
109 * returns replication count which is of int type
111 public int getReplicationCount() {
112 return replicationCount;
117 * set replication count which is of int type
119 public void setReplicationCount(int replicationCount) {
120 this.replicationCount = replicationCount;
125 * returns boolean value which indicates whether transaction is Enabled
127 public boolean isTransactionEnabled() {
128 return transactionEnabled;
133 * sets boolean value which indicates whether transaction is Enabled
135 public void setTransactionEnabled(boolean transactionEnabled) {
136 this.transactionEnabled = transactionEnabled;
141 * @return returns description which is of String type
143 public String getTopicDescription() {
144 return topicDescription;
148 * @param topicDescription
149 * set description which is of String type
151 public void setTopicDescription(String topicDescription) {
152 this.topicDescription = topicDescription;