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.onap.appc.seqgen.objects;
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";
31 public enum CapabilityLevel{
32 VNF("vnf"),VNFC("vnfc"),VM("vm");
34 CapabilityLevel(String level) {
38 public String getLevel() {
43 public enum Capabilties{
44 START_APPLICATION("StartApplication"),HEALTH_CHECK("HealthCheck"),STOP_APPLICATION("StopApplication");
45 private String capability;
47 Capabilties(String capability) {
48 this.capability=capability;
50 public String getCapability(){
55 public enum ResponseMessage{
56 HEALTHY("healthy"),UNHEALTHY("unhealthy"),SUCCESS("success"),FAILURE("failure");
58 public String getResponse() {
62 private String response;
63 ResponseMessage(String response){
64 this.response=response;
69 public enum ResponseAction{
70 STOP("stop"),RETRY("retry"),IGNORE("ignore"),WAIT("wait"),CONTINUE("Continue");
72 ResponseAction(String action) {
76 private String action;
78 public String getAction() {
85 START("Start"),START_APPLICATION("StartApplication"),HEALTH_CHECK("HealthCheck"),STOP_APPLICATION("StopApplication"),STOP("Stop");
87 Action(String actionType) {
88 this.actionType=actionType;
91 public String getActionType() {
95 private String actionType;
98 public enum ActionLevel{
99 VM("vm"),VNFC("vnfc"),VNF("vnf"),VF_MODULE("vf-module");
100 private String action;
101 ActionLevel(String action){
104 public String getAction() {
109 public enum PreCheckOperator{
110 ANY("any"),ALL("all");
112 PreCheckOperator(String operator){
113 this.operator=operator;
116 public String getOperator() {
120 private String operator;