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 org.onap.dmaap.dmf.mr.beans;
27 import javax.xml.bind.annotation.XmlRootElement;
28 import java.io.Serializable;
31 * @author muzainulhaque.qazi
35 public class TopicBean implements Serializable {
37 private static final long serialVersionUID = -8620390377775457949L;
38 private String topicName;
39 private String topicDescription;
41 private int partitionCount;
42 private int replicationCount;
44 private boolean transactionEnabled;
54 * constructor initialization with topic details name, description,
55 * partition, replication, transaction
59 * @param partitionCount
60 * @param replicationCount
61 * @param transactionEnabled
63 public TopicBean(String topicName, String topicDescription, int partitionCount, int replicationCount,
64 boolean transactionEnabled) {
66 this.topicName = topicName;
67 this.topicDescription = topicDescription;
68 this.partitionCount = partitionCount;
69 this.replicationCount = replicationCount;
70 this.transactionEnabled = transactionEnabled;
75 * returns topic name which is of String type
77 public String getTopicName() {
85 public void setTopicName(String topicName) {
86 this.topicName = topicName;
92 * returns partition count which is of int type
94 public int getPartitionCount() {
95 return partitionCount;
99 * @param partitionCount
100 * set partition Count
102 public void setPartitionCount(int partitionCount) {
103 this.partitionCount = partitionCount;
108 * returns replication count which is of int type
110 public int getReplicationCount() {
111 return replicationCount;
116 * set replication count which is of int type
118 public void setReplicationCount(int replicationCount) {
119 this.replicationCount = replicationCount;
124 * returns boolean value which indicates whether transaction is Enabled
126 public boolean isTransactionEnabled() {
127 return transactionEnabled;
132 * sets boolean value which indicates whether transaction is Enabled
134 public void setTransactionEnabled(boolean transactionEnabled) {
135 this.transactionEnabled = transactionEnabled;
140 * @return returns description which is of String type
142 public String getTopicDescription() {
143 return topicDescription;
147 * @param topicDescription
148 * set description which is of String type
150 public void setTopicDescription(String topicDescription) {
151 this.topicDescription = topicDescription;