Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed concurrency problems
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
clients
/
A1Client.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/clients/A1Client.java
b/policy-agent/src/main/java/org/oransc/policyagent/clients/A1Client.java
index
8006b7b
..
ace486b
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/clients/A1Client.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/clients/A1Client.java
@@
-20,21
+20,36
@@
package org.oransc.policyagent.clients;
package org.oransc.policyagent.clients;
+import java.util.List;
+import org.oransc.policyagent.repository.Policy;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface A1Client {
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface A1Client {
- public Flux<String> getAllPolicyTypes(String nearRtRicUrl);
+ public enum A1ProtocolType {
+ UNKNOWN, //
+ STD_V1, //
+ OSC_V1, //
+ SDNC_OSC, //
+ SDNC_ONAP
+ }
- public
Flux<String> getPoliciesForType(String nearRtRicUrl, String policyTypeId
);
+ public
Mono<A1ProtocolType> getProtocolVersion(
);
- public Mono<
String> getPolicy(String nearRtRicUrl, String policyId
);
+ public Mono<
List<String>> getPolicyTypeIdentities(
);
- public Mono<
String> putPolicy(String nearRtRicUrl, String policyId, String policyString
);
+ public Mono<
List<String>> getPolicyIdentities(
);
- public Mono<
Void> deletePolicy(String nearRtRicUrl, String policy
Id);
+ public Mono<
String> getPolicyTypeSchema(String policyType
Id);
+ public Mono<String> putPolicy(Policy policy);
+
+ public Mono<String> deletePolicy(Policy policy);
+
+ public Flux<String> deleteAllPolicies();
+
+ public Mono<String> getPolicyStatus(Policy policy);
}
}