Skip to content
Snippets Groups Projects
Commit 26e30e50 authored by Konstantinos Poulakakis's avatar Konstantinos Poulakakis
Browse files

refactor: spotless apply.

parent 8b24430d
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!197Resolve "(UBI) Refactor Policy"
...@@ -178,7 +178,7 @@ public class PolicyServiceImpl implements PolicyService { ...@@ -178,7 +178,7 @@ public class PolicyServiceImpl implements PolicyService {
.onItem() .onItem()
.transform( .transform(
isService -> isService ->
constructPolicyStateBasedOnCriteria( constructPolicyStateBasedOnCriteria(
isService, serviceId, policyRuleService, policyRuleBasic)); isService, serviceId, policyRuleService, policyRuleBasic));
} }
...@@ -220,7 +220,10 @@ public class PolicyServiceImpl implements PolicyService { ...@@ -220,7 +220,10 @@ public class PolicyServiceImpl implements PolicyService {
contextService contextService
.setPolicyRule(policyRule) .setPolicyRule(policyRule)
.subscribe() .subscribe()
.with(policyId -> startMonitoringBasedOnAlarmDescriptors(policyId, policyRuleService, alarmDescriptorList)); .with(
policyId ->
startMonitoringBasedOnAlarmDescriptors(
policyId, policyRuleService, alarmDescriptorList));
return VALIDATED_POLICYRULE_STATE; return VALIDATED_POLICYRULE_STATE;
} }
...@@ -256,7 +259,8 @@ public class PolicyServiceImpl implements PolicyService { ...@@ -256,7 +259,8 @@ public class PolicyServiceImpl implements PolicyService {
* @param policyRuleService the policy rule service * @param policyRuleService the policy rule service
* @return * @return
*/ */
private List<Multi<AlarmResponse>> transformAlarmIds(List<Uni<String>> alarmIds, PolicyRuleService policyRuleService) { private List<Multi<AlarmResponse>> transformAlarmIds(
List<Uni<String>> alarmIds, PolicyRuleService policyRuleService) {
List<Multi<AlarmResponse>> alarmResponseStreamList = new ArrayList<>(); List<Multi<AlarmResponse>> alarmResponseStreamList = new ArrayList<>();
for (Uni<String> alarmId : alarmIds) { for (Uni<String> alarmId : alarmIds) {
Multi<AlarmResponse> alarmResponseStream = Multi<AlarmResponse> alarmResponseStream =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment