Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Exception test Fix
[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
9ad5dd7
..
213dfa5
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
@@
-17,21
+17,34
@@
* limitations under the License.
* ========================LICENSE_END===================================
*/
* limitations under the License.
* ========================LICENSE_END===================================
*/
+
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 static enum A1ProtocolType {
+ UNKNOWN, STD_V1, OSC_V1, CONTROLLER
+ }
+
+ public Mono<A1ProtocolType> getProtocolVersion();
+
+ public Mono<List<String>> getPolicyTypeIdentities();
+
+ public Mono<List<String>> getPolicyIdentities();
- public
Flux<String> getPoliciesForType(String nearRtRicUrl,
String policyTypeId);
+ public
Mono<String> getPolicyTypeSchema(
String policyTypeId);
- public Mono<String>
getPolicy(String nearRtRicUrl, String policyId
);
+ public Mono<String>
putPolicy(Policy policy
);
- public Mono<String>
putPolicy(String nearRtRicUrl, String policyId, String policyString
);
+ public Mono<String>
deletePolicy(Policy policy
);
- public
Mono<Void> deletePolicy(String nearRtRicUrl, String policyId
);
+ public
Flux<String> deleteAllPolicies(
);
}
}