2 * ========================LICENSE_START=================================
5 * Copyright (C) 2019 Nordix Foundation
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.oransc.policyagent.clients;
23 import java.lang.invoke.MethodHandles;
24 import java.util.Collection;
26 import org.oransc.policyagent.configuration.RicConfig;
27 import org.oransc.policyagent.repository.Policy;
28 import org.slf4j.Logger;
29 import org.slf4j.LoggerFactory;
30 import reactor.core.publisher.Mono;
32 public class OscA1Client implements A1Client {
33 private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
35 private final RicConfig ricConfig;
37 public OscA1Client(RicConfig ricConfig) {
38 this.ricConfig = ricConfig;
39 logger.debug("OscA1Client for ric: {}", this.ricConfig.name());
43 public Mono<Collection<String>> getPolicyTypeIdentities() {
44 return Mono.error(new Exception("Not impl"));
48 public Mono<Collection<String>> getPolicyIdentities() {
49 return Mono.error(new Exception("Not impl"));
53 public Mono<String> getPolicyTypeSchema(String policyTypeId) {
54 return Mono.error(new Exception("Not impl"));
58 public Mono<String> putPolicy(Policy policy) {
59 return Mono.error(new Exception("Not impl"));
63 public Mono<String> deletePolicy(String policyId) {
64 return Mono.error(new Exception("Not impl"));
68 public Mono<A1ProtocolType> getProtocolVersion() {
69 return Mono.error(new Exception("Not impl"));