2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2021 Nordix Foundation.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.clamp.controlloop.participant.intermediary.api.impl;
23 import java.util.Collections;
24 import java.util.List;
25 import java.util.UUID;
26 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.ClElementStatistics;
27 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.ControlLoop;
28 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.ControlLoopElement;
29 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.ControlLoopOrderedState;
30 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.ControlLoops;
31 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.Participant;
32 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.ParticipantState;
33 import org.onap.policy.clamp.controlloop.models.controlloop.concepts.ParticipantStatistics;
34 import org.onap.policy.clamp.controlloop.participant.intermediary.api.ParticipantIntermediaryApi;
35 import org.onap.policy.clamp.controlloop.participant.intermediary.parameters.ParticipantIntermediaryParameters;
36 import org.onap.policy.models.tosca.authorative.concepts.ToscaConceptIdentifier;
39 * This class is api implementation used by participant intermediary.
41 public class ParticipantIntermediaryApiImpl implements ParticipantIntermediaryApi {
44 public void init(ParticipantIntermediaryParameters parameters) {
52 public List<Participant> getParticipants(String name, String version) {
53 return Collections.emptyList();
57 public Participant updateParticipantState(ToscaConceptIdentifier definition, ParticipantState state) {
62 public void updateParticipantStatistics(ParticipantStatistics participantStatistics) {
66 public ControlLoops getControlLoops(String name, String version) {
71 public List<ControlLoopElement> getControlLoopElements(String name, String version) {
72 return Collections.emptyList();
76 public ControlLoop updateControlLoopState(ToscaConceptIdentifier definition, ControlLoopOrderedState state) {
81 public ControlLoopElement updateControlLoopElementState(UUID id, ControlLoopOrderedState state) {
86 public void updateControlLoopElementStatistics(ClElementStatistics elementStatistics) {