update the package name
[dmaap/messagerouter/msgrtr.git] / src / main / java / org / onap / dmaap / dmf / mr / beans / TopicBean.java
1 /**
2  * 
3  */
4 /*******************************************************************************
5  *  ============LICENSE_START=======================================================
6  *  org.onap.dmaap
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
14 *  
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=========================================================
21  *  
22  *  ECOMP is a trademark and service mark of AT&T Intellectual Property.
23  *  
24  *******************************************************************************/
25 package org.onap.dmaap.dmf.mr.beans;
26
27 import java.io.Serializable;
28
29 import javax.xml.bind.annotation.XmlRootElement;
30
31 /**
32  * @author muzainulhaque.qazi
33  *
34  */
35 @XmlRootElement
36 public class TopicBean implements Serializable {
37
38         private static final long serialVersionUID = -8620390377775457949L;
39         private String topicName;
40         private String topicDescription;
41
42         private int partitionCount;
43         private int replicationCount;
44
45         private boolean transactionEnabled;
46
47         /**
48          * constructor
49          */
50         public TopicBean() {
51                 super();
52         }
53
54         /**
55          * constructor initialization with topic details name, description,
56          * partition, replication, transaction
57          * 
58          * @param topicName
59          * @param description
60          * @param partitionCount
61          * @param replicationCount
62          * @param transactionEnabled
63          */
64         public TopicBean(String topicName, String topicDescription, int partitionCount, int replicationCount,
65                         boolean transactionEnabled) {
66                 super();
67                 this.topicName = topicName;
68                 this.topicDescription = topicDescription;
69                 this.partitionCount = partitionCount;
70                 this.replicationCount = replicationCount;
71                 this.transactionEnabled = transactionEnabled;
72         }
73
74         /**
75          * @return
76          * returns topic name which is of String type
77          */
78         public String getTopicName() {
79                 return topicName;
80         }
81
82         /**
83          * @param topicName
84          * set topic name  
85          */
86         public void setTopicName(String topicName) {
87                 this.topicName = topicName;
88         }
89
90
91         /**
92          * @return
93          * returns partition count which is of int type
94          */
95         public int getPartitionCount() {
96                 return partitionCount;
97         }
98
99         /**
100          * @param partitionCount
101          * set partition Count 
102          */
103         public void setPartitionCount(int partitionCount) {
104                 this.partitionCount = partitionCount;
105         }
106         
107         /**
108          * @return
109          * returns replication count which is of int type
110          */
111         public int getReplicationCount() {
112                 return replicationCount;
113         }
114         
115         /**
116          * @param
117          * set replication count which is of int type
118          */
119         public void setReplicationCount(int replicationCount) {
120                 this.replicationCount = replicationCount;
121         }
122         
123         /**
124          * @return
125          * returns boolean value which indicates whether transaction is Enabled 
126          */
127         public boolean isTransactionEnabled() {
128                 return transactionEnabled;
129         }
130         
131         /**
132          * @param
133          * sets boolean value which indicates whether transaction is Enabled 
134          */
135         public void setTransactionEnabled(boolean transactionEnabled) {
136                 this.transactionEnabled = transactionEnabled;
137         }
138
139         /**
140          * 
141          * @return returns description which is of String type
142          */
143         public String getTopicDescription() {
144                 return topicDescription;
145         }
146         /**
147          * 
148          * @param topicDescription
149          * set description which is of String type
150          */
151         public void setTopicDescription(String topicDescription) {
152                 this.topicDescription = topicDescription;
153         }
154
155 }