2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.tosca.datatypes;
24 import org.openecomp.config.api.Configuration;
25 import org.openecomp.config.api.ConfigurationManager;
26 import org.openecomp.sdc.tosca.services.ConfigConstants;
28 public class ToscaCapabilityType {
30 private static Configuration config = ConfigurationManager.lookup();
32 public static String CAPABILITY_PREFIX =
33 config.getAsString(ConfigConstants.NAMESPACE, ConfigConstants.PREFIX_CAPABILITY_TYPE);
36 public static String NATIVE_ROOT = "tosca.capabilities.Root";
37 public static String NATIVE_NODE = "tosca.capabilities.Node";
38 public static String NATIVE_CONTAINER = "tosca.capabilities.Container";
39 public static String NATIVE_COMPUTE = "tosca.capabilities.Compute";
40 public static String NATIVE_NETWORK_BINDABLE = "tosca.capabilities.network.Bindable";
41 public static String NATIVE_SCALABLE = "tosca.capabilities.Scalable";
42 public static String NATIVE_OPERATING_SYSTEM = "tosca.capabilities.OperatingSystem";
43 public static String NATIVE_ENDPOINT_ADMIN = "tosca.capabilities.Endpoint.Admin";
44 public static String NATIVE_ATTACHMENT = "tosca.capabilities.Attachment";
45 public static String NATIVE_NETWORK_LINKABLE = "tosca.capabilities.network.Linkable";
46 public static String NATIVE_NFV_METRIC = "tosca.capabilities.nfv.Metric";
49 public static String METRIC = CAPABILITY_PREFIX + "Metric";
50 public static String METRIC_CEILOMETER = CAPABILITY_PREFIX + "metric.Ceilometer";
51 public static String METRIC_SNMP_TRAP = CAPABILITY_PREFIX + "metric.SnmpTrap";
52 public static String METRIC_SNMP_POLLING = CAPABILITY_PREFIX + "metric.SnmpPolling";