Exemplo n.º 1
0
 protected void reconcileForClient(ConfigUpdate update, Client client, Runnable run) {
   ItemVersion itemVersion = itemManager.getRequestedVersion(client, RECONCILE);
   if (itemVersion == null) {
     return;
   }
   run.run();
   itemManager.setApplied(client, RECONCILE, itemVersion);
   eventService.publish(EventVO.reply(update));
 }
Exemplo n.º 2
0
 @Override
 public void reconcileServices(Collection<? extends Service> services) {
   for (Service service : services) {
     ConfigUpdateRequest request = ConfigUpdateRequest.forResource(Service.class, service.getId());
     request.addItem(RECONCILE);
     request.withDeferredTrigger(true);
     itemManager.updateConfig(request);
   }
 }