From 1d0d9ebabda67d6c770b4854a8154763aa6e75d6 Mon Sep 17 00:00:00 2001 From: Bruno Sakoto Date: Fri, 27 Sep 2019 15:51:11 -0400 Subject: Changes in model to integrate cds actor * Create class for CDS response Issue-ID: POLICY-2088 Change-Id: I813a310f7d5123fac4bb1c3880d108391096250f Signed-off-by: Bruno Sakoto --- .../main/java/org/onap/policy/cds/CdsResponse.java | 45 ++++++++++++++++++++++ .../policy/cds/properties/CdsServerProperties.java | 2 + 2 files changed, 47 insertions(+) create mode 100644 models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/CdsResponse.java (limited to 'models-interactions/model-impl/cds') diff --git a/models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/CdsResponse.java b/models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/CdsResponse.java new file mode 100644 index 000000000..fca1aa2e9 --- /dev/null +++ b/models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/CdsResponse.java @@ -0,0 +1,45 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2019 Bell Canada. + * ================================================================================ + * 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. + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.cds; + +import java.io.Serializable; + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * Class representing a CDS response. + */ +@Getter +@Setter +@ToString +public class CdsResponse implements Serializable { + + private String requestId; + private String status; + + /** + * Default empty constructor. + */ + public CdsResponse() { + super(); + } + +} diff --git a/models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/properties/CdsServerProperties.java b/models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/properties/CdsServerProperties.java index 2e919814b..850531848 100644 --- a/models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/properties/CdsServerProperties.java +++ b/models-interactions/model-impl/cds/src/main/java/org/onap/policy/cds/properties/CdsServerProperties.java @@ -42,6 +42,8 @@ public class CdsServerProperties implements ParameterGroup { private static final String SERVER_PROPERTIES_TYPE = "CDS gRPC Server Properties"; // CDS carrier properties + + // Request timeout in seconds @Min(value = 1) private int timeout; -- cgit 1.2.3-korg