Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 371 for Acquire (0.04 sec)

  1. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            assertTrue(session.isInUse(), "New session should be in use due to transport acquisition");
    
            // Test additional acquire
            session.acquire();
            assertTrue(session.isInUse(), "Session should still be in use after additional acquire");
    
            // Test release (still in use because of initial transport acquire)
            session.release();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            // Act: create wrapper using delegate, then acquire and release once
            SmbTreeConnectionTrace wrapper = new SmbTreeConnectionTrace(delegate);
            wrapper.acquire();
            wrapper.release();
    
            // Assert: delegate interactions occur when usage transitions happen
            verify(delegate, times(1)).acquire();
            verify(delegate, times(1)).release();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbTransportPool.java

         *
         * @param tf the CIFS context to use
         * @param name the server name or address
         * @param port the port number
         * @param exclusive whether to acquire an unshared connection
         * @param forceSigning whether to enforce SMB signing
         * @return a connected transport
         * @throws UnknownHostException if the host cannot be resolved
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            }
        }
    
        /**
         * @return a file handle with increased usage count
         */
        public SmbFileHandleImpl acquire() {
            final long usage = this.usageCount.incrementAndGet();
            if (log.isTraceEnabled()) {
                log.trace(String.format("Acquire %s (%d)", this, usage));
            }
            return this;
        }
    
        /**
         *
         */
        public void markClosed() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  5. src/test/java/jcifs/smb/SmbTreeImplTest.java

                    }
                }
                tree.unwrap(CustomSmbTree.class);
            });
        }
    
        // Test case for acquire and release methods
        @Test
        void testAcquireAndRelease() {
            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            tree.acquire();
            tree.release();
        }
    
        // Test case for isConnected method
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/transport/TransportTest.java

        @Nested
        @DisplayName("Resource management tests")
        class ResourceManagementTests {
    
            @Test
            @DisplayName("acquire should increment usage count")
            void shouldIncrementUsageCount() {
                long initial = transport.getUsageCount();
                transport.acquire();
                assertEquals(initial + 1, transport.getUsageCount());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. cmd/lock-rest-server.go

    		return l.makeResp(resp, errLockNotFound)
    	}
    	return l.makeResp(resp, err)
    }
    
    // LockHandler - Acquires a lock.
    func (l *lockRESTServer) LockHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) {
    	// Add a timeout similar to what we expect upstream.
    	ctx, cancel := context.WithTimeout(context.Background(), dsync.DefaultTimeouts.Acquire)
    	defer cancel()
    	resp := lockRPCLock.NewResponse()
    	success, err := l.ll.Lock(ctx, *args)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jan 31 19:54:34 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. cmd/namespace-lock_test.go

    		// 3) lk3 or lk4 (whichever didn't execute in step 1) then executes and creates
    		//    a new entry in lockMap and acquires a lock for the same resource.
    
    		<-lk2ch
    		lk3ok := <-lk3ch
    		lk4ok := <-lk4ch
    
    		if lk3ok && lk4ok {
    			t.Fatalf("multiple locks acquired; iteration=%d, lk3=%t, lk4=%t", i, lk3ok, lk4ok)
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. docs/tls/kubernetes/README.md

    ## 1. Prerequisites
    
    - Familiarity with [MinIO deployment process on Kubernetes](https://docs.min.io/community/minio-object-store/operations/deployments/kubernetes.html).
    
    - Kubernetes cluster with `kubectl` configured.
    
    - Acquire TLS certificates, either from a CA or [create self-signed certificates](https://docs.min.io/community/minio-object-store/operations/network-encryption.html).
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. cmd/callhome.go

    		return
    	}
    
    	go func() {
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		// Leader node (that successfully acquires the lock inside runCallhome)
    		// will keep performing the callhome. If the leader goes down for some reason,
    		// the lock will be released and another node will acquire it and take over
    		// because of this loop.
    		for {
    			if !globalCallhomeConfig.Enabled() {
    				return
    			}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top