import java.time.Instant;
+import org.json.simple.parser.ParseException;
import org.onap.clamp.clds.client.PolicyEngineServices;
import org.onap.clamp.loop.template.PolicyModelsRepository;
import org.springframework.beans.factory.annotation.Autowired;
this.policyEngineServices = policyEngineService;
}
- @Scheduled(fixedRate = 120000)
+ @Scheduled(fixedRate = 300000)
public synchronized void synchronizeAllPolicies() {
policyEngineServices.synchronizeAllPolicies();
lastInstantExecuted = Instant.now();
return lastInstantExecuted;
}
-
+ @Scheduled(fixedRate = 300000)
+ public synchronized void downloadPdpGroups() throws ParseException {
+ policyEngineServices.downloadPdpGroups();
+ }
}