8e3440e42be6500ef0c9d188d1887ca09baf552e
[policy/clamp.git] /
1 /*-
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
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.clamp.controlloop.participant.intermediary.parameters;
22
23 import lombok.Getter;
24 import org.onap.policy.common.endpoints.parameters.TopicParameterGroup;
25 import org.onap.policy.common.parameters.ParameterGroupImpl;
26 import org.onap.policy.common.parameters.annotations.NotBlank;
27 import org.onap.policy.common.parameters.annotations.NotNull;
28 import org.onap.policy.models.tosca.authorative.concepts.ToscaConceptIdentifier;
29
30 /**
31  * Class to hold all parameters needed for participant component.
32  */
33 @NotNull
34 @NotBlank
35 @Getter
36 public class ParticipantIntermediaryParameters extends ParameterGroupImpl {
37     // The ID and description of this participant
38     private ToscaConceptIdentifier participantId;
39     private String description;
40
41     // The participant type of this participant
42     private ToscaConceptIdentifier participantType;
43
44     // The time interval for periodic reporting of status to the CLAMP control loop server
45     private long reportingTimeInterval;
46
47     // DMaaP topics for communicating with the CLAMP control loop server
48     private TopicParameterGroup clampControlLoopTopics;
49
50     /**
51      * Create the participant parameter group.
52      *
53      * @param instanceId instance id of the event.
54      */
55     public ParticipantIntermediaryParameters(final String instanceId) {
56         super(instanceId);
57     }
58 }