Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for destroyFn (0.15 sec)

  1. pkg/registry/core/service/allocator/storage/storage.go

    }
    
    // Free implements allocator.Interface::Free
    func (e *Etcd) Free() int {
    	e.lock.Lock()
    	defer e.lock.Unlock()
    
    	return e.alloc.Free()
    }
    
    // Destroy implement allocator.Interface::Destroy
    func (e *Etcd) Destroy() {
    	e.destroyFn()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go

    	// prefix so we can reuse the etcd instance for subtests independently.
    	base := "/" + uuid.New().String() + "/peerserverleases/"
    	return peerEndpointLeaseReconciler{serverLeases: &peerEndpointLeases{
    		storage:   s,
    		destroyFn: func() {},
    		baseKey:   base,
    		leaseTime: 1 * time.Minute, // avoid the lease to timeout on tests
    	}}
    }
    
    func (f *peerEndpointLeaseReconciler) SetKeys(servers []serverInfo) error {
    	for _, server := range servers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/tasks/Destroys.java

     * or output) cannot execute concurrently with a task that destroys this file. This is useful for tasks that
     * clean up after other tasks such as `clean`.</p>
     *
     * @since 4.0
     */
    @Documented
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.METHOD, ElementType.FIELD})
    public @interface Destroys {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 03:14:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

            protected T instance;
    
            protected Consumer<T> destroyer;
    
            protected ComponentHolder(final T instance, final Consumer<T> destroyer) {
                this.instance = instance;
                this.destroyer = destroyer;
            }
    
            protected T get() {
                return instance;
            }
    
            protected void destroy() {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                }
                if (!p.waitFor(commandTimeout + commandDestroyTimeout, TimeUnit.MILLISECONDS)) {
                    logger.warn("Destroying {} because of the process timeout.", getName());
                    p.destroy();
                }
    
                final int exitValue = p.exitValue();
                if (exitValue != 0) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/process/internal/ExecHandleRunner.java

                }
                aborted = true;
                if (process != null) {
                    streamsHandler.disconnect();
                    LOGGER.debug("Abort requested. Destroying process: {}.", execHandle.getDisplayName());
                    process.destroy();
                }
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public void run() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                final Thread shutdownCallback = new Thread("ShutdownHook") {
                    @Override
                    public void run() {
                        if (logger.isDebugEnabled()) {
                            logger.debug("Destroying LaContainer..");
                        }
                        destroyContainer();
                    }
                };
                Runtime.getRuntime().addShutdownHook(shutdownCallback);
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/CrawlerLogHelper.java

                if (logger.isDebugEnabled()) {
                    logger.debug("container was destroyed.");
                }
                return;
            } catch (final Exception e) {
                if (!ComponentUtil.available()) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("container was destroyed.");
                    }
                    return;
                }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. pkg/registry/core/pod/rest/subresources.go

    // New returns an empty podProxyOptions object.
    func (r *ProxyREST) New() runtime.Object {
    	return &api.PodProxyOptions{}
    }
    
    // Destroy cleans up resources on shutdown.
    func (r *ProxyREST) Destroy() {
    	// Given that underlying store is shared with REST,
    	// we don't destroy it here explicitly.
    }
    
    // ConnectMethods returns the list of HTTP methods that can be proxied
    func (r *ProxyREST) ConnectMethods() []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractCommandLineOrderTaskIntegrationTest.groovy

                return this
            }
    
            TaskFixture mustRunAfter(TaskFixture task) {
                mustRunAfter.add(task)
                return this
            }
    
            TaskFixture destroys(String path) {
                destroys.add(path)
                return this
            }
    
            TaskFixture outputs(String path) {
                return produces(path, ProductionType.OUTPUT)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top