bp-gen code clone from cli repo
[dcaegen2/platform.git] / mod / bpgenerator / src / main / java / org / onap / blueprintgenerator / models / blueprint / TemplateNode.java
1 /**============LICENSE_START======================================================= 
2  org.onap.dcae 
3  ================================================================================ 
4  Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. 
5  ================================================================================ 
6  Licensed under the Apache License, Version 2.0 (the "License"); 
7  you may not use this file except in compliance with the License. 
8  You may obtain a copy of the License at 
9
10       http://www.apache.org/licenses/LICENSE-2.0 
11
12  Unless required by applicable law or agreed to in writing, software 
13  distributed under the License is distributed on an "AS IS" BASIS, 
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15  See the License for the specific language governing permissions and 
16  limitations under the License. 
17  ============LICENSE_END========================================================= 
18 */
19
20 package org.onap.blueprintgenerator.models.blueprint;
21
22 import java.util.LinkedHashMap;
23 import java.util.TreeMap;
24
25 import org.onap.blueprintgenerator.models.componentspec.Auxilary;
26 import org.onap.blueprintgenerator.models.componentspec.ComponentSpec;
27 import org.onap.blueprintgenerator.models.componentspec.HealthCheck;
28 import org.onap.blueprintgenerator.models.onapbp.OnapNode;
29
30 import lombok.Getter; import lombok.Setter;
31
32
33 public class TemplateNode extends OnapNode{
34         
35 //      public void createTemplateNode() {
36 //              //dummy inputs just used for the inputs so i can reuse code
37 //              TreeMap<String, LinkedHashMap<String, Object>> inps = new TreeMap<String, LinkedHashMap<String, Object>>();
38 //              
39 //              //create a dummy componentspec to set the values later on 
40 //              ComponentSpec cs = new ComponentSpec();
41 //              Auxilary aux = new Auxilary();
42 //              HealthCheck health = new HealthCheck();
43 //              health.setEndpoint("/healthcheck");
44 //              health.setInterval("15s");
45 //              health.setTimeout("1s");
46 //              health.setType("https");
47 //              aux.setHealthcheck(health);
48 //              String[] ports = new String[1];
49 //              ports[0] = "9999:9999";
50 //              aux.setPorts(ports);
51 //              cs.setAuxilary(aux);
52 //              
53 //              //set the type
54 //              this.setType("dcae.nodes.ContainerizedPlatformComponent");
55 //              
56 //              //set the interface
57 //              Interfaces inter = new Interfaces();
58 //              inter.createOnapInterface(inps, cs);
59 //              TreeMap<String, Interfaces> interfaces = new TreeMap<String, Interfaces>();
60 //              interfaces.put("cloudify.interfaces.lifecycle", inter);
61 //              this.setInterfaces(interfaces);
62 //              
63 //              
64 //              //create the properties
65 //              Properties props = new Properties();
66 //              props.createTemplateProperties(cs);
67 //              this.setProperties(props);
68 //      }
69 }