2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2019 Bell Canada. All rights reserved.
4 * Modifications Copyright (C) 2021 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
10 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.onap.policy.controlloop.actor.cds.constants;
22 import lombok.AccessLevel;
23 import lombok.NoArgsConstructor;
25 @NoArgsConstructor(access = AccessLevel.PRIVATE)
26 public final class CdsActorConstants {
27 public static final String CDS_ACTOR = "CDS";
30 public static final String SUCCESS = "Success";
31 public static final String FAILED = "Failed";
32 public static final String PROCESSING = "Processing";
33 public static final String TIMED_OUT = "Timed out";
34 public static final String INTERRUPTED = "Thread interrupted";
35 public static final String ERROR = "Error";
37 // CDS blueprint archive parameters
38 public static final String KEY_CBA_NAME = "artifact_name";
39 public static final String KEY_CBA_VERSION = "artifact_version";
40 public static final String KEY_POLICY_PAYLOAD_DATA = "data";
41 public static final String KEY_RESOLUTION_KEY = "resolution-key";
42 public static final String CDS_REQUEST_SUFFIX = "-request";
43 public static final String CDS_REQUEST_PROPERTIES_SUFFIX = "-properties";
44 public static final String ORIGINATOR_ID = "POLICY";
45 // Temporarily set to synchronous mode to support current rules, since callbacks aren't supported yet
46 public static final String CDS_MODE = "sync";