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