Sonar Critical Fix
[dcaegen2/analytics/tca.git] / dcae-analytics-cdap-common / src / main / java / org / openecomp / dcae / apod / analytics / cdap / common / CDAPPluginConstants.java
1 /*\r
2  * ===============================LICENSE_START======================================\r
3  *  dcae-analytics\r
4  * ================================================================================\r
5  *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  *  Licensed under the Apache License, Version 2.0 (the "License");\r
8  *  you may not use this file except in compliance with the License.\r
9  *   You may obtain a copy of the License at\r
10  *\r
11  *          http://www.apache.org/licenses/LICENSE-2.0\r
12  *\r
13  *  Unless required by applicable law or agreed to in writing, software\r
14  *  distributed under the License is distributed on an "AS IS" BASIS,\r
15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  *  See the License for the specific language governing permissions and\r
17  *  limitations under the License.\r
18  *  ============================LICENSE_END===========================================\r
19  */\r
20 \r
21 package org.openecomp.dcae.apod.analytics.cdap.common;\r
22 \r
23 /**\r
24  * <p>\r
25  *      Contains CDAP Plugin Constants\r
26  * </p>\r
27  * @author Rajiv Singla . Creation Date: 1/17/2017.\r
28  */\r
29 public abstract class CDAPPluginConstants {\r
30 \r
31     /**\r
32      * Common Reference Name property name and description used to create an external Dataset for metadata, lineage\r
33      * purposes\r
34      */\r
35     public static class Reference {\r
36 \r
37         public static final String REFERENCE_NAME = "referenceName";\r
38         public static final String REFERENCE_NAME_DESCRIPTION =\r
39                 "This will be used to uniquely identify this source/sink for lineage, annotating metadata, etc.";\r
40 \r
41         private Reference() {\r
42             // private constructor\r
43         }\r
44 \r
45     }\r
46 \r
47     /**\r
48      * Contains fields for DMaaP MR Sink Map Reduce Hadoop Configuration\r
49      */\r
50     public static class DMaaPMRSinkHadoopConfigFields {\r
51 \r
52         public static final String HOST_NAME = "dmaap.mr.sink.hostName";\r
53         public static final String PORT_NUMBER = "dmaap.mr.sink.portNumber";\r
54         public static final String TOPIC_NAME = "dmaap.mr.sink.topicName";\r
55         public static final String PROTOCOL = "dmaap.mr.sink.protocol";\r
56         public static final String USER_NAME = "dmaap.mr.sink.userName";\r
57         public static final String USER_PASS = "dmaap.mr.sink.userPassword";\r
58         public static final String CONTENT_TYPE = "dmaap.mr.sink.contentType";\r
59         public static final String MAX_BATCH_SIZE = "dmaap.mr.sink.maxBatchSize";\r
60         public static final String MAX_RECOVER_QUEUE_SIZE = "dmaap.mr.sink.maxRecoveryQueueSize";\r
61 \r
62         private DMaaPMRSinkHadoopConfigFields() {\r
63             // private constructor\r
64         }\r
65     }\r
66 \r
67 \r
68     private CDAPPluginConstants() {\r
69         // private constructor\r
70     }\r
71 }\r