476c5b71852d39d33af6fb7969aa7273198092cb
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / main / java / org / onap / appc / seqgen / objects / Constants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
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
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.onap.appc.seqgen.objects;
22
23 public class Constants {
24     public static final String RETRY_COUNT = "retry-count";
25     public static final String WAIT_TIME = "wait-time";
26     public static final Integer WAIT_TIME_VALUE = 60;
27     public static final Integer RETRY_COUNT_VALUE = 4;
28     public static final String STRATEGY = "strategy";
29     public static final String VNFC_TYPE = "vnfc-type";
30
31     public enum CapabilityLevel{
32         VNF("vnf"),VNFC("vnfc"),VM("vm");
33         private String level;
34         CapabilityLevel(String level) {
35             this.level=level;
36         }
37
38         public String getLevel() {
39             return level;
40         }
41     }
42
43     public enum Capabilties{
44         START_APPLICATION("StartApplication"),HEALTH_CHECK("HealthCheck"),STOP_APPLICATION("StopApplication");
45         private String capability;
46
47         Capabilties(String capability) {
48             this.capability=capability;
49         }
50         public String getCapability(){
51             return capability;
52         }
53     }
54
55     public enum ResponseMessage{
56         HEALTHY("healthy"),UNHEALTHY("unhealthy"),SUCCESS("success"),FAILURE("failure");
57
58         public String getResponse() {
59             return response;
60         }
61
62         private String response;
63         ResponseMessage(String response){
64             this.response=response;
65         }
66
67     }
68
69     public enum ResponseAction{
70         STOP("stop"),RETRY("retry"),IGNORE("ignore"),WAIT("wait"),CONTINUE("Continue");
71
72         ResponseAction(String action) {
73             this.action=action;
74         }
75
76         private String action;
77
78         public String getAction() {
79             return action;
80         }
81
82     }
83
84     public enum Action{
85         START("Start"),START_APPLICATION("StartApplication"),HEALTH_CHECK("HealthCheck"),STOP_APPLICATION("StopApplication"),STOP("Stop");
86
87         Action(String actionType) {
88             this.actionType=actionType;
89         }
90
91         public String getActionType() {
92             return actionType;
93         }
94
95         private String actionType;
96
97     }
98     public enum ActionLevel{
99         VM("vm"),VNFC("vnfc"),VNF("vnf"),VF_MODULE("vf-module");
100         private String action;
101         ActionLevel(String action){
102             this.action=action;
103         }
104         public String getAction() {
105             return action;
106         }
107     }
108
109     public enum PreCheckOperator{
110         ANY("any"),ALL("all");
111
112         PreCheckOperator(String operator){
113             this.operator=operator;
114         }
115
116         public String getOperator() {
117             return operator;
118         }
119
120         private String operator;
121
122     }
123 }