2 * ============LICENSE_START=======================================================
3 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4 * Copyright (c) 2022 Wipro Limited 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=========================================================
21 package org.onap.dcae.analytics.tca.core.service;
23 import java.util.List;
24 import org.onap.dcae.analytics.tca.model.policy.TcaPolicy;
27 * TCA Execution context captures various fields required to calculate a TCA threshold violation calculation execution
29 * @author Rajiv Singla
31 public interface TcaExecutionContext {
34 * Provides request id associated with execution context
36 * @return request id associated with execution context
38 String getRequestId();
42 * Provides transaction id associated with execution context
44 * @return transaction id associated with execution context
46 String getTransactionId();
50 * Provides message order number inside a execution batch
52 * @return message order number inside a execution batch
54 int getMessageIndex();
58 * Provides common event format message as JSON string that is being analyzed
60 * @return common event format message as JSON string that is being analyzed
62 String getCefMessage();
66 * Provides TCA Policy associated with the processing context
68 * @return TCA Policy associated with processing context
70 List<TcaPolicy> getTcaPolicy();
74 * Provides TCA Processing Context captures various mutable fields that are computed during TCA execution
76 * @return TCA Processing Context captures various mutable fields that are computed during TCA execution
78 TcaProcessingContext getTcaProcessingContext();
82 * Provides TCA Processing Result Context which captures outputs of TCA execution
84 * @return TCA Processing Result Context which captures outputs of TCA execution
86 TcaResultContext getTcaResultContext();
90 * Provides TCA Abatement context containing abstractions for TCA Abatement processing calculations
92 * @return TCA abatement context containing abstractions for TCA Abatement processing calculations
94 TcaAbatementContext getTcaAbatementContext();
98 * Provides TCA AAI Enrichment Context
100 * @return TCA AAI enrichment context
102 TcaAaiEnrichmentContext getTcaAaiEnrichmentContext();