Merge "Dockerize the test enviroment"
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / clients / OscA1Client.java
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 Nordix Foundation
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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===================================
19  */
20
21 package org.oransc.policyagent.clients;
22
23 import java.lang.invoke.MethodHandles;
24 import java.util.Collection;
25
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;
31
32 public class OscA1Client implements A1Client {
33     private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
34
35     private final RicConfig ricConfig;
36
37     public OscA1Client(RicConfig ricConfig) {
38         this.ricConfig = ricConfig;
39         logger.debug("OscA1Client for ric: {}", this.ricConfig.name());
40     }
41
42     @Override
43     public Mono<Collection<String>> getPolicyTypeIdentities() {
44         return Mono.error(new Exception("Not impl"));
45     }
46
47     @Override
48     public Mono<Collection<String>> getPolicyIdentities() {
49         return Mono.error(new Exception("Not impl"));
50     }
51
52     @Override
53     public Mono<String> getPolicyTypeSchema(String policyTypeId) {
54         return Mono.error(new Exception("Not impl"));
55     }
56
57     @Override
58     public Mono<String> putPolicy(Policy policy) {
59         return Mono.error(new Exception("Not impl"));
60     }
61
62     @Override
63     public Mono<String> deletePolicy(String policyId) {
64         return Mono.error(new Exception("Not impl"));
65     }
66
67     @Override
68     public Mono<A1ProtocolType> getProtocolVersion() {
69         return Mono.error(new Exception("Not impl"));
70     }
71
72 }