2 * ===============================LICENSE_START======================================
4 * ================================================================================
5 * Copyright © 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.openecomp.dcae.apod.analytics.common.service.processor;
23 import java.util.LinkedList;
24 import java.util.List;
28 * @author Rajiv Singla . Creation Date: 11/8/2016.
30 public class TestProcessorContext implements ProcessorContext {
32 private String message;
33 private boolean continueProcessingFlag;
34 private String result;
35 private List<? super MessageProcessor<? extends ProcessorContext>> messageProcessors;
37 public TestProcessorContext(String message, boolean continueProcessingFlag) {
38 this.message = message;
39 this.continueProcessingFlag = continueProcessingFlag;
40 this.messageProcessors = new LinkedList<>();
44 public String getMessage() {
49 public boolean canProcessingContinue() {
50 return continueProcessingFlag;
54 public void setProcessingContinueFlag(boolean canProcessingContinue) {
55 this.continueProcessingFlag = canProcessingContinue;
59 public List<? super MessageProcessor<? extends ProcessorContext>> getMessageProcessors() {
60 return messageProcessors;
64 public void setMessage(String message) {
65 this.message = message;
68 public boolean isContinueProcessingFlag() {
69 return continueProcessingFlag;
72 public void setContinueProcessingFlag(boolean continueProcessingFlag) {
73 this.continueProcessingFlag = continueProcessingFlag;
76 public String getResult() {
80 public void setResult(String result) {