update the package name
[dmaap/messagerouter/msgrtr.git] / src / test / java / org / onap / dmaap / mr / test / dme2 / TopicBeanDME2.java
1 /*******************************************************************************
2  *  ============LICENSE_START=======================================================
3  *  org.onap.dmaap
4  *  ================================================================================
5  *  Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  *  ================================================================================
7  *  Licensed under the Apache License, Version 2.0 (the "License");
8  *  you may not use this file except in compliance with the License.
9  *  You may obtain a copy of the License at
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *  
12  *  Unless required by applicable law or agreed to in writing, software
13  *  distributed under the License is distributed on an "AS IS" BASIS,
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *  See the License for the specific language governing permissions and
16  *  limitations under the License.
17  *  ============LICENSE_END=========================================================
18  *
19  *  ECOMP is a trademark and service mark of AT&T Intellectual Property.
20  *  
21  *******************************************************************************/
22 /**
23  * 
24  */
25 package org.onap.dmaap.mr.test.dme2;
26
27 import java.io.Serializable;
28
29 public class TopicBeanDME2 implements Serializable {
30
31         private static final long serialVersionUID = -8620390377775457949L;
32         private String topicName;
33         private String description;
34
35         
36         private int partitionCount;
37         private int replicationCount;
38         private boolean transactionEnabled = false;
39
40         public boolean isTransactionEnabled() {
41                 return transactionEnabled;
42         }
43
44         public void setTransactionEnabled(boolean transactionEnabled) {
45                 this.transactionEnabled = transactionEnabled;
46         }
47
48         public TopicBeanDME2() {
49                 super();
50         }
51
52         public TopicBeanDME2(String topicName, String description, int partitionCount, int replicationCount,
53                         boolean transactionEnabled) {
54                 super();
55                 this.topicName = topicName;
56                 this.description = description;
57                 this.partitionCount = partitionCount;
58                 this.replicationCount = replicationCount;
59                 this.transactionEnabled = transactionEnabled;
60         }
61
62         public String getTopicName() {
63                 return topicName;
64         }
65
66         public void setTopicName(String topicName) {
67                 this.topicName = topicName;
68         }
69
70         public String getDescription() {
71                 return description;
72         }
73
74         public void setDescription(String description) {
75                 this.description = description;
76         }
77
78         public int getPartitionCount() {
79                 return partitionCount;
80         }
81
82         public void setPartitionCount(int partitionCount) {
83                 this.partitionCount = partitionCount;
84         }
85
86         public int getReplicationCount() {
87                 return replicationCount;
88         }
89
90         public void setReplicationCount(int replicationCount) {
91                 this.replicationCount = replicationCount;
92         }
93
94 }