Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for UpdateAction (0.18 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileBackedObjectHolder.java

        }
    
        @Override
        public T update(final UpdateAction<T> updateAction) {
            class Updater implements Runnable {
                private final UpdateAction<T> updateAction;
    
                private T result;
    
                private Updater(UpdateAction<T> updateAction) {
                    this.updateAction = updateAction;
                }
    
                @Override
                public void run() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileIntegrityViolationSuppressingObjectHolderDecorator.java

        }
    
        @Override
        public T update(final UpdateAction<T> updateAction) {
            return doUpdate(updateAction, () -> delegate.update(updateAction));
        }
    
        @Override
        public T maybeUpdate(final UpdateAction<T> updateAction) {
            return doUpdate(updateAction, () -> delegate.maybeUpdate(updateAction));
        }
    
        private T doUpdate(UpdateAction<T> updateAction, Supplier<T> work) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/ObjectHolder.java

         * Replaces the value for this cache.
         *
         * An exclusive lock is held while the update action is executing.
         * The result of the update is returned.
         */
        T update(UpdateAction<T> updateAction);
    
        interface UpdateAction<T> {
            T update(T oldValue);
        }
    
        /**
         * Potentially replaces the value for this cache
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultCompilationStateCacheFactory.java

            }
    
            @Override
            public CompilationState update(UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public CompilationState maybeUpdate(UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/scopeids/PersistentScopeIdLoaderTest.groovy

            and:
            1 * storeFactory.create(storeFile, _) >> store
    
            and:
            1 * store.maybeUpdate(_) >> { ObjectHolder.UpdateAction action ->
                action.update(null)
            }
    
            and:
            idFactory.create() >> newId
    
            and:
            id == newId
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 10 18:14:29 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/PersistentDaemonRegistry.java

        @Override
        public void remove(final Address address) {
            lock.lock();
            try {
                LOGGER.debug("Removing daemon address: {}", address);
                cache.update(new ObjectHolder.UpdateAction<DaemonRegistryContent>() {
                    @Override
                    public DaemonRegistryContent update(DaemonRegistryContent oldValue) {
                        if (oldValue == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_set_status_updater_test.go

    	fakeClient := &fake.Clientset{}
    	updater := NewRealStatefulSetStatusUpdater(fakeClient, nil)
    	fakeClient.AddReactor("update", "statefulsets", func(action core.Action) (bool, runtime.Object, error) {
    		update := action.(core.UpdateAction)
    		return true, update.GetObject(), nil
    	})
    	if err := updater.UpdateStatefulSetStatus(context.TODO(), set, &status); err != nil {
    		t.Errorf("Error returned on successful status update: %s", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 15:37:10 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  8. pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go

    						t.Fatalf("unexpected action %#v", action)
    					}
    					updateAction, ok := action.(clienttesting.UpdateAction)
    					if !ok {
    						t.Fatalf("unexpected action %#v", action)
    					}
    					if !equality.Semantic.DeepEqual(updateAction.GetObject().(*rbacv1.ClusterRole), test.expectedClusterRole) {
    						t.Fatalf("%v", cmp.Diff(test.expectedClusterRole, updateAction.GetObject().(*rbacv1.ClusterRole)))
    					}
    				}
    			})
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. pkg/controlplane/reconcilers/helpers_test.go

    	errors := []error{}
    
    	updates := []k8stesting.UpdateAction{}
    	creates := []k8stesting.CreateAction{}
    	for _, action := range fakeClient.Actions() {
    		if action.GetVerb() == "update" {
    			updates = append(updates, action.(k8stesting.UpdateAction))
    		} else if action.GetVerb() == "create" {
    			creates = append(creates, action.(k8stesting.CreateAction))
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:23 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FileBackedObjectHolderTest.groovy

            then:
            1 * fileAccess.writeFile(!null) >> { it[0].run() }
    
            when:
            cache.update({ value ->
                assert value == "foo"
                return "foo bar"
            } as ObjectHolder.UpdateAction)
    
            then:
            1 * fileAccess.updateFile(!null) >> { it[0].run() }
    
            when:
            def result = cache.get()
    
            then:
            result == "foo bar"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top