e08b28d129a2d933f65ba1a80cd9576531f5c9e5
[dcaegen2/platform.git] / mod / bpgenerator / common / src / main / java / org / onap / blueprintgenerator / constants / Constants.java
1 /*
2  *
3  *  * ============LICENSE_START=======================================================
4  *  *  org.onap.dcae
5  *  *  ================================================================================
6  *  *  Copyright (c) 2020  AT&T Intellectual Property. All rights reserved.
7  *  *  Copyright (c) 2021 Nokia. All rights reserved.
8  *  *  ================================================================================
9  *  *  Licensed under the Apache License, Version 2.0 (the "License");
10  *  *  you may not use this file except in compliance with the License.
11  *  *  You may obtain a copy of the License at
12  *  *
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  *
23  */
24
25 package org.onap.blueprintgenerator.constants;
26
27 /*
28  * @author : Ravi Mantena
29  * @date 10/16/2020
30  * Application: DCAE/ONAP - Blueprint Generator
31  * Common Module: Used by both ONAP and DCAE Blueprint Applications
32  * Constants: Used in ONAP Blueprints
33  */
34
35 public class Constants {
36
37     public static final String _TOPIC = "_topic";
38     public static final String _FEED = "_feed";
39     public static final String DATAROUTER_VALUE = "data router";
40     public static final String DATA_ROUTER = "data_router";
41     public static final String MESSAGEROUTER_VALUE = "message router";
42     public static final String MESSAGE_ROUTER = "message_router";
43     public static final String KAFKA_TYPE = "kafka";
44     public static final String TOSCA_DEF_VERSION = "cloudify_dsl_1_3";
45     public static final String SERVICE_COMPONENT_NAME_OVERRIDE = "service_component_name_override";
46     public static final String EMPTY = "''";
47     public static final String INTEGER_TYPE = "integer";
48     public static final String BOOLEAN_TYPE = "boolean";
49     public static final String STRING_TYPE = "string";
50     public static final String EMPTY_VALUE = "";
51     public static final String DCAE_NODES_CONTAINERIZED_SERVICE_COMPONENT_USING_DMAAP =
52         "dcae.nodes.ContainerizedServiceComponentUsingDmaap";
53     public static final String CPU_LIMIT = "cpu_limit";
54     public static final String MEMORY_LIMIT = "memory_limit";
55     public static final String CPU_REQUEST = "cpu_request";
56     public static final String MEMORY_REQUEST = "memory_request";
57
58     public static final String CLOUDIFY_INTERFACES_LEFECYCLE = "cloudify.interfaces.lifecycle";
59     public static final String DCAE = "dcae";
60     public static final String DCAE_NODES_CONTAINERIZED_SERVICE_COMPONENT =
61         "dcae.nodes.ContainerizedServiceComponent";
62     public static final String ONAP_NAME_DCAE = "DCAE";
63     public static final String POLICIES_POLICYNAME_DCAECONFIG = "DCAE.Config_";
64
65     public static final String DB_RELATIONSHIP_TYPE = "cloudify.relationships.depends_on";
66     public static final String NAME_POSTFIX = "_database_name";
67     public static final String PGAAS_NODE_NAME_POSTFIX = "_pgaasdb";
68     public static final String PGAAS_NODE_TYPE = "dcae.nodes.pgaas.database";
69     public static final String POLICY_NODE_TYPE = "clamp.nodes.policy";
70     public static final String POLICY_RELATIONSHIP_TYPE = "cloudify.relationships.depends_on";
71     public static final String WRITER_FQDN_POSTFIX = "_database_writerfqdn";
72     public static final boolean USE_EXISTING = true;
73     public static final String ONAP_INPUT_CPU_LIMIT = "dcae-ves-collector_cpu_limit";
74     public static final String ONAP_NODETEMPLATES = "dcae-ves-collector";
75     public static final String ONAP_NODETEMPLATES_TYPE = "dcae.nodes.ContainerizedServiceComponent";
76     public static final String ONAP_DEFAULT250m = "\"250m\"";
77     public static final String ONAP_SERVICE_COMPONENTNAME_OVERRIDE_DEFAULT = "\"\"";
78     public static final String DMAAP_NODETEMPLATES_TYPE =
79         "dcae.nodes.ContainerizedServiceComponentUsingDmaap";
80     public static final String USE_EXTERNAL_TLS_FIELD = "use_external_tls";
81     public static final String DEFAULT_CA = "RA";
82     public static final Object DEFAULT_CERT_TYPE = "P12";
83     public static final String INPUT_PREFIX = "external_cert_";
84     public static final String EXTERNAL_CERT_DIRECTORY_FIELD = "external_cert_directory";
85     public static final String CA_NAME_FIELD = "ca_name";
86     public static final String CERT_TYPE_FIELD = "cert_type";
87     public static final String EXTERNAL_CERTIFICATE_PARAMETERS_FIELD =
88         "external_certificate_parameters";
89     public static final String CERT_DIRECTORY_FIELD = "cert_directory";
90     public static final String COMMON_NAME_FIELD = "common_name";
91     public static final String SANS_FIELD = "sans";
92     public static final String DEFAULT_COMMON_NAME = "sample.onap.org";
93     public static final String DEFAULT_SANS = "sample.onap.org,component.sample.onap.org";
94     public static final String FEED = "dcaegen2.nodes.Feed";
95     public static final String TOPIC = "dcaegen2.nodes.Topic";
96     public static final String PUBLISH_EVENTS = "dcaegen2.relationships.publish_events";
97     public static final String PUBLISH_FILES = "dcaegen2.relationships.publish_files";
98     public static final String SUBSCRIBE_TO_EVENTS = "dcaegen2.relationships.subscribe_to_events";
99     public static final String SUBSCRIBE_TO_FILES = "dcaegen2.relationships.subscribe_to_files";
100     public static final String TOSCA_DATATYPES_ROOT = "tosca.datatypes.Root";
101     public static final String TOSCA_NODES_ROOT = "tosca.nodes.Root";
102     public static final String TOSCA_SIMPLE_YAML = "tosca_simple_yaml_1_0_0";
103 }