Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for UpdateAction (0.34 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. pkg/controller/deployment/rolling_test.go

    		// action for verification.
    		var updateAction core.UpdateAction
    		for _, action := range fakeClientset.Actions() {
    			switch a := action.(type) {
    			case core.UpdateAction:
    				if updateAction != nil {
    					t.Errorf("expected only 1 update action; had %v and found %v", updateAction, a)
    				} else {
    					updateAction = a
    				}
    			}
    		}
    		if updateAction == nil {
    			t.Errorf("expected an update action")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/controller/certificates/signer/signer_test.go

    			approved:   true,
    			verify: func(t *testing.T, as []testclient.Action) {
    				if len(as) != 1 {
    					t.Errorf("expected one Update action but got %d", len(as))
    					return
    				}
    				csr := as[0].(testclient.UpdateAction).GetObject().(*capi.CertificateSigningRequest)
    				if len(csr.Status.Certificate) == 0 {
    					t.Errorf("expected certificate to be issued but it was not")
    				}
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 15K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/IncrementalCompileProcessorTest.groovy

                this.compilationState = newValue
            }
    
            CompilationState update(ObjectHolder.UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException()
            }
    
            @Override
            CompilationState maybeUpdate(ObjectHolder.UpdateAction<CompilationState> updateAction) {
                throw new UnsupportedOperationException()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:31:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top