summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2020-08-14 11:24:10 +0100
committera.sreekumar <ajith.sreekumar@bell.ca>2020-08-14 16:10:25 +0100
commitac169ac12608a50c23914f804a77f973de735dfc (patch)
tree5e5eeafcadd1510944e9c68c7416b6f3b844a406
parentdec869fd20875afe5cb4c16f54450ef7570ef254 (diff)
Adding common success/failure messages for policy components
Change-Id: Ic1b0a3b467fd9e4f65b2e12d9f6ed33e38e4f44d Issue-ID: POLICY-2755 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
-rw-r--r--utils/src/main/java/org/onap/policy/common/utils/resources/MessageConstants.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/utils/src/main/java/org/onap/policy/common/utils/resources/MessageConstants.java b/utils/src/main/java/org/onap/policy/common/utils/resources/MessageConstants.java
new file mode 100644
index 00000000..a31a77d2
--- /dev/null
+++ b/utils/src/main/java/org/onap/policy/common/utils/resources/MessageConstants.java
@@ -0,0 +1,41 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2020 Bell Canada. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.policy.common.utils.resources;
+
+/**
+ * Common messages to be used by all components.
+ */
+public class MessageConstants {
+
+ public static final String POLICY_API = "policy-api";
+ public static final String POLICY_PAP = "policy-pap";
+ public static final String POLICY_APEX_PDP = "policy-apex-pdp";
+ public static final String POLICY_DROOLS_PDP = "policy-drools-pdp";
+ public static final String POLICY_XACML_PDP = "policy-xacml-pdp";
+ public static final String POLICY_DISTRIBUTION = "policy-distribution";
+
+ public static final String START_SUCCESS_MSG = "Started %s service successfully.";
+ public static final String START_FAILURE_MSG = "Start of %s service failed.";
+
+ private MessageConstants() {
+ super();
+ }
+}