Initial TCA commit into DCAEGEN2
[dcaegen2/analytics/tca.git] / dcae-analytics-cdap-common / src / main / java / org / openecomp / dcae / apod / analytics / cdap / common / settings / CDAPBaseAppConfig.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.settings;
22
23 import co.cask.cdap.api.Config;
24 import org.openecomp.dcae.apod.analytics.cdap.common.CDAPComponentsConstants;
25
26 /**
27  * Base class for all DACE Analytics Application Configurations
28  *
29  * @author Rajiv Singla . Creation Date: 10/4/2016.
30  */
31 public abstract class CDAPBaseAppConfig extends Config implements CDAPAppConfig {
32
33
34     /**
35      * DCAE Analytics App Name
36      */
37     protected String appName = CDAPComponentsConstants.COMMON_DEFAULT_DCAE_CDAP_NAME_APP;
38
39     /**
40      * DCAE Analytics App Description
41      */
42     protected String appDescription = CDAPComponentsConstants.COMMON_DEFAULT_DCAE_CDAP_DESCRIPTION_APP;
43
44
45     /**
46      * Returns DCAE Analytics CDAP Application name
47      *
48      * @return CDAP application name
49      */
50     @Override
51     public String getAppName() {
52         return appName;
53     }
54
55     /**
56      * Returns DCAE Analytics CDAP Application descrption
57      *
58      * @return CDAP application description
59      */
60     @Override
61     public String getAppDescription() {
62         return appDescription;
63     }
64 }